Operating System - HP-UX
1846636 Members
1631 Online
110256 Solutions
New Discussion

Re: Missing openssl library?

 
SOLVED
Go to solution
Thomas Doherty_1
Occasional Advisor

Missing openssl library?

I'm trying to install an open source program called Zabbix. It requires Apache, PHP and MySQL. I found Apache with PHP configured in it at http://gatekeep.cs.utah.edu/. When I tried to install the depot is complained about openssl.openssl-SHLIB. I installed openssl from the same web site but still received the same message. There was no lib file system under the location that openssl was installed. I tried setting SHLIB_PATH to various lib directories like in an existing Apache installation that had ssl but had no success.
I figured maybe the depot file for openssl didn't include the libraries and that I needed to compile the source code. However, I have not been able to compile the source code either because I get:
/usr/include/sys/socket.h:484: error: parse error before "sendfile"
/usr/include/sys/socket.h:485: error: parse error before "bsize_t"
/usr/include/sys/socket.h:486: error: parse error before "sendpath"
/usr/include/sys/socket.h:487: error: parse error before "bsize_t"

I'm using gcc with gmake. I've tried to install binutils because I though that was related to the error messages above but I can't compile that either. Any ideas why the depot file doesn't seem to include the libraries or why I can't complile the source?

Thanks
5 REPLIES 5
Alzhy
Honored Contributor

Re: Missing openssl library?

You need edit file
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.??/3.x/include/sys/types.h

Comment definition struct label_t and
write
typedef long sbsize_t;
Hakuna Matata.
Alzhy
Honored Contributor

Re: Missing openssl library?

Bear in mind that htis is the most common problem with gcc 3.x when compiling practically most of the GNU stuff...
Hakuna Matata.
Mehdi_1
Regular Advisor

Re: Missing openssl library?

Hi

Which version of openssl have you downloaded?

Don't forget that version of apache with php support that you have downloaded was linked to old version of openssl not the new one!!

Mehdi
H.Merijn Brand (procura
Honored Contributor
Solution

Re: Missing openssl library?

You're probably using a GNU gcc built for 11.00, whereas you are building on 11.11

Get a build for 11.11 and your problems might be gone

GNU gcc 3.3.2 for 11.11 including recent binutils available on my site: https://www.beepz.com/personal/merijn/, http://www.cmve.net/~merijn/, or http://ww.hpux.ws/merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Thomas Doherty_1
Occasional Advisor

Re: Missing openssl library?

Nelson, I tried your suggestion and made the following change:

# typedef struct label_t {
typedef long sbsize_t {

I tried it without the { and with the ; but neither would work. I got the following messages when running gmake:

/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.1/include/sys/types.h:378: error: parse error before '}' token
*** Error exit code 1

I'm compiling openssl-0.9.7c which is the same version of depot file I installed.