🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #27865

Problem compiling inn 1.7.2 news server

#27865
From: Huzefa Mohamedali
Date: Mon, 27 Apr 1998 00:00
115 lines
4092 bytes
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
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: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 /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'




And the following is the /usr/include/sys/model.h file

/*
 *      Copyright (c) 1996 Sun Microsystems, Inc.
 *      All rights reserved.
 */

#ifndef _SYS_MODEL_H
#define _SYS_MODEL_H

#pragma ident   "@(#)model.h    1.1     96/09/24 SMI"

#ifdef  __cplusplus
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_ILP32 0x00100000
#define DATAMODEL_LP64  0x00200000

#define DATAMODEL_NONE  0

#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 */

#ifdef  __cplusplus
}
#endif

#endif  /* _SYS_MODEL_H */

I am not a guru in neither C  so I have no idea what the problem is
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.

Thank you in advance.

If possible please reply to huzefa@ti.com

--
Its Not Where You Start, But Where You Finish That Counts!!!

Mohamedali




Technical Details
Message-ID: <354525EF.DEED4AA3@ti.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.admin.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <354525EF.DEED4AA3@ti.com>
Subject: Problem compiling inn 1.7.2 news server
Date: Mon, 27 Apr 1998 00:00:00 +0000
From: Huzefa Mohamedali <huzefa@ti.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.admin.mbox.zip!not-for-mail
X-Deja-AN: 348264111
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
To: inn@isc.org
Content-Type: text/plain; charset=us-ascii
Organization: Texas Instruments
Newsgroups: news.software.nntp,comp.unix.solaris,comp.unix.admin,comp.unix.programmer,comp.unix.admin