pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg_add openssl linking problem during bootstrap


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/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
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.

Charles McGarvey

Attachment: signature.asc
Description: OpenPGP digital signature

Home | Main Index | Thread Index | Old Index