This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Possible Bug? linking sockets and system libraries


Hi All:

I installed version 1.5.10-3 of CYGWIN in my SONY VAIO laptop over Windows-XP.
Over cygwin I instaled SDL library, then I tried with "ffmpeg" multimedia
software. 

After several days compiling and linking the program named "ffplay" (inside the
ffmpeg package) and searching solutions in several software manual and guides,
I cannot solve the linking errors I include below.  Is it a "gcc" package error
or could I include other liraries ? (the options of "gcc" are taken from the
standard "Makefile" in ffmpeg package). 

Below you can find the linking errors (I have eliminated some of them that was
repeated). 

I would be grateful if you indicate me how to correct the errors, or indicate me
if this is a bug in "gcc". 

Thank you very much in advance.


ALVARO,
  Atlanta, 04:August:2004

make -C libavcodec all
make[1]: Entering directory `/home/Alvaro/ffmpeg-cvs-2004-07-12/libavcodec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Alvaro/ffmpeg-cvs-2004-07-12/libavcodec'
make -C libavformat all
make[1]: Entering directory `/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat'
gcc -O3 -g -Wall  -I. -I/home/Alvaro/ffmpeg-cvs-2004-07-12
-I/home/Alvaro/ffmpeg-cvs-2004-07-12/libavcodec
-I/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o ffserver.o ffserver.c 
gcc -Wl,--warn-common -g  -Wl,-E -o ffserver ffserver.o -L./libavformat
-lavformat -L./libavcodec -lavcodec -lz -lpthread  
gcc -O3 -g -Wall  -I. -I/home/Alvaro/ffmpeg-cvs-2004-07-12
-I/home/Alvaro/ffmpeg-cvs-2004-07-12/libavcodec
-I/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -I/usr/local/include/SDL -Dmain=SDL_main
-I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin -c -o ffplay.o ffplay.c 
gcc -Wl,--warn-common -g  -v -o ffplay_g ffplay.o cmdutils.o -L./libavformat
-lavformat -L./libavcodec -lavcodec -lz -lpthread  -L/usr/local/lib -lmingw32
-lSDLmain -lSDL -mwindows -mno-cygwin
Reading specs from /usr/lib/gcc-lib/i686-pc-mingw32/3.3.1/specs
Configured with: /GCC/gcc-3.3.1-3/configure --with-gcc --with-gnu-ld
--with-gnu-as --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc
--libdir=/usr/lib --libexecdir=/usr/sbin --mandir=/usr/share/man
--infodir=/usr/share/info --enable-languages=c,ada,c++,f77,pascal,java,objc
--enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls
--without-included-gettext --enable-interpreter --enable-sjlj-exceptions
--disable-version-specific-runtime-libs --enable-shared
--disable-win32-registry --enable-java-gc=boehm --disable-hash-synchronization
--verbose --target=i686-pc-cygwin --host=i686-pc-cygwin --build=i686-pc-cygwin
Thread model: posix
gcc version 3.3.1 (cygming special)
 /usr/lib/gcc-lib/i686-pc-mingw32/3.3.1/collect2.exe --subsystem windows
-Bdynamic -o ffplay_g.exe
/usr/lib/gcc-lib/i686-pc-mingw32/3.3.1/../../../../i686-pc-mingw32/lib/crt2.o
/usr/lib/gcc-lib/i686-pc-mingw32/3.3.1/crtbegin.o -L./libavformat
-L./libavcodec -L/usr/local/lib -L/usr/lib/gcc-lib/i686-pc-mingw32/3.3.1
-L/usr/lib/gcc-lib/i686-pc-mingw32/3.3.1/../../../../i686-pc-mingw32/lib
-L/usr/lib/gcc-lib/i686-pc-mingw32/3.3.1/../../.. --warn-common ffplay.o
cmdutils.o -lavformat -lavcodec -lz -lpthread -lmingw32 -lSDLmain -lSDL
-lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -lmingw32 -lgdi32 -lcomdlg32
-luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex
-lmsvcrt /usr/lib/gcc-lib/i686-pc-mingw32/3.3.1/crtend.o

