Databases
cancel
Showing results for 
Search instead for 
Did you mean: 

Where can I get "hppa1.1-hp-hpux11.11" for gcc compile

Where can I get "hppa1.1-hp-hpux11.11" for gcc compile

I am using:
OS = 11.11 64bit.
binutile 2.11.2
bison 1.875
gcc 3.2.3
flex 2.5.4a

I am trying to compile Apache, Informix and SSL
When I run:
{/tmp/apache_1.3.27} 27} ./configure --prefix=/opt/apache --with-port=80 --server-uid=apache --server-gid=apache --enable-module=ssl

It runs just fine, however, when I run "gmake", I get the following:

===> src/os/unix
gmake[3]: Entering directory `/tmp/apache_1.3.27/src/os/unix'
gcc -c -I../../os/unix -I../../include -DHPUX11 -DMOD_SSL=208114 -DMOD_SSL=20
8114 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../../lib/expat-lite `../../apaci` os.c
In file included from ../../include/ap_config.h:1129,
from os.c:6:
/usr/include/sys/socket.h:439: syntax error before "sendfile"
/usr/include/sys/socket.h:440: syntax error before "bsize_t"
/usr/include/sys/socket.h:441: syntax error before "sendpath"
/usr/include/sys/socket.h:442: syntax error before "bsize_t"
gmake[3]: *** [os.o] Error 1
gmake[3]: Leaving directory `/tmp/apache_1.3.27/src/os/unix'
gmake[2]: *** [subdirs] Error 1
gmake[2]: Leaving directory `/tmp/apache_1.3.27/src'
gmake[1]: *** [build-std] Error 2
gmake[1]: Leaving directory `/tmp/apache_1.3.27'
gmake: *** [build] Error 2


