Statycznego poldka niet?
Marcin Król
hawk w limanowa.net
Sob, 26 Lis 2005, 23:34:49 CET
Hello.
Przy okazji przebudowywania paczek dla instalatora probowalem zbudowac
statycznego poldka 0.20, niestety obecnie nie da sie tego zrobic.
./builder -r AC-branch poldek.spec --with static --with imode
buduje sie poprawnie tyle ze statyczna binarka to raczej z tego nie
wychodzi:
$ ldd poldek
linux-gate.so.1 => (0xffffe000)
libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x40027000)
libutil.so.1 => /lib/libutil.so.1 (0x4010e000)
libselinux.so.1 => /lib/libselinux.so.1 (0x40112000)
libelf.so.1 => /lib/libelf.so.1 (0x40122000)
libreadline.so.5 => /lib/libreadline.so.5 (0x40133000)
libtinfo.so.5 => /lib/libtinfo.so.5 (0x4015d000)
libncurses.so.5 => /lib/libncurses.so.5 (0x40185000)
libm.so.6 => /lib/libm.so.6 (0x4019e000)
libdl.so.2 => /lib/libdl.so.2 (0x401c0000)
librt.so.1 => /lib/librt.so.1 (0x401c4000)
libpthread.so.0 => /lib/libpthread.so.0 (0x401d7000)
libz.so.1 => /lib/libz.so.1 (0x40227000)
libc.so.6 => /lib/libc.so.6 (0x40238000)
/lib/ld-linux.so.2 (0x40000000)
./builder -r AC-branch poldek.spec --with static --without imode
natomiast probuje budowac statycznie ale konczy dzialanie tak:
i386-pld-linux-gcc -Wall -W -O2 -march=i386 -D_REENTRANT -o poldek main.o su.o -L/home/users/hawk/rpm/BUILD/poldek-0.20/trurlib ./.libs/libpoclidek.a
/home/users/hawk/rpm/BUILD/poldek-0.20/.libs/libpoldek.a -L/home/users/hawk/rpm/BUILD/poldek-0.20/tndb /home/users/hawk/rpm/BUILD/poldek-0.20/tndb/.libs/libtndb.a
-L/tmp/B.22fc46/rpm-4.4.2-root-builder/usr/lib -L/usr/lib -L/usr/local/lib /home/users/hawk/rpm/BUILD/poldek-0.20/vfile/.libs/libvfile.a /home/users/hawk/rpm/BUILD/poldek-0.20/trurlib/.libs/libtrurl.a
-lcrypto -lutil /usr/lib/libxml2.a /usr/lib/librpm.a -lselinux /usr/lib/librpmdb.a /usr/lib/libdb-4.2.a -lelf /usr/lib/libpopt.a -ltinfo /usr/lib/librpmio.a /usr/lib/libbeecrypt.a -lm -ldl
/usr/lib/libmagic.a -lrt -lpthread -lz /usr/lib/libbz2.a
/usr/lib/librpm.a(rpmchecksig.o)(.text+0x8bd): In function `rpmReSign':
: warning: the use of `mktemp' is dangerous, better use `mkstemp'
main.o(.text+0xc5d): In function `run_poldek':
main.c: undefined reference to `poclidek_shell'
./.libs/libpoclidek.a(search.o)(.text+0x292): In function `init_pcre':
search.c: undefined reference to `pcre_malloc'
./.libs/libpoclidek.a(search.o)(.text+0x29c):search.c: undefined reference to `pcre_free'
./.libs/libpoclidek.a(search.o)(.text+0x2a5):search.c: undefined reference to `pcre_maketables'
./.libs/libpoclidek.a(search.o)(.text+0x318): In function `pattern_compile':
search.c: undefined reference to `pcre_compile'
./.libs/libpoclidek.a(search.o)(.text+0x339):search.c: undefined reference to `pcre_study'
./.libs/libpoclidek.a(search.o)(.text+0x44f): In function `pattern_match':
search.c: undefined reference to `pcre_exec'
collect2: ld returned 1 exit status
make[2]: *** [poldek] Error 1
make[2]: Leaving directory `/home/users/hawk/rpm/BUILD/poldek-0.20/cli'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/users/hawk/rpm/BUILD/poldek-0.20'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.847 (%build)
Ktos ma pomysl jak to zbudowac statycznie?
M.
Więcej informacji o liście dyskusyjnej pld-devel-pl