[MPlayer-users] [BUG] Compilation fails on Cygwin with --enable-menu
Diego Biurrun
diego at biurrun.de
Thu Jan 2 18:04:18 CET 2003
Hello!
Cygwin complains when I try to enable the menu:
make[1]: Entering directory `/home/Administrator/tree/libmenu'
gcc -c -O4 -march=k6-2 -mcpu=k6-2 -pipe -ffast-math -fomit-frame-pointer
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D__CYGWIN__ -I. -I..
-I../libmpcodecs -Wal
l -o menu.o menu.c
gcc -c -O4 -march=k6-2 -mcpu=k6-2 -pipe -ffast-math -fomit-frame-pointer
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D__CYGWIN__ -I. -I..
-I../libmpcodecs -Wal
l -o vf_menu.o vf_menu.c
gcc -c -O4 -march=k6-2 -mcpu=k6-2 -pipe -ffast-math -fomit-frame-pointer
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D__CYGWIN__ -I. -I..
-I../libmpcodecs -Wal
l -o menu_cmdlist.o menu_cmdlist.c
gcc -c -O4 -march=k6-2 -mcpu=k6-2 -pipe -ffast-math -fomit-frame-pointer
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D__CYGWIN__ -I. -I..
-I../libmpcodecs -Wal
l -o menu_pt.o menu_pt.c
menu_pt.c:5:20: libgen.h: No such file or directory
menu_pt.c: In function `op':
menu_pt.c:130: warning: implicit declaration of function `basename'
menu_pt.c:130: warning: assignment makes pointer from integer without a cast
make[1]: *** [menu_pt.o] Error 1
make[1]: Leaving directory `/home/Administrator/tree/libmenu'
make: *** [libmenu/libmenu.a] Error 2
Apparently that's because menu_pt.c #includes libgen.h which is from
glibc and Cygwin has no glibc. It compiles if I #ifdef it out, but then
it fails at linking:
libmenu/libmenu.a(menu_pt.o)(.text+0x1a6):menu_pt.c: undefined reference
to `_basename'
collect2: ld returned 1 exit status
Somebody know how to fix this?
Diego
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: config.h
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20030102/374ecbd0/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: config.mak
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20030102/374ecbd0/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: config.mak
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20030102/374ecbd0/attachment-0001.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: configure.log
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20030102/374ecbd0/attachment-0001.txt>
More information about the MPlayer-users
mailing list