Mailing List Archive



Back to the month index Back to the list index

Kevin Baker (ol@twics.com)
Wed, 28 Apr 1999 15:57:39 +0900 (JST)


Date: Wed, 28 Apr 1999 15:57:39 +0900 (JST)
From: Kevin Baker <ol@twics.com>
Subject: HPUX Compiled
Message-ID: <Pine.HPP.4.05.9904281530340.12131-100000@beehive.twics.com>

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
---------------------------------------------------------------------------