🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39252

Re: Problem building INN 2.2

#39252
From: Bill Rieken
Date: Wed, 18 Aug 1999 00:00
47 lines
2456 bytes
Thank you, Katsuhiro-san,

Yes, I ran configure: ./configure --with-perl --with-sendmail=/usr/lib/sendmail

The problem turned out to be a wrong path to Perl 4 instead of Perl 5.  Perl 5
has an "uppercase" function uc(string) which converts a string to all upper-case.
So, lines 63 & 83 in "storage/buildconfig" generated lower-case tokens in "methods.h"
and "methods.c":

------>	$ grep TOKEN ./storage/methods.h
	#define TOKEN_trash                                   0
	#define TOKEN_cnfs                                    3
	#define TOKEN_timehash                                2

	$ find . -print | xargs grep TOKEN_trash
	./storage/methods.c:	{ "trash", TOKEN_trash, 
	./storage/methods.h:#define TOKEN_trash               0

	$ find . -print | xargs grep TOKEN_TRASH
	./storage/trash/trash.c:    token.type = TOKEN_TRASH;
	./storage/trash/trash.c:    if (token.type != TOKEN_TRASH) {

	$ grep TOKEN_ ../inn-2.1/storage/trash/trash.c
		memset(&token.token, '\0', STORAGE_TOKEN_LENGTH);
	    token.type = TOKEN_TRASH;
	    if (token.type != TOKEN_TRASH) {

	$ grep TOKEN_ ../inn-2.1/storage/methods.*    
	../inn-2.1/storage/methods.c:	{ "trash", TOKEN_TRASH, 
	../inn-2.1/storage/methods.c:	{ "cnfs", TOKEN_CNFS, 
	../inn-2.1/storage/methods.c:	{ "timehash", TOKEN_TIMEHASH, 
------>	../inn-2.1/storage/methods.h:#define TOKEN_TRASH              0
	../inn-2.1/storage/methods.h:#define TOKEN_CNFS               3
	../inn-2.1/storage/methods.h:#define TOKEN_TIMEHASH           2

Thanks for your suggestion.  It pointed me in the right direction! 

line 63:	print DEF "\t{ \"$method\", TOKEN_", uc($method), ", \n\t  ";
                                                     ^^^^^^^^^^^

The solution (for me) was to put the right path to Perl 5 in the #! first line
in "storage/buildconfig" script.

--Bill Rieken


Technical Details
Message-ID: <7pf2hh$5qa$1@engnews2.Eng.Sun.COM>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <7p0e2t$44a@netaxs.com>

Show Full Headers
Complete Article Headers
Message-ID: <7pf2hh$5qa$1@engnews2.Eng.Sun.COM>
Subject: Re: Problem building INN 2.2
Date: Wed, 18 Aug 1999 00:00:00 +0000
From: wdr@yermom.eng.sun.com (Bill Rieken)
References: <7p0e2t$44a@netaxs.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 514343951
Distribution: world
Organization: Sun Microsystems Inc.
Reply-To: wdr@yermom.eng.sun.com
Newsgroups: news.software.nntp