[squid-users] squid + openssl compilation problem

From: Vincent Gardien <vgardien@dont-contact.us>
Date: Thu, 20 Nov 2003 16:08:54 +0100

Hi all,

I have a "undefined reference" problem compiling ssl support in squid.
The versions used here are "squid-3.0-PRE3-20031117" and "openssl-0.9.7c".
The OpenSSL prefix is "/usr/local/openssl-0.9.7c" and the configure options
follows :

./configure --prefix=/usr/local/squid-3.0 --enable-ssl --with-openssl=/usr/l
ocal/openssl-0.9.7c

But the make issues :

g++ -Werror -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wcom
ments -g -O2 -g -o squid access_log.o acl.o ACLChecklist.o ACLASN.o
ACLBrowser.o ACLDestinationDomain.o ACLDestinationIP.o ACLDomainData.o
ACLExtUser.o ACLIntRange.o ACLIP.o ACLMaxConnection.o ACLMaxUserIP.o
ACLMethod.o ACLMethodData.o ACLMyIP.o ACLMyPort.o ACLProtocol.o
ACLProtocolData.o ACLProxyAuth.o ACLReferer.o ACLRegexData.o
ACLReplyMIMEType.o ACLRequestMIMEType.o ACLSourceDomain.o ACLSourceIP.o
ACLStrategised.o ACLStringData.o ACLTime.o ACLTimeData.o ACLUrl.o
ACLUrlPath.o ACLUrlPort.o ACLUserData.o asn.o authenticate.o cache_cf.o
CacheDigest.o cache_manager.o carp.o cbdata.o client_db.o client_side.o
client_side_reply.o client_side_request.o clientStream.o comm.o
comm_select.o comm_poll.o comm_kqueue.o debug.o disk.o dns_internal.o
errorpage.o ETag.o event.o external_acl.o ExternalACLEntry.o fd.o fde.o
filemap.o forward.o fqdncache.o ftp.o gopher.o helper.o http.o
HttpStatusLine.o HttpHdrCc.o HttpHdrRange.o HttpHdrSc.o HttpHdrScTarget.o
HttpHdrContRange.o HttpHeader.o HttpHeaderTools.o HttpBody.o HttpMsg.o
HttpReply.o HttpRequest.o icmp.o icp_v2.o icp_v3.o ACLIdent.o ident.o int.o
internal.o ipc.o ipcache.o IPInterception.o logfile.o main.o mem.o
mem_node.o MemBuf.o MemObject.o mime.o multicast.o neighbors.o net_db.o
Packer.o pconn.o peer_digest.o peer_select.o redirect.o referer.o refresh.o
send-announce.o SquidNew.o tunnel.o ACLCertificateData.o ACLCertificate.o
ssl_support.o stat.o StatHist.o String.o stmem.o store.o StoreFileSystem.o
store_io.o StoreIOState.o store_client.o store_digest.o store_dir.o
store_key_md5.o store_log.o store_rebuild.o store_swapin.o store_swapmeta.o
store_swapout.o StoreMeta.o StoreMetaMD5.o StoreMetaSTD.o
StoreMetaUnpacker.o StoreMetaURL.o StoreMetaVary.o StoreSwapLogData.o
SwapDir.o tools.o ufscommon.o unlinkd.o url.o urn.o useragent.o wais.o
wccp.o whois.o repl_modules.o auth_modules.o globals.o
string_arrays.o -L../lib repl/liblru.a fs/ufs/StoreFSufs.o fs/libufs.a
auth/libbasic.a -lcrypt -L/usr/local/openssl-0.9.7c/lib -lssl -lcrypto -lmis
cutil -lm -lresolv -lbsd -lnsl
/usr/local/openssl-0.9.7c/lib/libcrypto.a(dso_dlfcn.o)(.text+0x28): In
function `dlfcn_load':
: undefined reference to `dlopen'
/usr/local/openssl-0.9.7c/lib/libcrypto.a(dso_dlfcn.o)(.text+0x94): In
function `dlfcn_load':
: undefined reference to `dlclose'
/usr/local/openssl-0.9.7c/lib/libcrypto.a(dso_dlfcn.o)(.text+0xbc): In
function `dlfcn_load':
: undefined reference to `dlerror'
/usr/local/openssl-0.9.7c/lib/libcrypto.a(dso_dlfcn.o)(.text+0x158): In
function `dlfcn_bind_var':
: undefined reference to `dlsym'
/usr/local/openssl-0.9.7c/lib/libcrypto.a(dso_dlfcn.o)(.text+0x183): In
function `dlfcn_bind_var':
: undefined reference to `dlerror'
/usr/local/openssl-0.9.7c/lib/libcrypto.a(dso_dlfcn.o)(.text+0x268): In
function `dlfcn_bind_func':
: undefined reference to `dlsym'
/usr/local/openssl-0.9.7c/lib/libcrypto.a(dso_dlfcn.o)(.text+0x293): In
function `dlfcn_bind_func':
: undefined reference to `dlerror'
/usr/local/openssl-0.9.7c/lib/libcrypto.a(dso_dlfcn.o)(.text+0x46c): In
function `dlfcn_unload':
: undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[3]: *** [squid] Error 1
make[3]: Leaving directory `/usr/local/src/squid-3.0-PRE3-20031117/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/squid-3.0-PRE3-20031117/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/squid-3.0-PRE3-20031117/src'
make: *** [all-recursive] Error 1

Even if i prefix the configure with : env
LDFLAGS="-L/usr/local/openssl-0.9.7c/lib"
CPPFLAGS="-I/usr/local/openssl-0.9.7c/include".
I've also tried with OpenSSL version 0.9.7b or Squid version
3.0-PRE3-20031120 but the error remains the
same.

On the other hand i've compiled successfully the stuff with OpenLDAP support
and authentication against an Active Directory to permit reverse proxying to
an Outlook Web Access.
It works fine but the SSL support is missing. I need it to securely reach
the OWA.

Some technical reference, if useful :
gcc -v : GCC version 3.2.2
cat /etc/redhat-release : Red Hat Linux release 9 (Shrike)
uname -a : Linux test 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686
i386 GNU/Linux

Thanks for your help !

--
Vincent Gardien
Ingetic
Received on Thu Nov 20 2003 - 08:10:35 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:21:25 MST