🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Glenn Fullager Thu, 06 Mar 1997 00:00
Problems compiling inn1.5.1
#15604
Author: Glenn Fullager
Date: Thu, 06 Mar 1997 00:00
33 lines
1717 bytes
I am having trouble compiling up the inn1.5.1 distribution.  I
am using my config.data file from when I compiled inn1.4unoff4.

subst builds OK, but when I try and make the library I get the
following:

% make libinn.a lint
cc -I../include -g   -target sun4 -c  checkart.c
"../include/clibrary.h", line 22: syntax error at or near type word
"void"
"../include/clibrary.h", line 22: unknown size
"../include/clibrary.h", line 49: syntax error at or near variable name
"SIGVAR"
"../include/clibrary.h", line 49: unknown size
"../include/clibrary.h", line 115: redeclaration of free
"../include/clibrary.h", line 116: redeclaration of malloc
"../include/clibrary.h", line 117: redeclaration of realloc
"../include/clibrary.h", line 133: redeclaration of abort
"../include/clibrary.h", line 137: redeclaration of exit
*** Error code 1
make: Fatal error: Command failed for target `checkart.o'

It's complaining about the "const" part in "typedef const void
*CPOINTER" and the sig_atomic_t typedef, but why?  What have I
missed?

-- 
Glenn Fullager		| Email : g.fullager@telstra.com.au
CDN/B Network Software	| Snail : PO Box 226, Clayton VIC, 3168.
ITG			| Phone : +61 3 9253-8609   Fax: +61 3 9253-8577

Re: Problems compiling inn1.5.1
#15591
Author: John A. Murphy
Date: Thu, 06 Mar 1997 00:00
43 lines
2534 bytes

In article <yy3ohcxck4r.fsf@velo.pp.vix.com>, James Brister <brister@vix.com> writes:
|> Glenn Fullager <g.fullager@telstra.com.au> writes:
|> 
|> > I am having trouble compiling up the inn1.5.1 distribution.  I
|> > am using my config.data file from when I compiled inn1.4unoff4.
|> 
|> Don't do that--you'll be missing new config.data variables. Take an
|> appropriate sample from the sample-configs directory and start with that
|> (config/config.dist is for bsd/os if you're running that):

Definately "Don't do that".

|> % make libinn.a lint
|> cc -I../include -g   -target sun4 -c  checkart.c
|> "../include/clibrary.h", line 22: syntax error at or near type word "void"
|> "../include/clibrary.h", line 22: unknown size
|> "../include/clibrary.h", line 49: syntax error at or near variable name
|> "SIGVAR"
|> "../include/clibrary.h", line 49: unknown size

Also, you didn't include what system you were using.  On a SunOS system I
had MUCH better luck with gcc than cc.  Most of what you're seeing will go
away with the proper config.data.  When I built it, I did see a LOT of lint,
but proceeded through the build and everything is working fine.

I suggest doing a diff between your 1.4 config.data and the template 
config.data that 1.5.1 provides for your OS. This will quickly show you 
the variables & paths that you probably want to change again.  Note 
that a number of types were changed from "int" to a more proper "uid_t" 
or whatever, trust the 1.5.1 version of these.

Murf


-- 
John A. Murphy (better known as Erin's dad)  jam@philabs.research.philips.com
345 Scarborough Road          One one-trillionith of a surprise: picoboo
Briarcliff Manor, NY 10510    millihellen: The beauty needed to launch 1 ship
(914)945-6216 ** My views and opinions do not reflect those of my employer **

Re: Problems compiling inn1.5.1
#15593
Author: James Brister
Date: Thu, 06 Mar 1997 00:00
25 lines
1268 bytes
Glenn Fullager <g.fullager@telstra.com.au> writes:

> I am having trouble compiling up the inn1.5.1 distribution.  I
> am using my config.data file from when I compiled inn1.4unoff4.

Don't do that--you'll be missing new config.data variables. Take an
appropriate sample from the sample-configs directory and start with that
(config/config.dist is for bsd/os if you're running that):

	cd config
	cp ../sample-configs/config.data-FOR-MY-OS config.data
	make subst 
	./subst -f /path/to/config.data-from-1.4unoff4 config.data
	cd ..
	make

etc.

James
-- 
James Brister                                            brister@vix.com
Internet Software Consortium    http://www.isc.org/isc   inn@isc.org 

Re: Problems compiling inn1.5.1
#15601
Author: Per Hedeland
Date: Thu, 06 Mar 1997 00:00
24 lines
1486 bytes
In article <331E32E0.26FA@telstra.com.au>, Glenn Fullager
<g.fullager@telstra.com.au> writes:
|> I am having trouble compiling up the inn1.5.1 distribution.  I
|> am using my config.data file from when I compiled inn1.4unoff4.

James Brister already explained why you shouldn't do that, but...

|> cc -I../include -g   -target sun4 -c  checkart.c
...
|> It's complaining about the "const" part in "typedef const void
|> *CPOINTER" and the sig_atomic_t typedef, but why?  What have I
|> missed?

That the ancient cc bundled with (the ancient:-) SunOS 4.x doesn't grok
ANSI C. I don't know if there are other parts of INN that require an
ANSI compiler, but rather than trying to track them down and de-ANSIfy
them, I suggest you get hold of a recent gcc - you'll get far better
code, too (at least if you throw a '-O' in CFLAGS).

--Per Hedeland
per@erix.ericsson.se

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