[nas] can't build nas-1.5 on hpux 11.00

Gansser, Martin MGansser at rand.de
Thu Sep 26 09:57:59 MDT 2002


> On Wed, 25 Sep 2002, Gansser, Martin wrote:
> 
> > Date: Wed, 25 Sep 2002 13:12:57 +0200
> > From: "Gansser, Martin" <MGansser at rand.de>
> > To: nas at radscan.com
> > Subject: [nas] can't build nas-1.5 on hpux 11.00
> > 
> > Hi,
> > 
> > I tried to compile nas-1.5 on hpux 11.00, but it fails with 
> a lot of errors:
> > 
> > I used HP's ANSI C Compiler
> > 
> > xmkmf
> > make WORLDOPTS='-k CDEBUGFLAGS="$(CDEBUGFLAGS) -DSTARTSERVER"' World
> > 
> > I attached the messages from make World ...
> > 
> > thanks in advance
> > 
> 
> 	Ahh.  Back when I did the HPUX stuff, I did not have 
> access to an
> HP compiler, nor was the X11 up to snuff (I think it was 
> X11R5).  The way
> I built it was using gcc and my own cobbled together X11R6.1 tree... 
> 
> 	The error:
> 
>         mv -f Makefile Makefile.bak
> cpp: "./Imakefile", line 28: error 4036: Can't open include file
> 'Threads.tmpl'.
> imake: Exit code 1.  Stop.
> Make: Must be a separator on rules line 7.  Stop.
> 
> 	tells me that HPUX's X11 env is still probably at 
> X11R5.  You can
> remove the 'Threads' include from the Imakefile.  You should 
> probably also
> disable any attempt to use threading under HPUX if X11 Threads are not
> supported (there is an option in config/NasConfig.h I believe).
> 
> 	The 'seperator' error may be related to a Threads macro, I don't
> know.
> 
> 	This may be a problem in lib/audio/Imakefile - I don't know off
> hand what it's choking on (you can look at the line in the generated
> Makefile).  It will probably be a macro that is not defined by your X
> environment.  The fact that this is failing is why, later on, 
> there are
> errors about missing include files - since the make's in lib/audio/
> fialed, they were never placed in their proper locations for 
> the rest of
> NAS to find.  
> 
> 	Note, that I was using HP-UX 10.10 or so on 9000/780 I
> believe.  Been a couple years - it just collects dust in a 
> closet at home
> now ;-)
> 
> -- 
> Jon Trulson    mailto:jon at radscan.com
> ID: 1A9A2B09, FP: C23F328A721264E7 B6188192EC733962
> PGP keys at http://radscan.com/~jon/PGPKeys.txt
> #include <std/disclaimer.h>
> Bad Color Temperature, Too much Peach.


Compiles now more better as at beginnig.
Changes I made:

1. Comment in:  lib/Imakefile and lib/audio/Imakefile

/* #include "../config/NetAudio.tmpl" */

2. Add in:  config/NetAudio.tmpl  (only for test)

/* For HPUX - 11.00 (Martin Gansser)*/
BINDIR = /usr/local/bin/
USRLIBDIR=/usr/local/lib/nas
XAPPLOADDIR = /usr/local/lib/X11/app-defaults
STD_INCLUDES = -I/usr/contrib/X11R6/include -I/usr/include/X11R6
EXTRA_LDOPTIONS =  -L/usr/contrib/X11R6/lib -L/usr/lib/X11R6
INCROOT = /usr/local/include/nas
IRULESRC=/opt/imake/config/

the part that breaks again is:

         rm -f dbm.o
        if [ ! -d dbm ]; then rm -f -r dbm; mkdir dbm; else /bin/true; fi
        (cd dbm; rm -f *.o; ar -x /usr/lib/libdbm.a; \
        ld -r -o a.out.o -h bcopy ndbm.o; \
        mv a.out.o ndbm.o; ld -r -o ../dbm.o *.o)
ld: Can't open ndbm.o
ld: No such file or directory
*** Error exit code 1
`all' not remade because of errors
making all in server/dda/hpux...
        rm -f auhpux.o
        cc -c -O -DSTARTSERVER -Aa  -I. -I../../include -I../../../include -I../../dia -I../../../include  -I/usr/contrib/X11R6/include -I/usr/include/X11R6 -Dhpux -DSYSV -D_HPUX_SOURCE      auhpux.c
        rm -f config.o
        cc -c -O -DSTARTSERVER -Aa  -I. -I../../include -I../../../include -I../../dia -I../../../include  -I/usr/contrib/X11R6/include -I/usr/include/X11R6 -Dhpux -DSYSV -D_HPUX_SOURCE      config.c
        rm -f libhpux.a
        ar clq libhpux.a auhpux.o config.o
Make: Don't know how to make os/libos.a.  Stop.
making all in ./lib...
making all in lib/audio...
Make: Don't know how to make AuPassCDebugFlags.  Stop.
*** Error exit code 1
....
/usr/ccs/bin/ld: Can't open ../../../lib/audio/libaudio.a
/usr/ccs/bin/ld: No such file or directory
*** Error exit code 1

I attached the error messages

thanks for any help

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: typescript
Type: application/octet-stream
Size: 48104 bytes
Desc: typescript
URL: <http://radscan.com/pipermail/nas/attachments/20020926/e482afbd/attachment.obj>


More information about the Nas mailing list