[Scons-users] Witzend, help welcome

Gary Oberbrunner garyo at oberbrunner.com
Thu May 1 06:45:47 EDT 2014


My first guess is something's defining 'gettext' et al as macros and that's
confusing it. Because otherwise that syntax in libintl.h looks OK. I'd
start by adding -E to the cmd line [2] and inspecting the preprocessor
output for that line.


On Thu, May 1, 2014 at 6:29 AM, Russel Winder <russel at winder.org.uk> wrote:


> I am trying to convert an Autoconf/Automake build to SCons – for fairly

> obvious reasons. It is all going fairly straightforwardly except… there

> is this one file which is being recalcitrant, in a most weird way.

>

> I am using g++4.8 on Debian Sid. I am trying to get C++14 compliance

> using the -std=c++1y option.

>

> The Autoconf/Automake command line is as [1], The SCons Command is as

> [2]. [1] works fine. [2] fails with the error as at [3]. If I remove the

> -std=c++1y from [2] then it works. So there is something different

> between the two command lines that interacts with g++ c++1y parsing. I

> am at a total loss, even with how to attack this problem, except by

> brute force trialling. Hence a request for help from anyone interested.

>

>

> [1]

>

> g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -pthread

> -I/usr/include/gtkmm-2.4 -I/usr/lib/x86_64-linux-gnu/gtkmm-2.4/include

> -I/usr/include/atkmm-1.6 -I/usr/include/gtk-unix-print-2.0

> -I/usr/include/gtk-2.0 -I/usr/include/gdkmm-2.4

> -I/usr/lib/x86_64-linux-gnu/gdkmm-2.4/include -I/usr/include/pangomm-1.4

> -I/usr/lib/x86_64-linux-gnu/pangomm-1.4/include -I/usr/include/giomm-2.4

> -I/usr/lib/x86_64-linux-gnu/giomm-2.4/include -I/usr/include/glibmm-2.4

> -I/usr/lib/x86_64-linux-gnu/glibmm-2.4/include -I/usr/include/sigc++-2.0

> -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -I/usr/include/gconf/2

> -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include

> -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo

> -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo

> -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng12

> -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12

> -I/usr/include/pango-1.0 -I/usr/include/harfbuzz

> -I/usr/include/pango-1.0 -I/usr/include/freetype2

> -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include

> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include

> -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include

> -I/usr/include/gconfmm-2.6 -I/usr/lib/gconfmm-2.6/include

> -I/usr/include/unique-1.0 -g -O2 -Wall -Wno-unused -Wextra

> -Wcast-align -Wcast-qual -Wcomment -Wformat -Wmissing-braces -Wpacked

> -Wparentheses -Wpointer-arith -Wreturn-type -Wsequence-point

> -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch-default -Wundef

> -DPACKAGE_DATA_DIR=

> \""/home/users/russel/lib.Linux.x86_64/me-tv_1.5_debian/share"\"

> -DPACKAGE_SRC_DIR=\""."\" -std=c++1y -O3 -O0 -g -MT

> scheduled_recording_dialog.o -MD -MP

> -MF .deps/scheduled_recording_dialog.Tpo -c -o

> scheduled_recording_dialog.o scheduled_recording_dialog.cc

>

> [2]

>

> g++ -o Build/scheduled_recording_dialog.o -c -std=c++1y -O3 -W -Wall

> -Wundef -Wcast-align -Wno-unused-parameter -Wextra -Wcast-align

> -Wcast-qual -Wcomment -Wformat -Wmissing-braces -Wpacked -Wparentheses

> -Wpointer-arith -Wreturn-type -Wsequence-point -Wstrict-aliasing

> -Wstrict-aliasing=2 -Wswitch-default -Wundef -pthread -DVERSION=

> \""1.5.0-SNAPSHOT"\" -DGETTEXT_PACKAGE=\""me-tv"\" -DPACKAGE_NAME=

> \""MeTV"\" -DPACKAGE_DATA_DIR=

> \""/home/users/russel/lib.Linux.x86_64/me-tv__head/share/me-tv"\"

> -DPIXMAPDIR=

> \""/home/users/russel/lib.Linux.x86_64/me-tv__head/share/pixmaps"\"

> -DLOCALEDIR=

> \""/home/users/russel/lib.Linux.x86_64/me-tv__head/share/locale"\"

> -DHAVE_CONFIG_H -I/usr/include/gtkmm-2.4

> -I/usr/lib/x86_64-linux-gnu/gtkmm-2.4/include -I/usr/include/atkmm-1.6

> -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0

> -I/usr/include/gdkmm-2.4 -I/usr/lib/x86_64-linux-gnu/gdkmm-2.4/include

