Summary: | xine-ui can't build with gcc-3.1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Rufiao Valhacouto <rufiao> |
Component: | [OLD] GCC Porting | Assignee: | Matthew Kennedy (RETIRED) <mkennedy> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Rufiao Valhacouto
2002-06-06 22:47:16 UTC
I have the same problem It seems to me that this has something to do with the libreadline that is shipped with xine-ui (xitk does not use the systems libreadline). When I manually move the "-lcurses"-switch to gcc to the end of the commandline I can successfully compile xine-ui. Can you provide a patch for testing? Sorry, I am afraid I can not. I have too little knowledge about automake/autoconf to patch the Makefile.[am/in] of xine-ui to reorder the options given to gcc. All I can offer is a step-by-step instruction how I did it: 1. compile xine-ui manually (see also FAQ for details: http://www.gentoo.org/doc/faq.html#_sect9) | ebuild /usr/portage/media-video/xine-ui/xine-ui-0.9.9-r1.ebuild compile (aborts with the error in question in scr/xitk) 2. go to the subdir src/xitk | cd /var/tmp/portage/xine-ui-0.9.9-r1/work/xine-ui-0.9.9/src/xitk/ 3. copy&paste the last command (that one that failed) and add "-lcurses" to the commandline; gives something like this, depending on your system/configuration (all in one line): | gcc -O3 -pipe -fomit-frame-pointer -malign-functions=4 -malign-loops=4 | -malign-jumps=4 -malign-functions=4 -mpreferred-stack-boundary=2 | -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing | -ffast-math -funroll-loops -funroll-all-loops -finline-functions | -mcpu=athlon -Wall -D_FILE_OFFSET_BITS=64 -I/usr/X11R6/include | -I/usr/include -I../../src/xitk/xine-toolkit -o xine-remote | xine-remote.o -lcurses -lnsl -lpthread | ../../readline/.libs/libreadline.a -lcurses 4. continue with make in the basedir (/var/tmp/portage/xine-ui-0.9.9-r1/work/xine-ui-0.9.9) | cd ../.. | make 5. trick emerge/ebuild to think they compiled the package (also in /var/tmp/portage/xine-ui-0.9.9-r1/work/xine-ui-0.9.9) | touch .compiled 6. merge xine-ui | ebuild /usr/portage/media-video/xine-ui/xine-ui-0.9.9-r1.ebuild merge if everything worked, you now have xine-ui installed 7. clean up the tmp-dir | ebuild /usr/portage/media-video/xine-ui/xine-ui-0.9.9-r1.ebuild clean I had a fight with some sed and a little Makefile.in today, and this is now fixed in xine-ui-0.9.9-r1, please note that there is some other issue with directfb support for xine-ui and gcc-3.1 which I didn't fix, I simply made sure that xine-ui doesn't try to build dfb support if it is not in use. |