Opened 12 years ago

Closed 8 years ago

#725 closed defect (wontfix)

compile error in stream_dvd.c

Reported by: mplayer-bugs@… Owned by: reimar
Priority: normal Component: streaming
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

When compiling recent SVN versions (lastest tested: ) I get

cc -I../loader -I. -I.. -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/local/src/mplayer/SVN/nut/libnut -I/usr/local/src/mplayer/SVN/x264 -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -I/usr/include/artsc -I/usr/include -I/usr/include/dvdnav -I/usr/include/freetype2 -I/usr/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c -o stream_dvd.o stream_dvd.c
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system directory
In file included from /usr/include/netdb.h:28,

from network.h:16,
from stream.h:64,
from stream_dvd.c:32:

/usr/include/netinet/in.h:259: parse error before '(' token
/usr/include/netinet/in.h:259: parse error before "u32"
/usr/include/netinet/in.h:260: parse error before '(' token
/usr/include/netinet/in.h:260: parse error before "
u16"
/usr/include/netinet/in.h:262: parse error before '(' token
/usr/include/netinet/in.h:262: parse error before "u32"
/usr/include/netinet/in.h:264: parse error before '(' token
/usr/include/netinet/in.h:264: parse error before "
u16"
In file included from /usr/include/netdb.h:28,

from network.h:16,
from stream.h:64,
from stream_dvd.c:32:

/usr/include/netinet/in.h:285:1: warning: "ntohl" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,

from /usr/include/asm/byteorder.h:32,
from /usr/include/linux/cdrom.h:14,
from stream_dvd.c:20:

/usr/include/linux/byteorder/generic.h:169:1: warning: this is the location of the previous definition
In file included from /usr/include/netdb.h:28,

from network.h:16,
from stream.h:64,
from stream_dvd.c:32:

/usr/include/netinet/in.h:286:1: warning: "ntohs" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,

from /usr/include/asm/byteorder.h:32,
from /usr/include/linux/cdrom.h:14,
from stream_dvd.c:20:

/usr/include/linux/byteorder/generic.h:175:1: warning: this is the location of the previous definition
In file included from /usr/include/netdb.h:28,

from network.h:16,
from stream.h:64,
from stream_dvd.c:32:

/usr/include/netinet/in.h:287:1: warning: "htonl" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,

from /usr/include/asm/byteorder.h:32,
from /usr/include/linux/cdrom.h:14,
from stream_dvd.c:20:

/usr/include/linux/byteorder/generic.h:168:1: warning: this is the location of the previous definition
In file included from /usr/include/netdb.h:28,

from network.h:16,
from stream.h:64,
from stream_dvd.c:32:

/usr/include/netinet/in.h:288:1: warning: "htons" redefined
In file included from /usr/include/linux/byteorder/little_endian.h:66,

from /usr/include/asm/byteorder.h:32,
from /usr/include/linux/cdrom.h:14,
from stream_dvd.c:20:

/usr/include/linux/byteorder/generic.h:174:1: warning: this is the location of the previous definition
stream_dvd.c: In function `dvd_parse_chapter_range':
stream_dvd.c:173: warning: passing arg 2 of `strtol' from incompatible pointer type
make[1]: * [stream_dvd.o] Error 1
make[1]: Leaving directory `/usr/local/src/mplayer/SVN/mplayer/stream'
make:
* [stream/stream.a] Error 2

Moving the include of stream.h up some lines fixes this problem, a patch is attached.

cu, Bodo

Attachments (1)

patch.compile (420 bytes) - added by mplayer-bugs@… 12 years ago.
stream_dvd.c compile patch

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by mplayer-bugs@…

stream_dvd.c compile patch

comment:1 Changed 12 years ago by mplayer-bugs@…

comment:2 Changed 8 years ago by compn

  • Owner changed from r_togni@… to reimar

comment:3 Changed 8 years ago by reimar

  • Resolution set to wontfix
  • Status changed from new to closed

I'll assume this is a system header issue and has been solved already anyway.

Note: See TracTickets for help on using tickets.