cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: RPATH incorrect with custom SSL builds and 7.19.4

From: Quanah Gibson-Mount <quanah_at_zimbra.com>
Date: Wed, 22 Apr 2009 14:39:07 -0700

--On Wednesday, April 22, 2009 2:28 PM -0700 Quanah Gibson-Mount
<quanah_at_zimbra.com> wrote:

> After building Curl 7.19.4 and fixing the configure issue around using a
> custom openssl build, I found that the resulting binary was not
> executable. This is because the compiled in rpath is missing the path to
> the custom build of OpenSSL:

In particular, the relink command for curl seems to be wrong:

curl:relink_command="(cd
/home/build/p4/main/ThirdParty/curl/curl-7.19.4/src; { test -z
\"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export
LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset
COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z
\"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=;
export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" || unset
LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; { test -z
\"\${LD_LIBRARY_PATH+set}\" || unset LD_LIBRARY_PATH || { LD_LIBRARY_PATH=;
export LD_LIBRARY_PATH; }; };
PATH=/usr/kerberos/sbin:/usr/local/mysql/bin:/usr/local/ant/bin:/usr/local/java/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/build/bin:/usr/local/p4/bin;
export PATH; gcc -O2 -g0 -Wno-system-headers -o \$progdir/\$file main.o
hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o curlutil.o
strtoofft.o strdup.o rawstr.o -L/opt/zimbra/heimdal-1.2.1/lib
-L/opt/zimbra/openssl-0.9.8k/lib -L/usr/lib64/lib ../lib/.libs/libcurl.so
/usr/lib/libidn.so -lssl -lrt /opt/zimbra/heimdal-1.2.1/lib/libgssapi.so
/opt/zimbra/heimdal-1.2.1/lib/libheimntlm.so
/opt/zimbra/heimdal-1.2.1/lib/libkrb5.so
/opt/zimbra/heimdal-1.2.1/lib/libhx509.so
/opt/zimbra/heimdal-1.2.1/lib/libwind.so -ldl
/opt/zimbra/heimdal-1.2.1/lib/libasn1.so
/opt/zimbra/heimdal-1.2.1/lib/libcom_err.so -lcrypto
/opt/zimbra/heimdal-1.2.1/lib/libroken.so -lcrypt -lresolv -lz -pthread
-Wl,-rpath -Wl,/home/build/p4/main/ThirdParty/curl/curl-7.19.4/lib/.libs
-Wl,-rpath -Wl,/opt/zimbra/heimdal-1.2.1/lib -Wl,-rpath
-Wl,/opt/zimbra/curl-7.19.4/lib -Wl,-rpath
-Wl,/opt/zimbra/heimdal-1.2.1/lib)"

The last bit there should have also had -Wl,-rpath
-Wl,/opt/zimbra/openssl-0.9.8k/lib

--Quanah

--
Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration
Received on 2009-04-22