On Thu, 8 Mar 2001, Michael F. Brown wrote:
> Trying to compile wget on solaris. I've tried versions 1.6, 1.5.3, and
> 1.4.5 all with the same compilation error:
>
> In file included from /usr/include/sys/stream.h:26,
> from /usr/include/netinet/in.h:38,
> from /usr/include/netdb.h:96,
> from connect.c:32:
> /usr/include/sys/model.h:32: #error "No DATAMODEL_NATIVE specified"
This looks like a problem with your compiler or something.
> Attached is my config.status. My platform is:
>
> [los0061] ~/src$ uname -a
> SunOS los0061 5.6 Generic_105181-16 sun4u sparc SUNW,Ultra-5_10
>
> Let me know if there is any other information I can provide, Thanks.
What gcc version are you using?
Can you try 'gcc -E test_gcc.c > /dev/null' with the following test_gcc.c
source:
#include <netdb.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 just tried this on two Solaris boxes and none showed the error you get.
This piece of code is exactly what is in the /usr/include/sys/model.h include
file on the failing section.
[box 1]
% uname -a
SunOS ultra1 5.6 Generic_105181-21 sun4u sparc SUNW,Ultra-1
% gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.0/specs
gcc version 2.8.0
[box 2]
% uname -a
SunOS pm1 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-250
% gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/specs
gcc version 2.8.1
--
Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol