Operating System - HP-UX
1753948 Members
7562 Online
108811 Solutions
New Discussion юеВ

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

 
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.
Valery Kolander
Advisor

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