Oh I forgot to mention that the point the compilation breaks is as follows...

I believe this is after all the components have compiled and and we're trying to link it all together.

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
[EMAIL PROTECTED] /usr/local/sources/inst/squid-2.5.STABLE3 #





At 10:56 +1000 5/8/2003, Jesse Reynolds wrote:
Hi folx

I'm trying to get Squid compiled so that it will make use of Sun's Crypto 500 daughter board. (The Crypto 500 appears to have a similar Broadcomm chip on it to their Crypto 1000 and Crypto 4000 cards).

The Sun card ships with a CD containing, among other things, a modified version of OpenSSL 0.96b and a manual which states that you can compile against it if you do the following:

a) Your application must be configured to include OpenSSL headers from
/opt/SUNWconn/crypto/include, such as with the compiler flag:
        -I /opt/SUNWconn/crypto/include

b) Additionally, the linker must be directed to include references to the appropriate libraries. Most OpenSSL-compatible applications will reference either or both of the libcrypto.a and libssl.a libraries. The Sun cryptographic libraries must be included as well. The following linker flags will accomplish this:
-L/opt/SUNWconn/crypto/lib -R/opt/SUNWconn/crypto/lib \
-lcrypto -lssl -lcryptography -lnvpair


So, I've given Squid 2.5-STABLE3 the following configure flags:

# ./configure --prefix=/opt/squid --enable-useragent-log --enable-referer-log --enable-ssl --with-openssl=/opt/SUNWconn/crypto

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.

The following versions are relevant:

Solaris 8
GCC -  SMCgcc version 3.3
GNU make - installed SMCmake version 3.80
GNU binutils - installed SMCbinut version 2.11.2
squid-2.5.STABLE3

Hardware: Sun V210 with Sun Crypto 500 daugher board

Thanks very much

Jesse

--

   Jesse Reynolds - [EMAIL PROTECTED]
   Division of Information Services, University of New South Wales
   Phone: +61 (0)2 9385 2893


--

   Jesse Reynolds - [EMAIL PROTECTED]
   Division of Information Services, University of New South Wales
   Phone: +61 (0)2 9385 2893      AIM: jessedreynolds

Reply via email to