Mailing List Archive



Back to the month index Back to the list index

david (davidr@ozzy.terrestrial.com)
Fri, 30 Apr 1999 19:23:03 -0700 (MST)


Date: Fri, 30 Apr 1999 19:23:03 -0700 (MST)
From: david <davidr@ozzy.terrestrial.com>
Subject: Re: HPUX Compiled
Message-ID: <Pine.LNX.3.95.990430192044.8638B-100000@ozzy.terrestrial.com>

Everything compiles better under gcc. I have had many problems compiling
with hp and sun compilers. I have had no problem at all compiling msql
on multiple platforms using gcc.

On Wed, 28 Apr 1999, Kevin Baker wrote:

> HI,
>
> finally got msql 2.0.9 to compile on HPUX 10.20 using the HP Compiler.
> First I ran setup with the flags so that it behaves like an ansi C
> compiler
>
> CC='cc -Ae +z' ./setup
>
> This fixes the problem I was having with setup not detecting the
> number of args to MSYNC correctly. Without the ansi flags setup reports it
> as having 2 args. It should be 3.
>
> The next problem was the linker being unable to resolve 'alloca' when
> linking libmsql.a . I traced the problem to
>
> msql/msql_yacc.c
> lang-common/parser.c
>
> I added an include for alloca and this solved the problem. I actually
> added this to the msql_yuacc.y and parser.y files. Maybe bambi could put a
> def in there for future HP compiles???
>
> #include <alloca.h>
>
> Kev
>
>
> ---------------------------------------------------------------------------
> Kevin Baker ol@twics.com TWICS Japan PH 81+(0)3-3351-8452
> ---------------------------------------------------------------------------
>
>
>