[nas] Can't find library: "audio"
Gansser, Martin
MGansser at rand.de
Wed Oct 2 03:26:18 MDT 2002
>
> On Fri, 27 Sep 2002, Gansser, Martin wrote:
>
> > Date: Fri, 27 Sep 2002 14:24:35 +0200
> > From: "Gansser, Martin" <MGansser at rand.de>
> > To: nas at radscan.com
> > Subject: [nas] Can't find library: "audio"
> >
> > I tried to compile nas-1.5 with the Imake system, but it
> fails now with the follwing error message:
> > The System is hpux 11.00
> >
> > 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
the command ar -x /usr/lib/libdbm.a produce on hpux 11.x the output file: hpux_rel.o
the file a.out.o is no longer needed.
> Oh, that's disgusting ;-) I forgot all about that crap.
> Apparently, in earlier versions of HPUX (don't know about
> now), there was
> a version of bcopy in some syslib that conflicted with
> generally accepted
> 'standards' of bcopy. So this mess above, would extract a
> known working
> copy of bcopy() from some library and then embed it within
> NAS, thereby
> removing the need for the linker to bring in the 'broken' version.
>
> Please don't yell at me, I didn't write this ;-)
I'am not a programmer, I can't write this.
> I think that in this day and age of flying machines and
> light bulbs, most systems these days support memmove().
> Perhaps it's time
> to remove the bcopy dependancies and replace them with
> memmove (at least
> for the server). That would also allow me to gleefully
> remove the mess
> above.
>
>
> The errors below are just a result of the fact that this magic
> library either no longer exists, or no longer contains the
> bcopy.o object.
>
> You know, if you could give me ssh access to this
> machine, I'd be
> more than happy to try and get it all to build for the next
> release...
sorry I can't give you a access, because my privat machine is in our company.
> Also, your previous message that indicated to me how you hacked
> around NetAudio.tmpl isn't something I'd want to put in a
> shipping NAS.
the only thing I've done is:
addet the following to config/NetAudio.tmpl:
/* For HPUX - 11.00 (Martin Gansser) */
#if defined(HPUXArchitecture) && OSMajorVersion >= 11 && !defined(HasGcc)
CCOPTIONS= -Ae -Dhpux
CDEBUGFLAGS= +O2 +Onolimit +DAportable
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=/usr/local/lib/X11/imake
#endif
and Comment: lib/Imakefile and lib/audio/Imakefile
/* #include "../config/NetAudio.tmpl" */
>
> > making all in ./server/dda/hpux...
> > rm -f auhpux.o
> > gcc -c -O -I. -I../../include -I../../../include
> -I../../dia -I../../.././include -I/usr/include/X11R6
> -I/usr/contrib/X11R6/include -I/usr/local/X11R6/include
> -DSYSV -Dhpux auhpux.c
> > rm -f config.o
> > gcc -c -O -I. -I../../include -I../../../include
> -I../../dia -I../../.././include -I/usr/include/X11R6
> -I/usr/contrib/X11R6/include -I/usr/local/X11R6/include
> -DSYSV -Dhpux 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
> > `all' not remade because of errors
> > making all in ./clients...
> > making all in ./clients/audio...
> > making all in ./clients/audio/widgets...
> > gcc -O -I../../.././include -I/usr/include/X11R6
> -I/usr/contrib/X11R6/include -I/usr/local/X11R6/include
> -DSYSV -Dhpux -c Slider.c
> > rm -f libwidgets.a
> > ar clq libwidgets.a Slider.o
> > making all in ./clients/audio/auconvert...
> > gcc -O -I../../.././include -I/usr/include/X11R6
> -I/usr/contrib/X11R6/include -I/usr/local/X11R6/include
> -DSYSV -Dhpux -c auconvert.c
> > if [ -f auconvert ]; then rm -f auconvert~; mv -f
> auconvert auconvert~; fi
> > gcc -o auconvert auconvert.o -O
> -L../../.././lib/audio -L/usr/lib/X11R6
> -L/usr/contrib/X11R6/lib -L/usr/lib/X11R6
> -L/usr/contrib/X11R6/lib -laudio -lXt -lXext -lX11 -lm
> > /usr/ccs/bin/ld: Can't find library: "audio"
> > collect2: ld returned 1 exit status
> > *** Error exit code 1
thanks
Martin
More information about the Nas
mailing list