Hi,
We have a NCR unix MP-RAS unix machine (svr4 variant) that fails to compile
openssl-0.96. It seems it misses some header files for some obscure reason.
I noticed that bash-2.04 also had this same sort of problem when compiling.
Here is a snippet from the email exchange with the bash maintainer.
--SNIP--
>> During the ./configure I do see that it says "checking for gethostname:
no"
>> So If the machine doesn't support it, why try to use it during compile?
>> I know it's neccesary for a correct working of bash. But should the
>> configure complain about it?
>
> I suppose that HAVE_GETHOSTNAME is not defined, then. I wonder why
> configure is deciding that gethostname is not present, but not putting
> the error messages that made it decide so into config.log.
>
> You can simply edit config.h and change it so HAVE_GETHOSTNAME is defined:
>
> #define HAVE_GETHOSTNAME 1
Yup, it works.
You're incredible...
Thank you, default shell will change shortly ;-)
Bye Seth
--SNIP--
Compiler Version
[seth@coltex-1 openssl-0.9.6]$ cc -V
(cc:) NCR High Performance C Compiler R3.0 (SCDE 3.03.00)
(cc:) No files specified.
Compiler Output (until failure)
cc -o openssl -DMONOLITH -I../include -O openssl.o verify.o
asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o
pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o x509.o genrsa.o
gendsa.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o
app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o spkac.o
smime.o rand.o -L. -L.. -L../.. -L../../.. -L.. -lssl -L.. -lcrypto
Undefined first referenced
symbol in file
accept s_socket.o
socket s_socket.o
connect s_socket.o
listen s_socket.o
gethostbyname s_socket.o
getservbyname s_socket.o
setsockopt s_socket.o
ftime speed.o
bind s_socket.o
gethostbyaddr s_socket.o
shutdown s_server.o
getsockopt ../libcrypto.a(b_sock.o)
UX:ld: ERROR: openssl: fatal error: Symbol referencing errors. No output
written to openssl
*** Error code 1 (bu21)
make: fatal error.
gmake: *** [all] Error 1
[seth@coltex-1 openssl-0.9.6]$
However a quick grep shows
[seth@coltex-1 openssl-0.9.6]$ grep gethostbyname /usr/include/*
/usr/include/netdb.h:struct hostent *gethostbyname __P((const char *));
/usr/include/netdb.h:struct hostent *gethostbyname __P((char *));
/usr/include/netdb.h: * Error return codes from gethostbyname() and
gethostbyaddr() (left in
[seth@coltex-1 openssl-0.9.6]$
Any suggestions?
Do i need a extra define somewhere for finding the function(s) in the
include files. All above listed functions ARE available.
Weird.
If at first you don't INSTALL, README again.
Kind regards,
Seth Mos
IT department
Coltex BV
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]