Thread View: news.software.nntp
4 messages
4 total messages
Started by Gavin Mathias
Thu, 26 Dec 1996 00:00
Compiling 1.5.1 on sunos 4.1.3
Author: Gavin Mathias
Date: Thu, 26 Dec 1996 00:00
Date: Thu, 26 Dec 1996 00:00
41 lines
2036 bytes
2036 bytes
I'm trying to compile 1.5.1 on a Sparc20 running SunOs 4.1.3. My config-data file corresponds closely to the one for SunOs 4.1.X in the sample-configs directory. The compiler is gcc-2.5.8. However, I'm getting the following fatal error during the "make world": ---------------------------------------------------------------------------- cd lib ; make lint ; cd .. gcc -I../include -g -target sun4 -c memmove.c In file included from memmove.c:9: ../include/clibrary.h:115: conflicting types for `free' /vol/pub/gcc-2.5.8/lib/gcc-lib/sparc-sun-sunos4.1/2.5.8/include/stdlib.h:36: previous declaration of `free' ../include/clibrary.h:133: conflicting types for `abort' /vol/pub/gcc-2.5.8/lib/gcc-lib/sparc-sun-sunos4.1/2.5.8/include/stdlib.h:28: previous declaration of `abort' *** Error code 1 make: Fatal error: Command failed for target `memmove.o' Current working directory /usr/local/NEWS/src/inn-1.5.1/lib *** Error code 1 make: Fatal error: Command failed for target `world' ---------------------------------------------------------------------------- In the gcc stdlib.h file, these are the definitions of free and abort: extern void abort(/* void */); extern void free _PARAMS((void *)); In clibrary.h, these are the definitions: #define FREEVAL int extern FREEVAL free(); extern int abort(); Any ideas on how to fix this? I'm upgrading gcc to 2.7.2 in the hope that this will fix it. Regards, Gavin Mathias
Re: Compiling 1.5.1 on sunos 4.1.3
Author: Jef Poskanzer
Date: Fri, 27 Dec 1996 00:00
Date: Fri, 27 Dec 1996 00:00
75 lines
2638 bytes
2638 bytes
kimc@moonpie.w8hd.org (Kim Culhan):
}Could you post the defs for SunOS as used in 1.5 for gcc-2.7.2 ?
}I've seen quite a number of requests here for this information which
}does not appear to be available in the inn1.5 package.
Below are the significant diffs between the distributed sample SunOS 4
config and the one we used. A summary:
- We use vfork.
- "BIND_USE_SIZEOF DO" has a bug so we disable it.
- We get the descriptor count from the system instead of hard-coding it.
- Various return-type changes that have been mentioned in this thread.
- We seem to have mktemp so we don't use INN's version.
- The correct field number for "df -i" is 3, not 7.
We also make the following two changes which are not SunOS 4 related
but are important enough to mention:
- The "LIKE_PULLERS DONT" option is broken so we set DO.
- We increase the max header size to 4096; 1024 is too small these days.
All sites regardless of OS should make these last two changes.
---
Jef
Jef Poskanzer jef@acme.com http://www.acme.com/jef/
In Stereo (where available)
222c232
< FORK fork
---
> FORK vfork
225c235
< HAVE_VFORK DONT
---
> HAVE_VFORK DO
234c244
< BIND_USE_SIZEOF DO
---
> BIND_USE_SIZEOF DONT
251c261
< NOFILE_LIMIT 126
---
> NOFILE_LIMIT -1
262c272
< ABORTVAL int
---
> ABORTVAL void
271c281
< SLEEPVAL unsigned int
---
> SLEEPVAL unsigned
280c290
< FREEVAL int
---
> FREEVAL void
302c312
< MISSING_SRC strerror.c mktemp.c memmove.c
---
> MISSING_SRC strerror.c memmove.c
304c314
< MISSING_OBJ strerror.o mktemp.o memmove.o
---
> MISSING_OBJ strerror.o memmove.o
450c460
< LIKE_PULLERS DONT
---
> LIKE_PULLERS DO
508c518
< MAXHEADERSIZE 1024
---
> MAXHEADERSIZE 4096
815c825
< INNWATCH_INODES 7
---
> INNWATCH_INODES 3
Re: Compiling 1.5.1 on sunos 4.1.3
Author: Kim Culhan
Date: Fri, 27 Dec 1996 00:00
Date: Fri, 27 Dec 1996 00:00
29 lines
1417 bytes
1417 bytes
cdewick@lios.apana.org.au (Craig Dewick) writes: >In <59un12$86i@emf.emf.net> gavin@emf.net (Gavin Mathias) writes: >Once you do this, the compile will run without any problems. >>Any ideas on how to fix this? I'm upgrading gcc to 2.7.2 in the hope that >>this will fix it. >I use gcc 2.7.2 here. Once you change the definitions for FREEVAL, ABORTVAL, >etc. in config.data, the problems will disappear. There are about half a >dozen (maybe a few more) things you'll need to change if I remember Craig- Could you post the defs for SunOS as used in 1.5 for gcc-2.7.2 ? I've seen quite a number of requests here for this information which does not appear to be available in the inn1.5 package. regards kim -- kimc@w8hd.org
Re: Compiling 1.5.1 on sunos 4.1.3
Author: Craig Dewick
Date: Fri, 27 Dec 1996 00:00
Date: Fri, 27 Dec 1996 00:00
30 lines
1859 bytes
1859 bytes
In <59un12$86i@emf.emf.net> gavin@emf.net (Gavin Mathias) writes:
>I'm trying to compile 1.5.1 on a Sparc20 running SunOs 4.1.3. My config-data
>file corresponds closely to the one for SunOs 4.1.X in the sample-configs
>directory. The compiler is gcc-2.5.8. However, I'm getting the following
>fatal error during the "make world":
I had the same problem when I first tried to build 1.5.1 here on this
machine - a Sparc LC running SunOS 4.1.4 (aka Solaris 1.1.2). You need to
change some of the definitions in config.data to match your C header files.
Once you do this, the compile will run without any problems.
>Any ideas on how to fix this? I'm upgrading gcc to 2.7.2 in the hope that
>this will fix it.
I use gcc 2.7.2 here. Once you change the definitions for FREEVAL, ABORTVAL,
etc. in config.data, the problems will disappear. There are about half a
dozen (maybe a few more) things you'll need to change if I remember
correctly.
Regards,
Craig.
--
Craig Dewick. Send email to 'cdewick@lios.apana.org.au'
Point a web browser at 'http://lios.apana.org.au/~cdewick/sun_ark.html' to
access my collection of Sun information and links to other places.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads