Hello
I recently acquired inn news server software from isc but I am having
some problems compiling the source code. I am writing this in the hope
that one of you out there will be able to show me the light. I am using
a Sparc 5 - solaris 2.6.
Below is an explanation of what the problem is :
I tried compiling as directed by the Install.txt file that came with the
source code and got the following error:
# make world And the following is the /usr/include/sys/model.h file /* #ifndef _SYS_MODEL_H
#ifdef __cplusplus /* #define DATAMODEL_ILP32 0x00100000 #define DATAMODEL_NONE 0 #if defined(_LP64) #ifdef __cplusplus #endif /* _SYS_MODEL_H */ I am not a guru in neither C so I have no idea what the problem is Thank you in advance.
-- Mohamedali
cd config ; make subst quiet ; cd ..
`subst' is up to date.
chmod u+w `grep -v '^;' <files.list`
./subst -f config.data `grep -v '^;' <files.list`
Fixing interpreter paths.
perl fixinterps.pl -v -d ../samples inncheck innlog.pl pgpverify
scanspool innmail
inncheck: no change
innlog.pl: no change
pgpverify: no change
scanspool: no change
innmail: no change
cd lib ; make lint ; cd ..
gcc -I../include -DSUNOS5 -DPOLL_BUG -g
-I/opt/LWperl5/lib/perl5/sun4-solaris/CORE -c getfqdn.c
In file included from /usr/include/sys/turnstile.h:12,
from /usr/include/sys/t_lock.h:20,
from /usr/include/sys/vnode.h:37,
from /usr/include/sys/stream.h:21,
from /usr/include/netinet/in.h:38,
from /usr/include/netdb.h:96,
from getfqdn.c:8:
/opt/GCC2721/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.1/include/sys/param.h:1
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 /usr/include/netdb.h:96,
from getfqdn.c:8:
/usr/include/sys/model.h:32: #error "No DATAMODEL_NATIVE specified"
*** Error code 1
make: Fatal error: Command failed for target `getfqdn.o'
Current working directory /tmp/inn-1.7.2/lib
*** Error code 1
make: Fatal error: Command failed for target `world'
* Copyright (c) 1996 Sun Microsystems, Inc.
* All rights reserved.
*/
#define _SYS_MODEL_H
extern "C" {
#endif
* These bits are used in various places to specify the data model
* of the originator (and/or consumer) of data items. See
<sys/conf.h>
* <sys/file.h>, <sys/stream.h> and <sys/sunddi.h>.
*/
#define DATAMODEL_MASK 0x0FF00000
#define DATAMODEL_LP64 0x00200000
#define DATAMODEL_NATIVE DATAMODEL_LP64
#elif defined(_ILP32)
#define DATAMODEL_NATIVE DATAMODEL_ILP32
#else
#error "No DATAMODEL_NATIVE specified"
#endif /* _LP64 || _ILP32 */
#endif
especially if the problem arises from an include file that comes with
the OS installation software. If there's anybody out there who has
experienced the same problems or knows what I am not doing right please
help me.
Its Not Where You Start, But Where You Finish That Counts!!!