Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Totem Compile Error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
schmmd
n00b
n00b


Joined: 19 Nov 2004
Posts: 34

PostPosted: Mon Dec 20, 2004 10:59 am    Post subject: Totem Compile Error Reply with quote

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
View user's profile Send private message
merclude
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2004
Posts: 85
Location: Michigan

PostPosted: Mon Dec 20, 2004 11:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
aminal
Apprentice
Apprentice


Joined: 17 Mar 2004
Posts: 170
Location: Baltimore, MD

PostPosted: Wed Dec 22, 2004 6:17 am    Post subject: Reply with quote

I got the same error. :(
Back to top
View user's profile Send private message
aminal
Apprentice
Apprentice


Joined: 17 Mar 2004
Posts: 170
Location: Baltimore, MD

PostPosted: Wed Dec 22, 2004 1:31 pm    Post subject: Reply with quote

aminal wrote:
I got the same error. :(


Code:

emerge -C linux-headers && emerge linux26-headers glibc totem


Worked.
Back to top
View user's profile Send private message
rusty
Apprentice
Apprentice


Joined: 07 May 2004
Posts: 181
Location: St.Louis

PostPosted: Wed Dec 22, 2004 5:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
aminal
Apprentice
Apprentice


Joined: 17 Mar 2004
Posts: 170
Location: Baltimore, MD

PostPosted: Wed Dec 22, 2004 7:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
schmmd
n00b
n00b


Joined: 19 Nov 2004
Posts: 34

PostPosted: Wed Dec 22, 2004 9:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
aminal
Apprentice
Apprentice


Joined: 17 Mar 2004
Posts: 170
Location: Baltimore, MD

PostPosted: Thu Dec 23, 2004 12:49 am    Post subject: Reply with quote

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
View user's profile Send private message
wantilles
Tux's lil' helper
Tux's lil' helper


Joined: 12 Aug 2003
Posts: 136
Location: Athens - Greece

PostPosted: Thu Dec 23, 2004 10:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
schmmd
n00b
n00b


Joined: 19 Nov 2004
Posts: 34

PostPosted: Fri Dec 24, 2004 12:07 am    Post subject: Reply with quote

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
View user's profile Send private message
aminal
Apprentice
Apprentice


Joined: 17 Mar 2004
Posts: 170
Location: Baltimore, MD

PostPosted: Fri Dec 24, 2004 1:22 am    Post subject: Reply with quote

It's in /etc/make.conf
Back to top
View user's profile Send private message
irusun
n00b
n00b


Joined: 11 Mar 2003
Posts: 27

PostPosted: Fri Dec 24, 2004 3:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
irusun
n00b
n00b


Joined: 11 Mar 2003
Posts: 27

PostPosted: Fri Dec 24, 2004 4:06 pm    Post subject: Reply with quote

This finally worked for me:
Code:

CFLAGS="-march=pentium4" emerge totem


Found suggestion here:
http://forums.gentoo.org/viewtopic.php?t=252436&highlight=totem
Back to top
View user's profile Send private message
mmeri
n00b
n00b


Joined: 25 Nov 2004
Posts: 3
Location: Joensuu, Finland

PostPosted: Fri Jan 14, 2005 10:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4831
Location: Gothenburg, Sweden

PostPosted: Sat Jan 22, 2005 11:12 am    Post subject: Reply with quote

Moved from Portage & Programming in favour of http://forums.gentoo.org/viewtopic.php?t=252436
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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