Operating System - HP-UX
1753481 Members
4501 Online
108794 Solutions
New Discussion юеВ

Re: openssl installation problem (make) on HP11iV1

 
Steven Schweda
Honored Contributor

Re: openssl installation problem (make) on HP11iV1

> What can be done to resolve this issue?

I don't know. Could be a bug in the
openssl-0.9.8e kit. According to:

http://marc.info/?l=openssl-announce&m=117223949219571&w=2

0.9.8e was released around three years ago.
I wouldn't be amazed if a bug or two got
fixed between then and now.

I looked through the logs of my build of
0.9.8m, and I can see no evidence of a
"+init" anywhere. I doubt that you would
have anything weird in your environment which
might confuse the builders, but, just to be
sure, you might try something like:

env | grep init

> > I am using openssl-0.9.8e [...]
>
> Why the (very) obsolete version?

Still wondering.

If you can get the new one to fail, then we
might learn more. I have no great interest
in trying to debug the three-year-old
(obsolete) one.
Amit Aherao
Occasional Advisor

Re: openssl installation problem (make) on HP11iV1

I tried by downloading openssl-0.9.8m but still observed the same error as previous.

gcc -DMONOLITH -I.. -I../include -DOPENSSL_THREADS -DDSO_DL -D_REENTRANT -march=2.0 -O3 -DB_ENDIAN -D_REENTRANT -c -o openssl.o openssl.c
rm -f openssl
shlib_target=; if [ -n "" ]; then \
shlib_target="hpux-shared"; \
elif [ -n "" ]; then \
FIPSLD_CC="gcc"; CC=../fips/fipsld; export CC FIPSLD_CC; \
fi; \
LIBRARIES="-L.. -lssl -L.. -lcrypto" ; \
[ "x" = "xlibfips" ] && LIBRARIES="$LIBRARIES -lfips"; \
gmake -f ../Makefile.shared -e \
CC="${CC}" APPNAME=openssl OBJECTS="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 ec.o ecparam.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 engine.o ocsp.o prime.o cms.o" \
LIBDEPS=" $LIBRARIES -Wl,+s -ldld" \
link_app.${shlib_target}
gmake[2]: Entering directory `/amit/openssl-0.9.8m/apps'
( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto -Wl,+s -ldld}"; LDCMD="${LDCMD:-gcc}"; LDFLAGS="${LDFLAGS:--DOPENSSL_THREADS -DDSO_DL -D_REENTRANT -march=2.0 -O3 -DB_ENDIAN -D_REENTRANT}"; LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1; then echo $x | sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o ${APPNAME:=openssl} 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 ec.o ecparam.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 engine.o ocsp.o prime.o cms.o ${LIBDEPS} )
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (openssl.o) was detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unrecognized argument: +init
/usr/ccs/bin/ld: Usage: /usr/ccs/bin/ld [options] [flags] files
collect2: ld returned 1 exit status
gmake[2]: *** [link_app.] Error 1
gmake[2]: Leaving directory `/amit/openssl-0.9.8m/apps'
gmake[1]: *** [openssl] Error 2
gmake[1]: Leaving directory `/amit/openssl-0.9.8m/apps'
gmake: *** [build_apps] Error 1
Horia Chirculescu
Honored Contributor

Re: openssl installation problem (make) on HP11iV1

Amit,

The software from the porting archive is installed relatively to /usr/local. This means that the libraries are installed in /usr/local/lib. This path must be added to the default search path.

This means that you must do some additional steps in order to let other binaries find the run time libraries.

If this seems to be too complicated, you can install the binary depot from HP site:

https://h20392.www2.hp.com/portal/swdepot/displayInstallInfo.do?productNumber=OPENSSL11I

This would upgrade your existing /opt/openssl directory.

First remove the previous installation (using swremove) in order to save space.

Horia.
Best regards from Romania,
Horia.
Horia Chirculescu
Honored Contributor

Re: openssl installation problem (make) on HP11iV1

>default search path

... for shared libraries of course.

Read:

http://docs.hp.com/en/B2355-90655/ch05.html

The corequisite "openssl.openssl-SHLIBS" for fileset ├Г┬в├В ├В
├Г┬в├В ├В ├Г┬в├В ├В "openssh.openssh-RUN,r=5.3p1" cannot be successfully

If you need also openssh, the depot that I sent to you on my first message contain also the openssl. (quote from that HP document)

"HP-UX Secure Shell version A.05.30 contains the following libraries:

* zlib v1.2.3
* OpenSSL v 0.9.8l (OpenSSL is a shared library on HP-UX 11i v3)
* TCP Wrappers v7.6-ipv6.4
"

Do not install this from a ssh session because the ssh daemon must be restarted (in fact stop the old version and then start the newly installed version) in order to complete installation.

Horia.
Best regards from Romania,
Horia.
Amit Aherao
Occasional Advisor

Re: openssl installation problem (make) on HP11iV1

Hello,

Thanks much for your valuable replies my problems got solved by installing respective depots as Horia suggested..

Thanks for your time.
Dennis Handly
Acclaimed Contributor

Re: openssl installation problem (make) on HP11iV1

>ld: Unrecognized argument: +init

You need a more recent linker patch to support gcc's requirement for +init.
The recommended patch is PHSS_39749.