Re: compiling 1.1.14 on HPUX (was: Re: cannot compile squid-1.1.

From: Jussi Torhonen <jussi.torhonen@dont-contact.us>
Date: Thu, 7 Aug 1997 14:55:39 +0200

On 7 Aug 97 at 12:53, squid-users@nlanr.net wrote:

> Date: Thu, 7 Aug 1997 12:53:03 +0200
> From: "ing. AG van Loo" <eddy@cis.HZeeland.nl>
> To: ed@fatboy.geog.unsw.edu.au
> Subject: compiling 1.1.14 on HPUX (was: Re: cannot compile squid-1.1.11 on HPUX)
> Cc: squid-users@nlanr.net

> Hi,
>
> As I wrote before, 1.1.4 compiles, but with several warnings.
>
> The resulting executable coredumps immediately upon startup,
> with the message: Bus error - core dumped.
> This usually indicates a null-pointer problem or calling a
> function with a wrong type of argument(s).
>
> Even cachemgr.cgi crashes the same way.
>
> I guess this has something to do with the "incompatible pointer type"
> warnings I got during compilation, but I'm not a programmer...
>
> Any helpful hints appreciated!

I tried to compile Squid 1.1.14 with gcc 2.7.2.1 on a HP 9000/735
running HP-UX v9.05. I got a lot of similar warnings, but gcc still
made the binaries.

'Incompatible pointer' warnings came from:

comm.c: In function `comm_select'
comm.c: In function `examine_select'
ftpget.c: In function `write_with_timeout'
ftpget.c: In function `read_with_timeout'
ftpget.c: In function `readline_with_timeout'
ftpget.c: In function `connect_with_timeout2'
ftpget.c: In function `accept_with_timeout'
ftpget.c: In function `is_dfd_open'
ftpget.c: In function `ftpget_srv_mode'

'Implicit declaration of function' warnings came from:

debug.c: In function `_db_print' (implicit declaration of function `syslog')
debug.c: In function `_db_init' (implicit declaration of function `openlog')
stat.c: In function `info_get' (implicit declaration of function `syscall')
tools.c: In function `PrintRusage' (implicit declaration of function `syscall')
tools.c: In function `fatal_common' (implicit declaration of function `syslog')
dnsserver.c: In function `main' (implicit declaration of function `res_init')

Jussi

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Jussi Torhonen / Internet: jussi.torhonen@tietosavo.fi
Tietosavo Oy / X.400: C=fi, ADMD=elisa, PRMD=tsnet,
P.O.Box 1582 / O=tietosavo, S=torhonen, G=jussi
FIN-70461 KUOPIO / AX.25: OH7DC@OH7RBA.#KUO.FIN.EU
FINLAND / Tel: +358-17-193 231, Fax: +358-17-193 355
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Received on Thu Aug 07 1997 - 05:04:54 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:36:03 MST