Unix Technical Forum

compiling problem

This is a discussion on compiling problem within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I use -current slack with 2.6.9 krenel 3.3.4 gcc And I can't compile Mplayer I think there is some ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 05:33 PM
Patryk
 
Posts: n/a
Default compiling problem

I use -current slack with
2.6.9 krenel
3.3.4 gcc
And I can't compile Mplayer
I think there is some incompatibility with gcc

make
make -C libmpdemux
make[1]: Entering directory `/home/patryk/MPlayer-20041118/libmpdemux'
cc -c -I../libvo -I../../libvo -I/usr/X11/include -fno-PIC -O4
-march=athlon-4 -mcpu=athlon-4 -pipe -ffast-math -fomit-frame-pointer
-D_REENTRANT -I.. -I../loader -o stream_vcd.o stream_vcd.c
In file included from /usr/include/asm/byteorder.h:57,
from /usr/include/linux/cdrom.h:14,
from vcd_read.h:7,
from stream_vcd.c:25:
/usr/include/linux/byteorder/little_endian.h:43: error: parse error before
"__cpu_to_le64p"
/usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_le64p':
/usr/include/linux/byteorder/little_endian.h:45: error: `__le64' undeclared
(first use in this function)
/usr/include/linux/byteorder/little_endian.h:45: error: (Each undeclared
identifier is reported only once
/usr/include/linux/byteorder/little_endian.h:45: error: for each function it
appears in.)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:47: error: parse error before
'*' token
/usr/include/linux/byteorder/little_endian.h: In function `__le64_to_cpup':
/usr/include/linux/byteorder/little_endian.h:49: error: `p' undeclared
(first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:51: error: parse error before
"__cpu_to_le32p"
/usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_le32p':
/usr/include/linux/byteorder/little_endian.h:53: error: `__le32' undeclared
(first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:55: error: parse error before
'*' token
/usr/include/linux/byteorder/little_endian.h: In function `__le32_to_cpup':
/usr/include/linux/byteorder/little_endian.h:57: error: `p' undeclared
(first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:59: error: parse error before
"__cpu_to_le16p"
/usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_le16p':
/usr/include/linux/byteorder/little_endian.h:61: error: `__le16' undeclared
(first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:63: error: parse error before
'*' token
/usr/include/linux/byteorder/little_endian.h: In function `__le16_to_cpup':
/usr/include/linux/byteorder/little_endian.h:65: error: `p' undeclared
(first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:67: error: parse error before
"__cpu_to_be64p"
/usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_be64p':
/usr/include/linux/byteorder/little_endian.h:69: error: `__be64' undeclared
(first use in this function)
/usr/include/linux/byteorder/little_endian.h:69: error: parse error before
"__swab64p"
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:71: error: parse error before
'*' token
/usr/include/linux/byteorder/little_endian.h: In function `__be64_to_cpup':
/usr/include/linux/byteorder/little_endian.h:73: error: `p' undeclared
(first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:75: error: parse error before
"__cpu_to_be32p"
/usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_be32p':
/usr/include/linux/byteorder/little_endian.h:77: error: `__be32' undeclared
(first use in this function)
/usr/include/linux/byteorder/little_endian.h:77: error: parse error before
"__swab32p"
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:79: error: parse error before
'*' token
/usr/include/linux/byteorder/little_endian.h: In function `__be32_to_cpup':
/usr/include/linux/byteorder/little_endian.h:81: error: `p' undeclared
(first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:83: error: parse error before
"__cpu_to_be16p"
/usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_be16p':
/usr/include/linux/byteorder/little_endian.h:85: error: `__be16' undeclared
(first use in this function)
/usr/include/linux/byteorder/little_endian.h:85: error: parse error before
"__swab16p"
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:87: error: parse error before
'*' token
/usr/include/linux/byteorder/little_endian.h: In function `__be16_to_cpup':
/usr/include/linux/byteorder/little_endian.h:89: error: `p' undeclared
(first use in this function)
make[1]: *** [stream_vcd.o] Error 1
make[1]: Leaving directory `/home/patryk/MPlayer-20041118/libmpdemux'
make: *** [libmpdemux/libmpdemux.a] Error 2


--
Patryk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 05:34 PM
jayjwa
 
Posts: n/a
Default Re: compiling problem

On 2004-11-20, Patryk <patrykNO@SPaMpoczta.onet.pl> wrote:
> I use -current slack with
> 2.6.9 krenel
> 3.3.4 gcc
> And I can't compile Mplayer
> I think there is some incompatibility with gcc
>
> make
> make -C libmpdemux
> make[1]: Entering directory `/home/patryk/MPlayer-20041118/libmpdemux'
> cc -c -I../libvo -I../../libvo -I/usr/X11/include -fno-PIC -O4
> -march=athlon-4 -mcpu=athlon-4 -pipe -ffast-math -fomit-frame-pointer
> -D_REENTRANT -I.. -I../loader -o stream_vcd.o stream_vcd.c
> In file included from /usr/include/asm/byteorder.h:57,
> from /usr/include/linux/cdrom.h:14,
> from vcd_read.h:7,
> from stream_vcd.c:25:
> /usr/include/linux/byteorder/little_endian.h:43: error: parse error before
> "__cpu_to_le64p"
> /usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_le64p':
> /usr/include/linux/byteorder/little_endian.h:45: error: `__le64' undeclared
> (first use in this function)
> /usr/include/linux/byteorder/little_endian.h:45: error: (Each undeclared
> identifier is reported only once
> /usr/include/linux/byteorder/little_endian.h:45: error: for each function it
> appears in.)
> /usr/include/linux/byteorder/little_endian.h: At top level:
> /usr/include/linux/byteorder/little_endian.h:47: error: parse error before
> '*' token
> /usr/include/linux/byteorder/little_endian.h: In function `__le64_to_cpup':
> /usr/include/linux/byteorder/little_endian.h:49: error: `p' undeclared
> (first use in this function)
> /usr/include/linux/byteorder/little_endian.h: At top level:
> /usr/include/linux/byteorder/little_endian.h:51: error: parse error before
> "__cpu_to_le32p"
> /usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_le32p':
> /usr/include/linux/byteorder/little_endian.h:53: error: `__le32' undeclared
> (first use in this function)
> /usr/include/linux/byteorder/little_endian.h: At top level:
> /usr/include/linux/byteorder/little_endian.h:55: error: parse error before
> '*' token
> /usr/include/linux/byteorder/little_endian.h: In function `__le32_to_cpup':
> /usr/include/linux/byteorder/little_endian.h:57: error: `p' undeclared
> (first use in this function)
> /usr/include/linux/byteorder/little_endian.h: At top level:
> /usr/include/linux/byteorder/little_endian.h:59: error: parse error before
> "__cpu_to_le16p"
> /usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_le16p':
> /usr/include/linux/byteorder/little_endian.h:61: error: `__le16' undeclared
> (first use in this function)
> /usr/include/linux/byteorder/little_endian.h: At top level:
> /usr/include/linux/byteorder/little_endian.h:63: error: parse error before
> '*' token
> /usr/include/linux/byteorder/little_endian.h: In function `__le16_to_cpup':
> /usr/include/linux/byteorder/little_endian.h:65: error: `p' undeclared
> (first use in this function)
> /usr/include/linux/byteorder/little_endian.h: At top level:
> /usr/include/linux/byteorder/little_endian.h:67: error: parse error before
> "__cpu_to_be64p"
> /usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_be64p':
> /usr/include/linux/byteorder/little_endian.h:69: error: `__be64' undeclared
> (first use in this function)
> /usr/include/linux/byteorder/little_endian.h:69: error: parse error before
> "__swab64p"
> /usr/include/linux/byteorder/little_endian.h: At top level:
> /usr/include/linux/byteorder/little_endian.h:71: error: parse error before
> '*' token
> /usr/include/linux/byteorder/little_endian.h: In function `__be64_to_cpup':
> /usr/include/linux/byteorder/little_endian.h:73: error: `p' undeclared
> (first use in this function)
> /usr/include/linux/byteorder/little_endian.h: At top level:
> /usr/include/linux/byteorder/little_endian.h:75: error: parse error before
> "__cpu_to_be32p"
> /usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_be32p':
> /usr/include/linux/byteorder/little_endian.h:77: error: `__be32' undeclared
> (first use in this function)
> /usr/include/linux/byteorder/little_endian.h:77: error: parse error before
> "__swab32p"
> /usr/include/linux/byteorder/little_endian.h: At top level:
> /usr/include/linux/byteorder/little_endian.h:79: error: parse error before
> '*' token
> /usr/include/linux/byteorder/little_endian.h: In function `__be32_to_cpup':
> /usr/include/linux/byteorder/little_endian.h:81: error: `p' undeclared
> (first use in this function)
> /usr/include/linux/byteorder/little_endian.h: At top level:
> /usr/include/linux/byteorder/little_endian.h:83: error: parse error before
> "__cpu_to_be16p"
> /usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_be16p':
> /usr/include/linux/byteorder/little_endian.h:85: error: `__be16' undeclared
> (first use in this function)
> /usr/include/linux/byteorder/little_endian.h:85: error: parse error before
> "__swab16p"
> /usr/include/linux/byteorder/little_endian.h: At top level:
> /usr/include/linux/byteorder/little_endian.h:87: error: parse error before
> '*' token
> /usr/include/linux/byteorder/little_endian.h: In function `__be16_to_cpup':
> /usr/include/linux/byteorder/little_endian.h:89: error: `p' undeclared
> (first use in this function)
> make[1]: *** [stream_vcd.o] Error 1
> make[1]: Leaving directory `/home/patryk/MPlayer-20041118/libmpdemux'
> make: *** [libmpdemux/libmpdemux.a] Error 2



When you see this kind of stuff it usually means something isn't getting
defined, which leaves blanks. Like if X normally gets defined,

X Y;


but when it doesn't

Y;

parse error! It's hard to track without sitting at your machine and being able
to look at the files. I usually start at the lowest line number that it's
complaining about and find were that first error is that's having a domino
effect on the rest of the program. I don't think it's gcc itself...

I'd probably start with little_endian.h around line 43, see what's there, if
that line seems OK, and if not, why. It seems like alot of import things about
your system get declared in config.h (which is really just including
autoconf.h). I'd make sure that stuff is an acurate reflection of my system too.
Just keep working backwards until you find what's not being declared that
should be.

--
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 05:47 PM
Frank Fox
 
Posts: n/a
Default Re: compiling problem

Patryk wrote:
> I use -current slack with 2.6.9 krenel 3.3.4 gcc And I
> can't compile Mplayer I think there is some
> incompatibility with gcc


I think that you trying compile against the 2.6.9 header
files. Go back to the linux-2.4.27 header files. There is
nothing to be gained unless you also compile glibc against
2.6.9.

Frank Fox
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:15 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com