Compiling Samba!!

Steve Fosdick fosdicsj at aom.bt.co.uk
Sun May 10 00:12:41 GMT 1998


"Andrew Hill" <andrew.hill at agp.servicom.es> wrote that we was uanble
to get samba to compile using HP's bundled (non-ANSI) compiler and
that when he tried compiling with gcc he got the following error
message:

> HP D350/800 HPUX 10.20 using gcc 2.8.1
> # make
> Using CFLAGS
> = -O -DSMBLOGFILE="/usr/local/samba/var/log.smb" -DNMBLOGFILE="/us
> Using LIBS =
> Compiling util.c
> *Initialization*:1: missing token-sequence in `#assert'
> *** Error exit code 1

This is caused by the -Aa option on the compiler's command line
as set by the HPUX entry in the Makefile.  To the HP compiler this
option means "use ANSI mode" whereas to gcc is defines and assertion.
Just take out the -Aa and it should work.

P.S. where did you get gcc 2.8.1 from?

-- 
Steve Fosdick                  Internet: fosdicsj at aom.bt.co.uk
Voice: +44 1473 642987         MSMAIL:   BTEA/BTLIP23/FOSDICSJ
Fax:   +44 1473 646656         BOAT:     FOSDICSJ
Snail: B29/G34, BT Labs, Martlesham Heath, Ipswich, IP5 7RE, England.


More information about the samba mailing list