I'm getting the following error when trying to compile ucspi-tcp-0.84 on a Sun
Solaris 2.6 (sparc) box:

bash-2.02$ make
./compile tcpclient.c
In file included from tcpclient.c:2:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.4/2.7.1/include/sys/param.h:185:
warning: `NBBY' redefined
/usr/include/sys/select.h:45: warning: this is the location of the previous
definition
In file included from /usr/include/sys/stream.h:26,
                 from /usr/include/netinet/in.h:38,
                 from tcpclient.c:4:
/usr/include/sys/model.h:32: #error "No DATAMODEL_NATIVE specified"
*** Error code 1
make: Fatal error: Command failed for target `tcpclient.o'

here are the offending lines in model.h:

#if     defined(_LP64)
#define DATAMODEL_NATIVE        DATAMODEL_LP64
#elif   defined(_ILP32)
#define DATAMODEL_NATIVE        DATAMODEL_ILP32
#else
#error  "No DATAMODEL_NATIVE specified"
#endif  /* _LP64 || _ILP32 */

I assume I can just do

#define _LP64

or

#define _ILP32

somewhere, but damned if I know where (or which to use) :)

Any ideas where I can find this out?  Does it matter which I use?

--Adam

---
bash: syntax error near unexpected token `:)'

Adam D. McKenna
[EMAIL PROTECTED]

Reply via email to