problems compiling on a Solaris x86 machine


Subject: problems compiling on a Solaris x86 machine
From: Dejan Ilic (svedja@morgaine.rydnet.lysator.liu.se)
Date: Fri Jun 20 1997 - 18:06:17 EDT


A lot of the solaris code seems to be made for sparc-machines. Im running
solaris on a pentium.

First "-mno-app-regs -munaligned-doubles" flags doesnt work on solaris_x86
2.5 with gcc 2.7.2.2 so that part had to be commented out.

I found that the little_endian parts were commented out in
./sys/solaris/ddp.h but enabling them makes the code compile a little more
and then I get out below. I need help to get rid of it.

make[1]: Entering directory
`/localusers/dejan/Incoming/netatalk/sys/solaris'
gcc -D_KERNEL -fpcc-struct-return -D__svr4__ -DSOLARIS -O -I../../include
-I../netatalk -c dlpi.c
In file included from dlpi.c:54:
ddp.h:106: duplicate member `dub_sum'
ddp.h:107: duplicate member `dub_len'
ddp.h:108: duplicate member `dub_hops'
ddp.h:109: duplicate member `dub_pad'
make[1]: *** [dlpi.o] Error 1

I also strongly dislike that there exists things like "ddp.h" on three
places, all off them different.

> find . | grep ddp.h
./include/atalk/ddp.h
./sys/netatalk/ddp.h
./sys/solaris/ddp.h

There are probaly more cases like that.

 Any clues when next version with all new patches will be out ?

=====================================================================
Dejan Ilic, Tech Univ. of Linkoping, Sweden Phone: +46-13-473 01 06
Email: svedja@lysator.liu.se Web: http://www.lysator.liu.se/~svedja

"I may look like The Devil but i'm an angel deep down in my heart"
=====================================================================
[finger -l svedja@lysator.liu.se for public PGP key]



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:25:06 EST