View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002684 | ardour | bugs | public | 2009-05-17 22:48 | 2020-04-19 20:14 |
| Reporter | agorka | Assigned To | cth103 | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Platform | Linux | OS | Ubuntu | OS Version | Karmic |
| Summary | 0002684: Ardour 3.0 SVN 5097 can't be build in Ubuntu Karmic | ||||
| Description | I get build error both with scons and waf. Here's info: g++ --version g++ (Ubuntu 4.4.0-3ubuntu5) 4.4.0 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. g++ -o libs/pbd/convert.os -c -Woverloaded-virtual -DGTK_NEW_TOOLTIP_API -DPACKAGE=\"libpbd\" -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DLIBSIGC_DISABLE_DEPRECATED -DHAVE_EXECINFO -DHAVE_SLV2 -O3 -fomit-frame-pointer -ffast-math -fstrength-reduce -pipe -DARCH_X86 -mmmx -march=i686 -msse -mfpmath=sse -DUSE_XMMINTRIN -DBUILD_SSE_OPTIMIZATIONS -Wall -DWITH_JACK_MIDI -Ilibs -DENABLE_NLS -DHAVE_GETMNTENT -pthread -DWINE_THREAD_SUPPORT -fPIC -I/usr/include/glib-2.0 -I/usr/local/include -I/usr/include/uuid -Ilibs/glibmm2/glib -Ilibs/sigc++2 -I/usr/lib/glib-2.0/include -Ilibs/pbd -I/usr/include/libxml2 -Ilibs/fst libs/pbd/convert.cc libs/pbd/convert.cc: In function ‘std::string PBD::length2string(int64_t, double)’: libs/pbd/convert.cc:280: error: ‘sprintf’ was not declared in this scope scons: *** [libs/pbd/convert.os] Error 1 Waf: Entering directory `/home/agorka/sources/ardour/3.0/build' [ 5/516] cxx: libs/pbd/convert.cc -> build/default/libs/pbd/convert_1.o [ 8/516] cxx: libs/pbd/dmalloc.cc -> build/default/libs/pbd/dmalloc_1.o [ 9/516] cxx: libs/pbd/error.cc -> build/default/libs/pbd/error_1.o ../libs/pbd/convert.cc: In function ‘std::string PBD::length2string(int64_t, double)’: ../libs/pbd/convert.cc:280:104: error: ‘sprintf’ was not declared in this scope Waf: Leaving directory `/home/agorka/sources/ardour/3.0/build' Build failed -> task failed (err 0000001): {task: cxx convert.cc -> convert_1.o} | ||||
| Tags | No tags attached. | ||||
|
2009-05-17 23:07
|
2684.patch (302 bytes)
diff --git a/libs/pbd/convert.cc b/libs/pbd/convert.cc index fc84bba..617fbec 100644 --- a/libs/pbd/convert.cc +++ b/libs/pbd/convert.cc @@ -20,6 +20,7 @@ #include <cmath> #include <stdint.h> #include <stdlib.h> +#include <cstdio> #ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS #endif |
|
|
Hi, would you like to try the attached patch? |
|
|
Thanks, it went further, now I get this: Waf: Entering directory `/home/agorka/sources/ardour/3.0/build' [ 5/516] cxx: libs/pbd/convert.cc -> build/default/libs/pbd/convert_1.o [ 10/516] cxx: libs/pbd/filesystem.cc -> build/default/libs/pbd/filesystem_1.o [ 11/516] cxx: libs/pbd/filesystem_paths.cc -> build/default/libs/pbd/filesystem_paths_1.o [ 12/516] cxx: libs/pbd/file_utils.cc -> build/default/libs/pbd/file_utils_1.o [ 13/516] cxx: libs/pbd/fpu.cc -> build/default/libs/pbd/fpu_1.o [ 14/516] cxx: libs/pbd/id.cc -> build/default/libs/pbd/id_1.o [ 15/516] cxx: libs/pbd/malign.cc -> build/default/libs/pbd/malign_1.o [ 16/516] cxx: libs/pbd/mountpoint.cc -> build/default/libs/pbd/mountpoint_1.o [ 17/516] cxx: libs/pbd/pathscanner.cc -> build/default/libs/pbd/pathscanner_1.o [ 18/516] cxx: libs/pbd/pool.cc -> build/default/libs/pbd/pool_1.o [ 19/516] cxx: libs/pbd/pthread_utils.cc -> build/default/libs/pbd/pthread_utils_1.o [ 20/516] cxx: libs/pbd/receiver.cc -> build/default/libs/pbd/receiver_1.o [ 21/516] cxx: libs/pbd/search_path.cc -> build/default/libs/pbd/search_path_1.o [ 22/516] cxx: libs/pbd/shortpath.cc -> build/default/libs/pbd/shortpath_1.o ../libs/pbd/shortpath.cc: In function ‘Glib::ustring short_path(const Glib::ustring&, size_t)’: ../libs/pbd/shortpath.cc:60:2: error: ‘uint32_t’ was not declared in this scope ../libs/pbd/shortpath.cc:60:11: error: expected ‘;’ before ‘so_far’ ../libs/pbd/shortpath.cc:61:11: error: expected ‘;’ before ‘space_for’ ../libs/pbd/shortpath.cc:63:6: error: ‘space_for’ was not declared in this scope Waf: Leaving directory `/home/agorka/sources/ardour/3.0/build' Build failed -> task failed (err 0000001): {task: cxx shortpath.cc -> shortpath_1.o} |
|
2009-05-17 23:26
|
2684-2.patch (244 bytes)
diff --git a/libs/pbd/shortpath.cc b/libs/pbd/shortpath.cc index d283631..036040c 100644 --- a/libs/pbd/shortpath.cc +++ b/libs/pbd/shortpath.cc @@ -17,6 +17,7 @@ */ +#include <cstdint> #include "pbd/shortpath.h" using namespace Glib; |
|
|
Hi, ok, add the 2nd attached patch as well... |
|
|
Now this: Waf: Entering directory `/home/agorka/sources/ardour/3.0/build' [ 22/516] cxx: libs/pbd/shortpath.cc -> build/default/libs/pbd/shortpath_1.o [ 23/516] cxx: libs/pbd/stacktrace.cc -> build/default/libs/pbd/stacktrace_1.o In file included from /usr/include/c++/4.4/cstdint:35, from ../libs/pbd/shortpath.cc:20: /usr/include/c++/4.4/c++0x_warning.h:31:2: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options. ../libs/pbd/stacktrace.cc: In function ‘void PBD::stacktrace(std::ostream&, int)’: ../libs/pbd/stacktrace.cc:47:47: error: ‘printf’ was not declared in this scope Waf: Leaving directory `/home/agorka/sources/ardour/3.0/build' Build failed -> task failed (err 0000001): {task: cxx shortpath.cc -> shortpath_1.o} -> task failed (err 0000001): {task: cxx stacktrace.cc -> stacktrace_1.o} I've put #include <cstdio> to stacktrace.cc by myself, but shortpath.cc still doesn't compile. |
|
|
Try changing the #include <cstdint> to #include <stdint.h> in shortpath.cc |
|
|
Yes, now it goes further. [ 38/516] cxx: libs/midi++2/midifactory.cc -> build/default/libs/midi++2/midifactory_1.o In file included from ../libs/midi++2/midifactory.cc:23: ../libs/pbd/pbd/convert.h:39:34: error: ISO C++ forbids declaration of ‘int64_t’ with no type ../libs/pbd/pbd/convert.h:39:42: error: expected ‘,’ or ‘...’ before ‘frames’ - I've put #include <stdint.h> to midifactory.cc and further... [ 56/516] cxx: libs/evoral/test/SequenceTest.cpp -> build/default/libs/evoral/test/SequenceTest_3.o ../libs/evoral/src/Sequence.cpp: In member function ‘void Evoral::Sequence<Time>::append(const Evoral::Event<Time>&)’: ../libs/evoral/src/Sequence.cpp:633:14: error: there are no arguments to ‘printf’ that depend on a template parameter, so a declaration of ‘printf’ must be available ../libs/evoral/src/Sequence.cpp:633:14: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) ../libs/evoral/src/Sequence.cpp: In member function ‘void Evoral::Sequence<Time>::append(const Evoral::Event<Time>&) [with Time = double]’: ../libs/evoral/src/Sequence.cpp:782: instantiated from here ../libs/evoral/src/Sequence.cpp:629:3: error: ‘printf’ was not declared in this scope ../libs/evoral/src/Sequence.cpp:782: instantiated from here ../libs/evoral/src/Sequence.cpp:652:3: error: ‘printf’ was not declared in this scope - I added #include <cstdio> to Sequence.cpp Then this: [ 57/516] cxx: libs/evoral/test/SMFTest.cpp -> build/default/libs/evoral/test/SMFTest_3.o In file included from ../libs/evoral/test/SMFTest.hpp:23, from ../libs/evoral/test/SMFTest.cpp:1: ../libs/evoral/evoral/SMF.hpp:47:52: error: ‘uint16_t’ has not been declared ../libs/evoral/evoral/SMF.hpp:55:17: error: ‘uint32_t’ has not been declared ../libs/evoral/evoral/SMF.hpp:55:36: error: ‘uint32_t’ has not been declared ../libs/evoral/evoral/SMF.hpp:55:52: error: ‘uint8_t’ has not been declared ../libs/evoral/evoral/SMF.hpp:57:2: error: ‘uint16_t’ does not name a type ../libs/evoral/evoral/SMF.hpp:58:2: error: ‘uint16_t’ does not name a type ../libs/evoral/evoral/SMF.hpp:62:26: error: ‘uint32_t’ has not been declared ../libs/evoral/evoral/SMF.hpp:62:44: error: ‘uint32_t’ has not been declared ../libs/evoral/evoral/SMF.hpp:62:65: error: ISO C++ forbids declaration of ‘uint8_t’ with no type ../libs/evoral/evoral/SMF.hpp:62:72: error: expected ‘,’ or ‘...’ before ‘*’ token In file included from ../libs/evoral/test/SMFTest.cpp:1: ../libs/evoral/test/SMFTest.hpp: In member function ‘int TestSMF::read_event(uint32_t*, uint32_t*, uint8_t**) const’: ../libs/evoral/test/SMFTest.hpp:42:44: error: no matching function for call to ‘TestSMF::read_event(uint32_t*&, uint32_t*&, uint8_t**&) const’ ../libs/evoral/evoral/SMF.hpp:55:6: note: candidates are: int Evoral::SMF::read_event(int*, int*, int**) const ../libs/evoral/test/SMFTest.cpp: In member function ‘void SMFTest::takeFiveTest()’: ../libs/evoral/test/SMFTest.cpp:43:53: error: ‘class TestSMF’ has no member named ‘ppqn’ Waf: Leaving directory `/home/agorka/sources/ardour/3.0/build' I added #include <stdint.h> to SMFTest.hpp Then this: [185/516] cxx: libs/ardour/directory_names.cc -> build/default/libs/ardour/directory_names_1.o In file included from ../libs/ardour/i18n.h:5, from ../libs/ardour/directory_names.cc:3: ../libs/pbd/pbd/convert.h:39:34: error: ISO C++ forbids declaration of ‘int64_t’ with no type ../libs/pbd/pbd/convert.h:39:42: error: expected ‘,’ or ‘...’ before ‘frames’ I added #include <stdint.h> to directory_names.h Next: [190/516] cxx: libs/ardour/event_type_map.cc -> build/default/libs/ardour/event_type_map_1.o ../libs/ardour/event_type_map.cc: In member function ‘Evoral::Parameter ARDOUR::EventTypeMap::new_parameter(const std::string&) const’: ../libs/ardour/event_type_map.cc:203:54: error: ‘sscanf’ was not declared in this scope ../libs/ardour/event_type_map.cc:209:53: error: ‘sscanf’ was not declared in this scope ../libs/ardour/event_type_map.cc:216:55: error: ‘sscanf’ was not declared in this scope ../libs/ardour/event_type_map.cc:223:59: error: ‘sscanf’ was not declared in this scope Waf: Leaving directory `/home/agorka/sources/ardour/3.0/build' - added #include <cstdio> to event_type_map.cc Next: [207/516] cxx: libs/ardour/filename_extensions.cc -> build/default/libs/ardour/filename_extensions_1.o In file included from ../libs/ardour/i18n.h:5, from ../libs/ardour/filename_extensions.cc:3: ../libs/pbd/pbd/convert.h:39:34: error: ISO C++ forbids declaration of ‘int64_t’ with no type ../libs/pbd/pbd/convert.h:39:42: error: expected ‘,’ or ‘...’ before ‘frames’ - Added #include <stdint.h> to filename_extensions.cc and to libs/ardour/import.cc and to libs/ardour/session_utils.cc and to libs/pbd/pbd/convert.h and to gtk2_ardour/lineset.h and to gtk2_ardour/port_matrix_component.h and wow! 'build' finished successfully (00:01:17) I'll try to attach the patch though I never did it before. |
|
2009-05-18 00:08
|
2684_full.patch (4,798 bytes)
Index: gtk2_ardour/port_matrix_component.h
===================================================================
--- gtk2_ardour/port_matrix_component.h (revision 5097)
+++ gtk2_ardour/port_matrix_component.h (working copy)
@@ -20,6 +20,7 @@
#ifndef __gtk_ardour_port_matrix_component_h__
#define __gtk_ardour_port_matrix_component_h__
+#include <stdint.h>
#include <gtkmm/eventbox.h>
class PortMatrix;
Index: gtk2_ardour/lineset.h
===================================================================
--- gtk2_ardour/lineset.h (revision 5097)
+++ gtk2_ardour/lineset.h (working copy)
@@ -18,6 +18,7 @@
#ifndef __gnome_canvas_lineset_h__
#define __gnome_canvas_lineset_h__
+#include <stdint.h>
#include <libgnomecanvasmm/item.h>
namespace Gnome {
Index: libs/evoral/test/SMFTest.hpp
===================================================================
--- libs/evoral/test/SMFTest.hpp (revision 5097)
+++ libs/evoral/test/SMFTest.hpp (working copy)
@@ -17,6 +17,7 @@
*/
#include <cassert>
+#include <stdint.h>
#include <sigc++/sigc++.h>
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
Index: libs/evoral/src/Sequence.cpp
===================================================================
--- libs/evoral/src/Sequence.cpp (revision 5097)
+++ libs/evoral/src/Sequence.cpp (working copy)
@@ -23,6 +23,7 @@
#include <limits>
#include <stdexcept>
#include <stdint.h>
+#include <cstdio>
#include "evoral/Control.hpp"
#include "evoral/ControlList.hpp"
#include "evoral/ControlSet.hpp"
Index: libs/midi++2/midifactory.cc
===================================================================
--- libs/midi++2/midifactory.cc (revision 5097)
+++ libs/midi++2/midifactory.cc (working copy)
@@ -18,6 +18,7 @@
*/
#include <cassert>
+#include <stdint.h>
#include "pbd/error.h"
#include "pbd/convert.h"
Index: libs/ardour/filename_extensions.cc
===================================================================
--- libs/ardour/filename_extensions.cc (revision 5097)
+++ libs/ardour/filename_extensions.cc (working copy)
@@ -1,5 +1,6 @@
#include "ardour/filename_extensions.h"
+#include <stdint.h>
#include "i18n.h"
namespace ARDOUR {
Index: libs/ardour/ardour/directory_names.h
===================================================================
--- libs/ardour/ardour/directory_names.h (revision 5097)
+++ libs/ardour/ardour/directory_names.h (working copy)
@@ -3,6 +3,7 @@
#define __ardour_directory_names_h__
#include <string>
+#include <stdint.h>
namespace ARDOUR {
Index: libs/ardour/session_utils.cc
===================================================================
--- libs/ardour/session_utils.cc (revision 5097)
+++ libs/ardour/session_utils.cc (working copy)
@@ -1,6 +1,7 @@
#include "pbd/error.h"
+#include <stdint.h>
#include "ardour/session_directory.h"
#include "i18n.h"
Index: libs/ardour/event_type_map.cc
===================================================================
--- libs/ardour/event_type_map.cc (revision 5097)
+++ libs/ardour/event_type_map.cc (working copy)
@@ -18,6 +18,7 @@
*/
+#include <cstdio>
#include "ardour/types.h"
#include "ardour/event_type_map.h"
#include "evoral/Parameter.hpp"
Index: libs/ardour/import.cc
===================================================================
--- libs/ardour/import.cc (revision 5097)
+++ libs/ardour/import.cc (working copy)
@@ -25,6 +25,7 @@
#include <unistd.h>
#include <sys/stat.h>
#include <time.h>
+#include <stdint.h>
#include <sndfile.h>
#include <samplerate.h>
Index: libs/pbd/shortpath.cc
===================================================================
--- libs/pbd/shortpath.cc (revision 5097)
+++ libs/pbd/shortpath.cc (working copy)
@@ -17,6 +17,7 @@
*/
+#include <stdint.h>
#include "pbd/shortpath.h"
using namespace Glib;
Index: libs/pbd/convert.cc
===================================================================
--- libs/pbd/convert.cc (revision 5097)
+++ libs/pbd/convert.cc (working copy)
@@ -20,6 +20,7 @@
#include <cmath>
#include <stdint.h>
#include <stdlib.h>
+#include <cstdio>
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
Index: libs/pbd/stacktrace.cc
===================================================================
--- libs/pbd/stacktrace.cc (revision 5097)
+++ libs/pbd/stacktrace.cc (working copy)
@@ -18,6 +18,7 @@
*/
#include "pbd/stacktrace.h"
+#include <cstdio>
#include <iostream>
void
Index: libs/pbd/pbd/convert.h
===================================================================
--- libs/pbd/pbd/convert.h (revision 5097)
+++ libs/pbd/pbd/convert.h (working copy)
@@ -20,6 +20,7 @@
#ifndef __pbd_convert_h__
#define __pbd_convert_h__
+#include <stdint.h>
#include <string>
#include <vector>
#include <sstream>
|
|
|
I installed it but it doesn't work. After I press 'Apply' in New Session dialog, Ardour3 shuts down without any word a terminal. I had the very same behaviour on my Netbook with Ardour3 build in Jaunty. Do I need to start another bugreport or is it just temporary behaviour? Here's it's output: agorka@agorka-studio2:~/sources/ardour/3.0$ ardour3 WARNING: Your system has a limit for maximum amount of locked memory! This might cause Ardour to run out of memory before your system runs out of memory. You can view the memory limit with 'ulimit -l', and it is normally controlled by /etc/security/limits.conf Ardour/GTK 1.0.2 (built using 5097 and GCC version 4.4.0) Copyright (C) 1999-2008 Paul Davis Some portions Copyright (C) Steve Harris, Ari Johnson, Brett Viren, Joel Baker Ardour comes with ABSOLUTELY NO WARRANTY not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This is free software, and you are welcome to redistribute it under certain conditions; see the source for copying conditions. /home/agorka/.themes/Crystal dlb/gtk-2.0/gtkrc:9: Unable to find include file: "panel.rc" /home/agorka/.themes/Crystal dlb/gtk-2.0/gtkrc:10: Unable to find include file: "toolbar.rc" /home/agorka/.themes/Crystal dlb/gtk-2.0/gtkrc:481: Unable to locate image file in pixmap_path: "gfx/menuline.png" /home/agorka/.themes/Crystal dlb/gtk-2.0/gtkrc:484: Background image options specified without filename /home/agorka/.themes/Crystal dlb/gtk-2.0/gtkrc:910: Unable to locate image file in pixmap_path: "gfx/scrollbar_horizontal_insens.png" /home/agorka/.themes/Crystal dlb/gtk-2.0/gtkrc:914: Background image options specified without filename /home/agorka/.themes/Crystal dlb/gtk-2.0/gtkrc:939: Unable to locate image file in pixmap_path: "gfx/scrollbar_vertical_insens.png" /home/agorka/.themes/Crystal dlb/gtk-2.0/gtkrc:943: Background image options specified without filename ardour: [ERROR]: Ardour: could not find any ui configuration file, canvas will look broken. Loading ui configuration file /usr/local/etc/ardour3/ardour3_ui_dark.rc ardour: [INFO]: Ardour will be limited to 1024 open files Loading user configuration file /home/agorka/.ardour3/ardour.rc ardour: [INFO]: No H/W specific optimizations in use LV2: Discovered 11 plugins ardour: [INFO]: looking for control protocols in /home/agorka/.ardour3/surfaces:/usr/local/lib/ardour3/surfaces (ardour-3.0:32720): GVFS-RemoteVolumeMonitor-WARNING **: invoking IsSupported() failed for remote volume monitor with dbus name org.gtk.Private.GduVolumeMonitor: org.freedesktop.DBus.Error.Spawn.ChildSignaled: Process /usr/lib/gvfs/gvfs-gdu-volume-monitor received signal 11 Found 0 along :/home/agorka/.ardour3/templates Gtk-Message: (for origin information, set GTK_DEBUG): failed to retrieve property `GtkWidget::cursor-color' of type `GdkColor' from rc file value "((GString*) 0xad1c660)" of type `GString' |
|
|
#include patch committed to SVN, thanks! Probably best to submit another bug report for this theme problem. |
|
|
I don't think it has anything to do with my theme, although my theme is really broken... OK, I'll wait for a few days, and if nothing will change, will open another bug report. Thanks! |
|
|
Issue has been closed automatically, by Trigger Close Plugin. Feel free to re-open with additional information if you think the issue is not resolved. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2009-05-17 22:48 | agorka | New Issue | |
| 2009-05-17 23:07 | cth103 | File Added: 2684.patch | |
| 2009-05-17 23:07 | cth103 | Note Added: 0006002 | |
| 2009-05-17 23:07 | cth103 | Status | new => feedback |
| 2009-05-17 23:24 | agorka | Note Added: 0006003 | |
| 2009-05-17 23:26 | cth103 | File Added: 2684-2.patch | |
| 2009-05-17 23:27 | cth103 | Note Added: 0006004 | |
| 2009-05-17 23:35 | agorka | Note Added: 0006005 | |
| 2009-05-17 23:37 | cth103 | Note Added: 0006006 | |
| 2009-05-18 00:07 | agorka | Note Added: 0006007 | |
| 2009-05-18 00:08 | agorka | File Added: 2684_full.patch | |
| 2009-05-18 00:19 | agorka | Note Added: 0006008 | |
| 2009-05-18 00:22 | cth103 | Note Added: 0006009 | |
| 2009-05-18 00:28 | agorka | Note Added: 0006011 | |
| 2009-05-18 00:50 | cth103 | cost | => 0.00 |
| 2009-05-18 00:50 | cth103 | Status | feedback => resolved |
| 2009-05-18 00:50 | cth103 | Fixed in Version | => SVN 3.0 |
| 2009-05-18 00:50 | cth103 | Resolution | open => fixed |
| 2009-05-18 00:50 | cth103 | Assigned To | => cth103 |
| 2010-04-24 10:28 | cth103 | Category | bugs => bugs2 |
| 2010-04-24 10:31 | cth103 | Category | bugs2 => bugs |
| 2020-04-19 20:14 | system | Note Added: 0021917 | |
| 2020-04-19 20:14 | system | Status | resolved => closed |