Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libintl.h: error: syntax error before `__const'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Mon Oct 03, 2005 4:31 am    Post subject: libintl.h: error: syntax error before `__const' Reply with quote

edited (was "libintl.h:40: error: syntax error before `__const'")

Ebuild lives at https://bugs.gentoo.org/show_bug.cgi?id=108419

/edited

Original title: libintl.h:40: error: syntax error before `__const'

I'm trying to create an ebuild for Wallpaper Tray, but I stumble on the same error over and over again, whatever I may try to solve it. So, I'm asking knowledgeables here because, well, they are legion.

Here's the error:
Code:
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I. -DWP_TRAY_GLADEDIR=\""/usr/share/wp_tray/glade/"\" -DGNOMELOCALEDIR=\""/usr/share/locale"\" -DGNOMEICONDIR=\""/usr/share/pixmaps"\"   -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DORBIT2=1 -pthread -I/usr/include/libgnomeuimm-2.6 -I/usr/lib/libgnomeuimm-2.6/include -I/usr/include/libgnomemm-2.6 -I/usr/lib/libgnomemm-2.6/include -I/usr/include/libgnomecanvasmm-2.6 -I/usr/lib/libgnomecanvasmm-2.6/include -I/usr/include/gconfmm-2.6 -I/usr/lib/gconfmm-2.6/include -I/usr/include/libglademm-2.4 -I/usr/lib/libglademm-2.4/include -I/usr/include/libgnomeui-2.0 -I/usr/include/gnome-vfsmm-2.6 -I/usr/lib/gnome-vfsmm-2.6/include -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/libgnome-2.0 -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/atk-1.0 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/libbonoboui-2.0 -I/usr/include/panel-2.0   -Wall -O3 -march=i686 -O3 -pipe -fomit-frame-pointer -ffast-math -msse -mmmx -mfpmath=387,sse -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.cc; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
distcc[13112] ERROR: compile /var/tmp/ccache/applet.tmp.fiston.13092.ii on manitou failed
Dans le fichier inclus à partir de applet.cc:17:
/usr/include/glib-2.0/glib/gi18n.h:25:1: attention : « _ » redéfini
Dans le fichier inclus à partir de /usr/include/libbonobo-2.0/bonobo/bonobo-generic-factory.h:16,
          à partir de /usr/include/panel-2.0/panel-applet.h:35,
          à partir de applet.hh:24,
          à partir de applet.cc:10:
/usr/include/libbonobo-2.0/bonobo/bonobo-i18n.h:69:1: attention : ceci est la localisation d'une précédente définition
In file included from /usr/include/glib-2.0/glib/gi18n.h:23,
                 from applet.cc:17:
/usr/include/libintl.h:40: error: syntax error before `__const'
/usr/include/libintl.h:44: error: syntax error before `__const'
/usr/include/libintl.h:51: error: syntax error before `__const'
/usr/include/libintl.h:81: error: syntax error before `__const'
/usr/include/libintl.h:85: error: syntax error before `__const'
/usr/include/libintl.h:90: error: syntax error before `__const'
make[2]: *** [applet.o] Erreur 1
make[2]: Leaving directory `/var/tmp/portage/wp_tray-0.5.1/work/wp_tray-0.5.1/src'
make[1]: *** [all] Erreur 2
make[1]: Leaving directory `/var/tmp/portage/wp_tray-0.5.1/work/wp_tray-0.5.1/src'
make: *** [all-recursive] Erreur 1

I find a lot references to exact or close matching equivalent in both these forums and on the web, but so far none of the solutions seem either relevant, or those I tried (mostly updrading packages) did not fix the issue.

The only probable cause that surfaced the most was a libtool problem, for which I never could find an alternate way to check that.

Here's the ebuild I have to date:
Code:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/at-spi/at-spi-1.6.6.ebuild,v 1.1 2005/09/06 17:27:06 leonardop Exp $

inherit gnome2

DESCRIPTION="Gnome applet to manage and display your wallpaper collection"
HOMEPAGE="http://planetearthworm.com/projects/wp_tray/"
SRC_URI="http://planetearthworm.com/projects/wp_tray/files/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

RDEPEND=">=x11-libs/gtk+-2.4
    >=gnome-base/gnome-panel-2"

DEPEND="${RDEPEND}
    dev-cpp/gtkmm
    dev-libs/boost
    >=dev-cpp/libgnomeuimm-2"

DOCS="AUTHORS ChangeLog COPYING INSTALL MAINTAINERS NEWS README"

src_compile(){
    econf   --with-boostfilesystem=/usr/lib/libboost_filesystem.so \
            --with-boostregex=/usr/lib/libboost_regex.so \
            || die
    emake || die
}

src_test() {
    Xmake check || die "Testing phase failed"
}

_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.


Last edited by tecknojunky on Sat Oct 15, 2005 5:55 am; edited 1 time in total
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Fri Oct 07, 2005 7:27 pm    Post subject: Reply with quote

Updated gccc to 3.3.6 and runned fix-libtools-somethin.sh 3.3.4. After a reboot, wp_tray compiled.

Thanks all for your help! :wink:
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Sat Oct 15, 2005 5:57 am    Post subject: Reply with quote

Man. :( It popped again. This time while reconpiling BasiliskII-jit. It's freaking annoying! :evil:
Code:
Configuration done. Now type "make" (or "gmake").
c++ -I../include -I. -I../uae_cpu -DHAVE_CONFIG_H  -DOS_linux -DCPU_i386 -DDIRECT_ADDRESSING -fno-strength-reduce -DSAHF_SETO_PROFITABLE -DUNALIGNED_PROFITABLE -DREGPARAM="__attribute__((regparm(3)))" -DX86_ASSEMBLY -DOPTIMIZED_FLAGS -DUSE_JIT -DUSE_JIT_FPU -DFPU_IEEE -D_REENTRANT -DDATADIR=\"/usr/share/BasiliskII\"  -march=i686 -O2 -pipe -ffast-math -msse -mmmx -mfpmath=387,sse -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -fno-exceptions -fno-merge-constants -c ../main.cpp -o obj/main.o
c++ -I../include -I. -I../uae_cpu -DHAVE_CONFIG_H  -DOS_linux -DCPU_i386 -DDIRECT_ADDRESSING -fno-strength-reduce -DSAHF_SETO_PROFITABLE -DUNALIGNED_PROFITABLE -DREGPARAM="__attribute__((regparm(3)))" -DX86_ASSEMBLY -DOPTIMIZED_FLAGS -DUSE_JIT -DUSE_JIT_FPU -DFPU_IEEE -D_REENTRANT -DDATADIR=\"/usr/share/BasiliskII\"  -march=i686 -O2 -pipe -ffast-math -msse -mmmx -mfpmath=387,sse -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -fno-exceptions -fno-merge-constants -c main_unix.cpp -o obj/main_unix.o
distcc[21016] ERROR: compile /var/tmp/ccache/main_unix.tmp.fiston.21012.ii on localhost failed
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include/g++-v3/i686-pc-linux-gnu/bits/c++locale.h:44,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include/g++-v3/iosfwd:46,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include/g++-v3/bits/stl_algobase.h:70,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include/g++-v3/vector:67,
                 from ../include/video.h:24,
                 from main_unix.cpp:69:
/usr/include/libintl.h:40: error: erreur de syntaxe before `__const'
/usr/include/libintl.h:44: error: erreur de syntaxe before `__const'
/usr/include/libintl.h:51: error: erreur de syntaxe before `__const'
/usr/include/libintl.h:81: error: erreur de syntaxe before `__const'
/usr/include/libintl.h:85: error: erreur de syntaxe before `__const'
make: *** [obj/main_unix.o] Erreur 1

!!! ERROR: app-emulation/basiliskII-jit-1.0.0-r1 failed.
!!! Function src_compile, Line 68, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Tue Nov 14, 2006 12:22 pm    Post subject: Reply with quote

It's been some time, but I have also run into trouble compiling basiliskII-jit, and it worked after adding USE="-gtk". :wink:
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum