Hey, I'm having a difficult time getting pkgsrc bootstrapped, unprivileged on a Linux machine because of a linking problem I can't quite figure out. What I'm trying to do is this: ./bootstrap --prefix $HOME/usr --pkgdbdir $HOME/usr/var/db/pkg \ --sysconfdir $HOME/usr/etc --varbase $HOME/usr/var --unprivileged What I get is this: ===> Building for pkg_install-20100616 gcc -L$HOME/usr/lib -L$HOME/usr/pkg/lib -L$HOME/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/bzip2 -L$HOME/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/.libs -L$HOME/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch -L$HOME/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libnbcompat -L/usr/lib64 -Wl,-R/usr/lib64 -Wl,-R$HOME/usr/lib64 -Wl,-R$HOME/usr/lib -L../lib -o pkg_add main.o perform.o -linstall -lfetch -lcrypto -larchive -lbz2 -lz -lnbcompat -lcrypto -lcrypto -lcrypto -lnbcompat ../lib/libinstall.a(pkcs7.o): In function `easy_pkcs7_verify': pkcs7.c:(.text+0x21e): undefined reference to `OpenSSL_add_all_algorithms' ../lib/libinstall.a(pkcs7.o): In function `easy_pkcs7_sign': pkcs7.c:(.text+0x60d): undefined reference to `OpenSSL_add_all_algorithms' collect2: ld returned 1 exit status From what I understand, OpenSSL_add_all_algorithms used to be a real function some time ago but has since become a macro. That being the case, I can understand how this linking error might occur if (for example) I had an old set of OpenSSL header files and new libraries, but I can't find any headers on this machine that define OpenSSL_add_all_algorithms as a function rather than a macro so I'm quite baffled. More info: # gcc -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ./configure --prefix=/usr/local/stow/gcc/amd64_linux26/gcc-4.4.4 --enable-languages=c,c++,java,objc,obj-c++ --with-mpfr=/usr/local/stow/mpfr/mpfr-3.0.0 --with-gmp=/usr/local/stow/gmp/amd64_linux26/gmp-5.0.1 Thread model: posix gcc version 4.4.4 (GCC) # uname -a Linux lab3-9 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux Hopefully I'm just missing something stupid. Thanks, Charles McGarvey
Attachment:
signature.asc
Description: OpenPGP digital signature