Problem compiling xine-lib on RedHat EL 4
Gustavo da Silva Serra <[email protected]>
| Newsgroups | gmane.comp.video.xine.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am having problems to compile xnie-lib from source on a 64bit environment, Red Hat EL 4. After executing ./configure, make stops at the following point: gcc -shared .libs/xine.o .libs/metronom.o .libs/configfile.o .libs/buffer.o .libs/load_plugins.o .libs/video_decoder.o .libs/buffer_types.o .libs/audio_decoder.o .libs/video_out.o .libs/audio_out.o .libs/resample.o .libs/events.o .libs/video_overlay.o .libs/osd.o .libs/scratch.o .libs/demux.o .libs/vo_scale.o .libs/xine_interface.o .libs/post.o .libs/tvmode.o .libs/broadcaster.o .libs/io_helper.o .libs/input_rip.o .libs/input_cache.o .libs/info_helper.o .libs/refcounter.o .libs/alphablend.o -Wl,--whole-archive ../../src/xine-utils/.libs/libxineutils.a ../../lib/.libs/libxineposix.a -Wl,--no-whole-archive -ldl -lz -lm -lrt -lresolv -lnsl -pthread -Wl,-soname -Wl,libxine.so.1 -o .libs/libxine.so.1.20.0 /usr/bin/ld: .libs/xine.o: relocation R_X86_64_PC32 against `xine_event_send' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[2]: *** [libxine.la] Error 1 make[2]: Leaving directory `/root/xine/xine-lib-1.1.11.1/src/xine-engine' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/xine/xine-lib-1.1.11.1/src' make: *** [all-recursive] Error 1 It tells me to recompile with -fPIC. I executed "make | grep xine.o" and found this: gcc -DHAVE_CONFIG_H -I. -I../../include -I../.. -I../../include -I../../include -I../../src -I../../src/xine-engine -I../../src/xine-engine -I../../src/xine-utils -I../../src/input -I../../src/input -I../../lib -I../../lib -DXINE_LIBRARY_COMPILE -I/usr/X11R6/include -fvisibility=hidden -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute -Werror-implicit-function-declaration -Wstrict-aliasing=2 -O3 -fomit-frame-pointer -fexpensive-optimizations -fschedule-insns2 -ffast-math -finline-functions -Wall -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -g -O2 -DNDEBUG -MT xine.lo -MD -MP -MF .deps/xine.Tpo -c xine.c -fPIC -DPIC -o .libs/xine.o Which tells me that xine.o was compiled with -fPIC options. Just to make sure, I used "./configure CFLAGS=-fPIC" with the same results. Any idea? Thanks. -- Gustavo da Silva Serra [email protected] ——————————————————————————— Tools & Technologies - T&T Engenheiros Associados Ltda. Projetos de SW & HW - Desenvolvendo soluções. Rua Riachuelo, 1098 Conj. 1204 Centro - Porto Alegre - CEP 90010-272 Fone DDR: (51)3220-3290 Fone/Fax: (51)3220-3220 / 3220-3206 http://www.tet.com.br/ [email protected] ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone