Thanks Lutz; I've gone with option 1 (easier in the short term) and it works fine. Keeping option 2 in reserve for now.
Just in case I come across something that demands the gnu ld, do you know why this is hard to find for HP-UX? And does hard==impossible? Thanks again, Ian -- Ian Macdonald [EMAIL PROTECTED] Lutz Jaenicke wrote: > > On Fri, Jul 19, 2002 at 05:01:35PM +1000, Ian Macdonald wrote: > > I've been running apache 1.3.26 with mod_perl 1.26 statically linked in > > for a while now with no problems. > > > > I've recently tried to add mod_ssl to the configuration and the apache > > build now fails at the final link like so: > > > > cc -DHPUX10 -Aa -Ae -D_HPUX_SOURCE -DMOD_SSL=208110 -DMOD_PERL > > -DUSE_PERL_SSI -Ae -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > > -DUSE_HSREGEX -DEAPI -DNO_DL_NEEDED -Ae -D_LARGEFILE_SOURCE > > -D_FILE_OFFSET_BITS=64 `./apaci` -L/usr/local/ssl/lib \ > > -o httpd buildmark.o modules.o modules/ssl/libssl.a > > modules/perl/libperl.a modules/standard/libstandard.a main/libmain.a > > ./os/unix/libos.a ap/libap.a regex/libregex.a -ldbm -lssl -lcrypto > > -Wl,-E -Wl,-B,deferred > > /opt/perl5/lib/5.6.1/PA-RISC1.1/auto/DynaLoader/DynaLoader.a > > -L/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE -lperl -lnsl_s -ldld -lm -lc > > -lndir -lcrypt -lsec -lm > > /usr/ccs/bin/ld: Unsatisfied symbols: > > __umoddi3 (code) > > __udivdi3 (code) > > *** Error exit code 1 > > > > Searching on the mod_perl list archive revealed one answer which was to > > use the GNU ld instead; unfortunately, this doesn't seem easy on HP-UX, > > as ld is not part of the standard GNU binutils package for HP-UX and > > compiling the generic binutils manually doesn't build any version of ld > > as far as I could tell. > > This solution is only partly correct. > The real reason for your problem is that at least some of your objects > have been compiled with gcc. The missing functions are part of libgcc.a, > which is available somewhere in your gcc installation. > >From your "nm" of libcrypto.a it seems that openssl was compiled with gcc. > Thus, 2 possible solutions: > * Add -L/path/to/where/libgcc/is/ -lgcc after -lcrypto, maybe at the end of > the list. (I think this is what GNU ld makes automatically.) > * Recompile every component using HP's compiler. That's how I do it. > Works fine for me :-) > > Best regards, > Lutz > -- > Lutz Jaenicke [EMAIL PROTECTED] > http://www.aet.TU-Cottbus.DE/personen/jaenicke/ > BTU Cottbus, Allgemeine Elektrotechnik > Universitaetsplatz 3-4, D-03044 Cottbus > ______________________________________________________________________ > Apache Interface to OpenSSL (mod_ssl) www.modssl.org > User Support Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ Apache Interface to OpenSSL (mod_ssl) www.modssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