From what I see in my research, it isn't liking the header file hppa2.0n-hp-hpux11.00. I am very new to compiling and do not know how to fix. I have tried to compile with cc with other errors no-one could answer, so now I am trying gcc. Thanks in advance for any help.
14 REPLIES
H.Merijn Brand (procura
Honored Contributor

Re: Where can I get "hppa1.1-hp-hpux11.11" for gcc compile

You can get a hp-pa1.1 gcc-3.3 on my ITRC site: https://www.beepz.com/personal/merijn/ or http://www.cmve.net/~merijn/
Go for the 10.20 port

The size_t errors however are a known 11i issue, which - because I cannot access 11i - I have never been able to resolve (yet).

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn

Re: Where can I get "hppa1.1-hp-hpux11.11" for gcc compile

I found hppa1.1-hp-hpux10.20 on your site, however, don't I need hppa1.1-hp-hpux11.11?
H.Merijn Brand (procura
Honored Contributor

Re: Where can I get "hppa1.1-hp-hpux11.11" for gcc compile

the 10.20 is the only 1.1 port I made available, but it should run on 11i.
Again, I hav eno 11i

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn

Re: Where can I get "hppa1.1-hp-hpux11.11" for gcc compile

I am really struggling here. I just have never had to compile anything, so I apologize if I need too much hand holding.

I downloaded gcc-3.2-32-10.20-hppa1.1.tbz
and untared gcc-3.2-32-10.20-hppa1.1.tar into /tmp/pa11_32

Now,
I edited the $PATH to look there first for gcc and did the

{root@btsud4:/tmp/apache_1.3.27} which gcc
/tmp/pa11_32/bin/gcc

{root@btsud4:/tmp} which gmake
/usr/local/bin/gmake

then I ran the configure and gmake

{/tmp/apache_1.3.27} ./configure --prefix=/opt/apache --with-port=80 --server-uid=apache --server-gid=apache --enable-module=ssl
and this ran OK.
It breaks when I run gmake. I am just at a loss!!

Here is the error again.
===> src/os/unix
gmake[3]: Entering directory `/tmp/apache_1.3.27/src/os/unix'
/tmp/pa11_32/bin/gcc -c -I../../os/unix -I../../include -DHPUX11 -DMOD_SSL=20
8114 -DMOD_SSL=208114 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../../lib/expat-lite `.
./../apaci` os.c
In file included from ../../include/ap_config.h:1129,
from os.c:6:
/usr/include/sys/socket.h:439: parse error before "sendfile"
/usr/include/sys/socket.h:440: parse error before "bsize_t"
/usr/include/sys/socket.h:441: parse error before "sendpath"
/usr/include/sys/socket.h:442: parse error before "bsize_t"
gmake[3]: *** [os.o] Error 1
gmake[3]: Leaving directory `/tmp/apache_1.3.27/src/os/unix'
gmake[2]: *** [subdirs] Error 1
gmake[2]: Leaving directory `/tmp/apache_1.3.27/src'
gmake[1]: *** [build-std] Error 2
gmake[1]: Leaving directory `/tmp/apache_1.3.27'
gmake: *** [build] Error 2

Re: Where can I get "hppa1.1-hp-hpux11.11" for gcc compile

any ideas? Anyone!
H.Merijn Brand (procura
Honored Contributor

Re: Where can I get "hppa1.1-hp-hpux11.11" for gcc compile

Just received the full set of 11i include files from someone outside the forum that I'm trying to help with the same problem. *If* I find something, I'll be back on this.

If anyone can give me ssh to 11i (preferably 64bit OS) I might even get to look deeper and address the gcc compile failures.

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn

Re: Where can I get "hppa1.1-hp-hpux11.11" for gcc compile

Just though I would let you know that I was also trying to compile this with CC. However, I was getting a different set of errors for this.

The good news is, I tried this compile with the newer version of openssl (0.9.7a) and I was successful. I used CC, openssl 0.9.7a, Informix and Apache. I finally got the "make" to work.

THANKS FOR ALL YOU HELP!!!!

Re: Where can I get "hppa1.1-hp-hpux11.11" for gcc compile

Just though I would let you know that I was also trying to compile this with CC. However, I was getting a different set of errors for this.

The good news is, I tried this compile with the newer version of openssl (0.9.7a) and I was successful. I used CC, openssl 0.9.7a, Informix and Apache. I finally got the "make" to work.

THANKS FOR ALL YOU HELP!!!!

Re: Where can I get "hppa1.1-hp-hpux11.11" for gcc compile

NOW FOR THE BAD NEWS!!!
I am not able to start Apache. No errors are given, however, the log gives me this error:

/usr/lib/dld.sl: Unresolved symbol: __umoddi3 (code) from /usr/local/lib/libcrypto.sl.0.9.7

So, I guess the battle is not over!
H.Merijn Brand (procura
Honored Contributor

Re: Where can I get "hppa1.1-hp-hpux11.11" for gcc compile

Force linking to libgcc.sl or libgcc.a, which contains the missing symbols

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Freddie C
Advisor

Re: Where can I get "hppa1.1-hp-hpux11.11" for gcc compile

If you're still interested in using gcc to compile, I got this workaround searching through google that solved the same socket.h problem when I tried to compile a perl module and so may apply to your case.

Problem was that "bsize_t" needs to be defined
in //lib/gcc-lib/hppa2.0n-hp-hpux11.00//include/sys/types.h

Just insert the following section (can be found in /usr/include/sys/types.h) to the types.h file mentioned above:

-----------section starts here-----------------
# ifndef _BSIZE64_T
# define _BSIZE64_T
# if !defined(__STDC_32_MODE__)
typedef int64_t sbsize64_t;
typedef uint64_t bsize64_t;
# endif
# endif /* _BSIZE64_T */

# ifndef _OFF_T
# define _OFF_T
# if defined(_APP32_64BIT_OFF_T) || defined(_KERNEL)
typedef int64_t off_t; /* For offsets and sizes */
# define k_off_t off_t
# else
typedef long off_t;
# endif
# endif /* _OFF_T */


# ifndef _BSIZE_T
# define _BSIZE_T
# if defined(_APP32_64BIT_OFF_T) || defined(_KERNEL)
typedef int64_t sbsize_t; /* signed length in bytes */
typedef uint64_t bsize_t; /* unsigned length in bytes */
# else
typedef long sbsize_t;
typedef unsigned long bsize_t;
# endif
# endif /* _BSIZE_T */
------------section ends here------------------

I plugged in the definitions above and viola! got a clean compilation.
Vinnie Lima
Advisor

Re: Where can I get "hppa1.1-hp-hpux11.11" for gcc compile

I attempted some of the work-arounds in this thread, but no luck.

Has anyone found a clear, clean solution on compiling gcc 3.3.2 on HPUX 11.11?

Thanks if ANYONE out there knows =)

v.lima.

Re: Where can I get "hppa1.1-hp-hpux11.11" for gcc compile

As you can see by the history, I was trying to compile a 32bit application on a 64bit machine. I ended up moving my compile to a 32 bit machine with HPUX 11.11 on it. To my amazement, my compile was successful. Up to that point, everything I tried on the 64bit machine just did not work.
H.Merijn Brand (procura
Honored Contributor

Re: Where can I get "hppa1.1-hp-hpux11.11" for gcc compile

I've meanwhile got hold of a 11i myself, and uploaded a full working 3.3.2 for 11i on 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