./libavformat/libavformat.a(rtsp.o)(.text+0xbd3): In function
`rtsp_parse_transport':
/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/rtsp.c:510: undefined reference
to `_inet_aton'
./libavformat/libavformat.a(rtsp.o)(.text+0x25c0): In function
`sdp_read_header':
/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/rtsp.c:1223: undefined reference
to `_inet_ntoa'
./libavformat/libavformat.a(rtsp.o)(.text+0x2b86): In function
`udp_read_packet':
/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/rtsp.c:999: undefined reference
to `_select'
... (follow ...)
./libavformat/libavformat.a(rtsp.o)(.text+0x39dd): In function `hex_to_data':
/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/rtsp.c:173: undefined reference
to `__imp___ctype_'
./libavformat/libavformat.a(utils.o)(.text+0x803): In function
`av_add_index_entry':
/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/utils.c:890: undefined reference
to `___assert'
... (follow ...)
./libavformat/libavformat.a(utils.o)(.text+0x13a4):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/utils.c:1016:
more undefined references to `___assert' follow
./libavformat/libavformat.a(utils.o)(.text+0x24f0): In function `parse_date':
/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/utils.c:2324: undefined
reference
to `__imp___ctype_'
... (follow ...)
./libavformat/libavformat.a(cutils.o)(.text+0x1c8):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/cutils.c:160:
more undefined references to `__imp___ctype_' follow
./libavformat/libavformat.a(os_support.o)(.text+0x18): In function
`av_gettime':
/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/os_support.c:42: undefined
reference to `_gettimeofday'
./libavformat/libavformat.a(rtp.o)(.text+0x7b3): In function
`rtp_write_header':
/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/rtp.c:407: undefined reference
to
`_random'
./libavformat/libavformat.a(rtp.o)(.text+0x7be):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/rtp.c:409:
undefined reference to `_random'
./libavformat/libavformat.a(rtpproto.o)(.text+0x5c4): In function `rtp_read':
/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/rtpproto.c:201: undefined
reference to `_select'
./libavformat/libavformat.a(rtpproto.o)(.text+0x637):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/rtpproto.c:218:
undefined reference to `_recvfrom'
./libavformat/libavformat.a(rtpproto.o)(.text+0x640):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/rtpproto.c:221:
undefined reference to `___errno'
./libavformat/libavformat.a(rtpproto.o)(.text+0x64e):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/rtpproto.c:221:
undefined reference to `___errno'
./libavformat/libavformat.a(udp.o)(.text+0x326): In function `udp_open':
/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/udp.c:146: undefined reference
to
`_socket'
./libavformat/libavformat.a(udp.o)(.text+0x377):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/udp.c:160:
undefined reference to `_bind'
./libavformat/libavformat.a(udp.o)(.text+0x3a3):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/udp.c:164:
undefined reference to `_getsockname'
./libavformat/libavformat.a(udp.o)(.text+0x3ea):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/udp.c:171:
undefined reference to `_setsockopt'
./libavformat/libavformat.a(udp.o)(.text+0x44c):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/udp.c:193:
undefined reference to `_setsockopt'
./libavformat/libavformat.a(udp.o)(.text+0x4b8):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/udp.c:181:
undefined reference to `_setsockopt'
./libavformat/libavformat.a(udp.o)(.text+0x5ab): In function `udp_read':
/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/udp.c:220: undefined reference
to
`_recvfrom'
... (follow ...)
./libavformat/libavformat.a(udp.o)(.text+0x5be):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/udp.c:223:
undefined reference to `___errno'
./libavformat/libavformat.a(udp.o)(.text+0x625): In function `udp_write':
/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/udp.c:238: undefined reference
to
`_sendto'
... (follow ...)
undefined reference to `_gethostbyname'
./libavformat/libavformat.a(tcp.o)(.text+0x1aa): In function `tcp_open':
/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/tcp.c:45: undefined reference to
`_inet_aton'
... (follow ...)
undefined reference to `_fcntl'
./libavformat/libavformat.a(tcp.o)(.text+0x236):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/tcp.c:99:
undefined reference to `_connect'
... (follow ...)
./libavformat/libavformat.a(tcp.o)(.text+0x2f6):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/tcp.c:118:
undefined reference to `_select'
./libavformat/libavformat.a(tcp.o)(.text+0x355):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/tcp.c:125:
undefined reference to `_getsockopt'
... (follow ...)
./libavformat/libavformat.a(audio.o)(.text+0x418): In function
`audio_read_packet':
/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/audio.c:279: undefined reference
to `_ioctl'
... (follow ...)
./libavformat/libavformat.a(dv.o)(.text+0x4ddd): In function `dv_write_pack':
/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/dv.c:198: undefined reference to
`_localtime_r'
./libavformat/libavformat.a(dv.o)(.text+0x4f27):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/dv.c:256:
undefined reference to `_localtime_r'
./libavformat/libavformat.a(dv.o)(.text+0x50dc):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavformat/dv.c:271:
undefined reference to `_localtime_r'
... (follow ...)
./libavcodec/libavcodec.a(ratecontrol.o)(.text+0x1798):/home/Alvaro/ffmpeg-cvs-2004-07-12/libavcodec/ratecontrol.c:694:
more undefined references to `___assert' follow
collect2: ld returned 1 exit status
make: *** [ffplay_g] Error 1






--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]