> -I/usr/include/giomm-2.4 -I/usr/lib/x86_64-linux-gnu/giomm-2.4/include

> -I/usr/include/pangomm-1.4

> -I/usr/lib/x86_64-linux-gnu/pangomm-1.4/include

> -I/usr/include/glibmm-2.4 -I/usr/lib/x86_64-linux-gnu/glibmm-2.4/include

> -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include

> -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0

> -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0

> -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng12

> -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/harfbuzz

> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include

> -I/usr/include/freetype2 -I/usr/include/cairomm-1.0

> -I/usr/lib/cairomm-1.0/include -I/usr/include/gconf/2

> -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include

> -I/usr/include/gconfmm-2.6 -I/usr/lib/gconfmm-2.6/include

> -I/usr/include/unique-1.0 -IBuild -Isrc

> src/scheduled_recording_dialog.cc

>

> [3]

>

> In file included from src/mpeg_stream.h:36:0,

> from src/channel_stream.h:24,

> from src/frontend_thread.h:27,

> from src/stream_manager.h:24,

> from src/application.h:32,

> from src/scheduled_recording_dialog.cc:23:

> /usr/include/libintl.h:39:14: error: expected unqualified-id before

> 'const'

> extern char *gettext (const char *__msgid)

> ^

> /usr/include/libintl.h:39:14: error: expected ')' before 'const'

> /usr/include/libintl.h:39:14: error: expected initializer before 'const'

> /usr/include/libintl.h:44:14: error: expected unqualified-id before

> 'const'

> extern char *dgettext (const char *__domainname, const char *__msgid)

> ^

> /usr/include/libintl.h:44:14: error: expected ')' before 'const'

> /usr/include/libintl.h:44:14: error: expected initializer before 'const'

> /usr/include/libintl.h:51:14: error: expected unqualified-id before

> 'const'

> extern char *dcgettext (const char *__domainname,

> ^

> /usr/include/libintl.h:51:14: error: expected ')' before 'const'

> /usr/include/libintl.h:51:14: error: expected initializer before 'const'

> /usr/include/libintl.h:61:14: error: expected unqualified-id before

> 'unsigned'

> extern char *ngettext (const char *__msgid1, const char *__msgid2,

> ^

> /usr/include/libintl.h:61:14: error: expected ')' before 'unsigned'

> /usr/include/libintl.h:61:14: error: expected ')' before 'unsigned'

> /usr/include/libintl.h:61:14: error: expected initializer before

> 'unsigned'

> /usr/include/libintl.h:67:14: error: expected unqualified-id before

> 'unsigned'

> extern char *dngettext (const char *__domainname, const char *__msgid1,

> ^

> /usr/include/libintl.h:67:14: error: expected ')' before 'unsigned'

> /usr/include/libintl.h:67:14: error: expected ')' before 'unsigned'

> /usr/include/libintl.h:67:14: error: expected initializer before

> 'unsigned'

> /usr/include/libintl.h:82:14: error: expected unqualified-id before

> 'const'

> extern char *textdomain (const char *__domainname) __THROW;

> ^

> /usr/include/libintl.h:82:14: error: expected ')' before 'const'

> /usr/include/libintl.h:82:14: error: expected initializer before 'const'

> /usr/include/libintl.h:86:14: error: expected unqualified-id before

> 'const'

> extern char *bindtextdomain (const char *__domainname,

> ^

> /usr/include/libintl.h:86:14: error: expected ')' before 'const'

> /usr/include/libintl.h:86:14: error: expected initializer before 'const'

> /usr/include/libintl.h:91:14: error: expected unqualified-id before

> 'const'

> extern char *bind_textdomain_codeset (const char *__domainname,

> ^

> /usr/include/libintl.h:91:14: error: expected ')' before 'const'

> /usr/include/libintl.h:91:14: error: expected ')' before 'const'

> /usr/include/libintl.h:91:14: error: expected initializer before 'const'

> src/scheduled_recording_dialog.cc: In member function 'gint

> ScheduledRecordingDialog::run(Gtk::Window*, EpgEvent&)':

> src/scheduled_recording_dialog.cc:98:15: warning: unused variable

> 'application' [-Wunused-variable]

> Application& application = get_application();

> ^

> scons: *** [Build/scheduled_recording_dialog.o] Error 1

> scons: building terminated because of errors.

>

>

> --

> Russel.

>

> =============================================================================

> Dr Russel Winder t: +44 20 7585 2200 voip:

> sip:russel.winder at ekiga.net

> 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk

> London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>




--
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140501/9cfd2818/attachment.htm


More information about the Scons-users mailing list