On Tuesday 05 August 2003 02.56, Jesse Reynolds wrote:
But I can't figure out how to specify the rest of those "linker flags". Any suggestions would be greatly appreciated! I assume I need to edit the Makefile but I'm lost.
Search for -lssl in src/Makefile after running configure. Then modify the line to your liking.
Thanks Henrik
So, I've tried that but it doesn't seem to make any difference. I am a bit of a C dummy so I've probably done something daft.
I have modified the SSLLIB line of src/Makefile to read:
SSLLIB = -L/opt/SUNWconn/crypto/lib -lssl -lcrypto -I /opt/SUNWconn/crypto/include -R/opt/SUNWconn/crypto/lib -lcryptography -lnvpair
does that make sense? ... Anyway, running 'make clean' and 'make all' yields the same Undefined Symbol errors as before.
Perhaps I should try compiling against the latest version of OpenSSL 0.97 which aparently has support for hardware accelerators (instead of this Sun modified version of 0.96).
Jesse
...
gcc -g -O2 -Wall -g -o squid access_log.o acl.o asn.o authenticate.o cache_cf.o CacheDigest.o cache_manager.o carp.o cbdata.o client_db.o client_side.o comm.o comm_select.o debug.o disk.o dns_internal.o errorpage.o ETag.o event.o external_acl.o fd.o filemap.o forward.o fqdncache.o ftp.o gopher.o helper.o http.o HttpStatusLine.o HttpHdrCc.o HttpHdrRange.o HttpHdrContRange.o HttpHeader.o HttpHeaderTools.o HttpBody.o HttpMsg.o HttpReply.o HttpRequest.o icmp.o icp_v2.o icp_v3.o ident.o internal.o ipc.o ipcache.o logfile.o main.o mem.o MemPool.o MemBuf.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 ssl.o ssl_support.o stat.o StatHist.o String.o stmem.o store.o store_io.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 tools.o unlinkd.o url.o urn.o useragent.o wais.o wccp.o whois.o repl_modules.o auth_modules.o store_modules.o globals.o string_arrays.o -L../lib repl/liblru.a fs/libufs.a auth/libbasic.a -lcrypt -L/opt/SUNWconn/crypto/lib -lssl -lcrypto -lmiscutil -lm -lresolv -lsocket -lnsl
Undefined first referenced
symbol in file
nvlist_alloc /opt/SUNWconn/crypto/lib/libcrypto.a(hw_kcl.o)
crypto_key_fini /opt/SUNWconn/crypto/lib/libcrypto.a(hw_kcl.o)
nvlist_add_byte_array /opt/SUNWconn/crypto/lib/libcrypto.a(hw_kcl.o)
crypto_encrypt /opt/SUNWconn/crypto/lib/libcrypto.a(hw_kcl.o)
crypto_sign /opt/SUNWconn/crypto/lib/libcrypto.a(hw_kcl.o)
crypto_seed /opt/SUNWconn/crypto/lib/libcrypto.a(hw_kcl.o)
crypto_key_init /opt/SUNWconn/crypto/lib/libcrypto.a(hw_kcl.o)
nvlist_add_uint32 /opt/SUNWconn/crypto/lib/libcrypto.a(hw_kcl.o)
crypto_fini /opt/SUNWconn/crypto/lib/libcrypto.a(hw_kcl.o)
crypto_random /opt/SUNWconn/crypto/lib/libcrypto.a(hw_kcl.o)
crypto_verify /opt/SUNWconn/crypto/lib/libcrypto.a(hw_kcl.o)
crypto_decrypt /opt/SUNWconn/crypto/lib/libcrypto.a(hw_kcl.o)
crypto_init /opt/SUNWconn/crypto/lib/libcrypto.a(hw_kcl.o)
nvlist_free /opt/SUNWconn/crypto/lib/libcrypto.a(hw_kcl.o)
ld: fatal: Symbol referencing errors. No output written to squid
collect2: ld returned 1 exit status
make[3]: *** [squid] Error 1
make[3]: Leaving directory `/usr/local/sources/inst/squid-2.5.STABLE3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/sources/inst/squid-2.5.STABLE3/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/sources/inst/squid-2.5.STABLE3/src'
make: *** [all-recursive] Error 1
--
Jesse Reynolds - [EMAIL PROTECTED] Division of Information Services, University of New South Wales Phone: +61 (0)2 9385 2893 AIM: jessedreynolds