View previous topic :: View next topic |
Author |
Message |
schmmd n00b
Joined: 19 Nov 2004 Posts: 34
|
Posted: Mon Dec 20, 2004 10:59 am Post subject: Totem Compile Error |
|
|
What steps should I take now that totem fails to compile after an "emerge totem"? This has never happened before and I am unsure how I should go about fixing it. Here is the error:
In file included from /usr/include/netdb.h:28,
from /usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-address.h:31,
from /usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs.h:28,
from totem-disc.c:38:
/usr/include/netinet/in.h:354: error: syntax error before '(' token
/usr/include/netinet/in.h:354: error: syntax error before "__u32"
/usr/include/netinet/in.h:355: error: syntax error before '(' token
/usr/include/netinet/in.h:355: error: syntax error before "__u16"
/usr/include/netinet/in.h:357: error: syntax error before '(' token
/usr/include/netinet/in.h:357: error: syntax error before "__u32"
/usr/include/netinet/in.h:359: error: syntax error before '(' token
/usr/include/netinet/in.h:359: error: syntax error before "__u16"
make[2]: *** [totem-disc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/totem-0.99.19/work/totem-0.99.19/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/totem-0.99.19/work/totem-0.99.19'
make: *** [all-recursive-am] Error 2
!!! ERROR: media-video/totem-0.99.19 failed.
!!! Function gnome2_src_compile, Line 40, Exitcode 2
!!! compile failure
!!! If you need support, post the topmost build error, NOT this status message. |
|
Back to top |
|
|
merclude Tux's lil' helper
Joined: 29 Jan 2004 Posts: 85 Location: Michigan
|
Posted: Mon Dec 20, 2004 11:36 pm Post subject: |
|
|
might want to check bugs.gentoo.org, there's been a few bug reports, but no real "fix" , although a couple "hacks" are there. _________________ -merc
my site: http://escalated.net |
|
Back to top |
|
|
aminal Apprentice
Joined: 17 Mar 2004 Posts: 170 Location: Baltimore, MD
|
Posted: Wed Dec 22, 2004 6:17 am Post subject: |
|
|
I got the same error. |
|
Back to top |
|
|
aminal Apprentice
Joined: 17 Mar 2004 Posts: 170 Location: Baltimore, MD
|
Posted: Wed Dec 22, 2004 1:31 pm Post subject: |
|
|
aminal wrote: | I got the same error. |
Code: |
emerge -C linux-headers && emerge linux26-headers glibc totem
|
Worked. |
|
Back to top |
|
|
rusty Apprentice
Joined: 07 May 2004 Posts: 181 Location: St.Louis
|
Posted: Wed Dec 22, 2004 5:42 pm Post subject: |
|
|
aminal wrote: |
Code: |
emerge -C linux-headers && emerge linux26-headers glibc totem
|
Worked. |
Oh dude... this is going to take forever on dial-up! Then again, shouldn't totem ebuild take care of that? (e.g. have linux26-headers as a dependency) |
|
Back to top |
|
|
aminal Apprentice
Joined: 17 Mar 2004 Posts: 170 Location: Baltimore, MD
|
Posted: Wed Dec 22, 2004 7:35 pm Post subject: |
|
|
I synched yesterday, and 26-headers wasn't a dependency. Honestly I would have had no idea if I hadn't checked the bugs page. |
|
Back to top |
|
|
schmmd n00b
Joined: 19 Nov 2004 Posts: 34
|
Posted: Wed Dec 22, 2004 9:32 pm Post subject: |
|
|
Quote: | emerge -C linux-headers && emerge linux26-headers glibc totem |
...did not work for me. Output:
In file included from /usr/include/netdb.h:28,
from /usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-address.h:31,
from /usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs.h:28,
from totem-disc.c:38:
/usr/include/netinet/in.h:354: error: syntax error before '(' token
/usr/include/netinet/in.h:354: error: syntax error before "__u32"
/usr/include/netinet/in.h:355: error: syntax error before '(' token
/usr/include/netinet/in.h:355: error: syntax error before "__u16"
/usr/include/netinet/in.h:357: error: syntax error before '(' token
/usr/include/netinet/in.h:357: error: syntax error before "__u32"
/usr/include/netinet/in.h:359: error: syntax error before '(' token
/usr/include/netinet/in.h:359: error: syntax error before "__u16"
make[2]: *** [totem-disc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/totem-0.99.19/work/totem-0.99.19/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/totem-0.99.19/work/totem-0.99.19'
make: *** [all-recursive-am] Error 2
!!! ERROR: media-video/totem-0.99.19 failed.
!!! Function gnome2_src_compile, Line 40, Exitcode 2
!!! compile failure
!!! If you need support, post the topmost build error, NOT this status message. |
|
Back to top |
|
|
aminal Apprentice
Joined: 17 Mar 2004 Posts: 170 Location: Baltimore, MD
|
Posted: Thu Dec 23, 2004 12:49 am Post subject: |
|
|
schmmd wrote: | Quote: | emerge -C linux-headers && emerge linux26-headers glibc totem |
...did not work for me. Output:
In file included from /usr/include/netdb.h:28,
from /usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-address.h:31,
from /usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs.h:28,
from totem-disc.c:38:
/usr/include/netinet/in.h:354: error: syntax error before '(' token
/usr/include/netinet/in.h:354: error: syntax error before "__u32"
/usr/include/netinet/in.h:355: error: syntax error before '(' token
/usr/include/netinet/in.h:355: error: syntax error before "__u16"
/usr/include/netinet/in.h:357: error: syntax error before '(' token
/usr/include/netinet/in.h:357: error: syntax error before "__u32"
/usr/include/netinet/in.h:359: error: syntax error before '(' token
/usr/include/netinet/in.h:359: error: syntax error before "__u16"
make[2]: *** [totem-disc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/totem-0.99.19/work/totem-0.99.19/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/totem-0.99.19/work/totem-0.99.19'
make: *** [all-recursive-am] Error 2
!!! ERROR: media-video/totem-0.99.19 failed.
!!! Function gnome2_src_compile, Line 40, Exitcode 2
!!! compile failure
!!! If you need support, post the topmost build error, NOT this status message. |
Hmmm. I got the exact same error - Line and exitcode. If you have an athlon, try changing cflags to "-mcpu=athlon-xp -O2 -pipe." That's what I have. Otherwise don't know what to tell ya. |
|
Back to top |
|
|
wantilles Tux's lil' helper
Joined: 12 Aug 2003 Posts: 136 Location: Athens - Greece
|
Posted: Thu Dec 23, 2004 10:36 pm Post subject: |
|
|
Code: | emerge -C linux-headers && emerge linux26-headers glibc totem |
Worked as a charm.
Excellent suggestion.
I agree that the totem ebuild should have the 2.6.x headers as a dependency. |
|
Back to top |
|
|
schmmd n00b
Joined: 19 Nov 2004 Posts: 34
|
Posted: Fri Dec 24, 2004 12:07 am Post subject: |
|
|
I do have an Athlon (XP), but how would one:
Quote: | "change cflags to -mcpu=athlon-xp -O2 -pipe." |
? As I have not done this before, I do not know what this means. |
|
Back to top |
|
|
aminal Apprentice
Joined: 17 Mar 2004 Posts: 170 Location: Baltimore, MD
|
Posted: Fri Dec 24, 2004 1:22 am Post subject: |
|
|
It's in /etc/make.conf |
|
Back to top |
|
|
irusun n00b
Joined: 11 Mar 2003 Posts: 27
|
Posted: Fri Dec 24, 2004 3:51 pm Post subject: |
|
|
Quote: | emerge -C linux-headers && emerge linux26-headers glibc totem
...did not work for me. Output:
In file included from /usr/include/netdb.h:28,
from /usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-address.h:31,
from /usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs.h:28,
from totem-disc.c:38:
/usr/include/netinet/in.h:354: error: syntax error before '(' token
/usr/include/netinet/in.h:354: error: syntax error before "__u32"
/usr/include/netinet/in.h:355: error: syntax error before '(' token
/usr/include/netinet/in.h:355: error: syntax error before "__u16"
/usr/include/netinet/in.h:357: error: syntax error before '(' token
/usr/include/netinet/in.h:357: error: syntax error before "__u32"
/usr/include/netinet/in.h:359: error: syntax error before '(' token
/usr/include/netinet/in.h:359: error: syntax error before "__u16"
make[2]: *** [totem-disc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/totem-0.99.19/work/totem-0.99.19/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/totem-0.99.19/work/totem-0.99.19'
make: *** [all-recursive-am] Error 2
!!! ERROR: media-video/totem-0.99.19 failed.
!!! Function gnome2_src_compile, Line 40, Exitcode 2
!!! compile failure
!!! If you need support, post the topmost build error, NOT this status message. |
Didn't work for me either. I'm using a P4.
I then tried
Code: | CFLAGS="-march=pentium3 -O2 -pipe" emerge totem |
but that didn't work either |
|
Back to top |
|
|
irusun n00b
Joined: 11 Mar 2003 Posts: 27
|
|
Back to top |
|
|
mmeri n00b
Joined: 25 Nov 2004 Posts: 3 Location: Joensuu, Finland
|
Posted: Fri Jan 14, 2005 10:27 pm Post subject: |
|
|
irusun wrote: | This finally worked for me:
Code: |
CFLAGS="-march=pentium4" emerge totem |
|
I can confirm that Code: | CFLAGS="-march=pentium4" emerge totem | worked on my Shuttle/P4 (kernel-2.4.26-gentoo-r12, kde 3.3.2).
Emerging linux-headers and glibc didn't do it, but gradually dropping optimization flags down to only "-march=pentium4" made totem compile. |
|
Back to top |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
|
Back to top |
|
|
|