Sobie chciałem zmontować pakiecik potrzebny do zaawansowanej zabawy muzyką w lmms i jedna z wtyczek (hermes) staje okoniem przy linkowaniu. Wiadomo - od sierpnia 2006 roku trochę kompilator i linker ewoluowały... Czy jest ktoś w stanie mi powiedzieć jak zaradzić zaistniałej sytuacji ? Najistotniejszy, dotyczący 'hermes_filter_1200', fragment buildlog-a w załączniku.

--
Pozdrawiam,
Daniel Dawid Majewski
jabber:light-i/pld-users.org
$ builder ladspa-swh-plugins.spec
[...]
/bin/sh ./libtool --tag=CC   --mode=link x86_64-pld-linux-gcc  -O2 
-fno-strict-aliasing -fwrapv -march=x86-64 -gdwarf-3 -g2  -module 
-avoid-version -Wc,-nostartfiles -Wl,--as-needed 
-Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc  -o 
hermes_filter_1200.la -rpath /usr/lib64/ladspa hermes_filter_1200.lo 
util/libblo.a -lrt -lm -lm  -lm
[...]

*** Warning: Linking the shared library hermes_filter_1200.la against the
*** static library util/libblo.a is not portable!
[...]
libtool: link: x86_64-pld-linux-gcc -shared  -fPIC -DPIC  -O2 -march=x86-64 
-nostartfiles -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z -Wl,relro 
-Wl,-z -Wl,combreloc    .libs/hermes_filter_1200.o   util/libblo.a -lrt -lm 
-Wl,-soname -Wl,hermes_filter_1200.so -o .libs/hermes_filter_1200.so
/usr/bin/ld: util/libblo.a(libblo_a-blo.o): relocation R_X86_64_32 against 
`.rodata.str1.1' can not be used when making a shared object; recompile with 
-fPIC
util/libblo.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [hermes_filter_1200.la] Error 1
[...]
Błędy budowania RPM-a:
    Błędny status wyjścia z ~/tmp/rpm-tmp.13827 (%build)
Error: package build failed. (no more info)
$ cd ~/rpm/BUILD/swh-plugins-0.4.15 ; ls -l util/*blo*
-rw-r--r-- 1 builder rpm  7396 2003-03-08  util/blo.c
-rw-r--r-- 1 builder rpm  5959 2003-03-08  util/blo.h
-rw-r--r-- 1 builder rpm 17100 07-05 08:54 util/libblo.a
-rw-r--r-- 1 builder rpm 16896 07-05 08:54 util/libblo_a-blo.o
_______________________________________________
pld-users-pl mailing list
pld-users-pl@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-users-pl

Odpowiedź listem elektroniczym