🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #26752

Re: NNTPCACHE and AIX 4

#26752
From: Conrad Sabatier
Date: Wed, 11 Mar 1998 00:00
69 lines
2734 bytes
In article <3506BAF9.41C6@duesseldorf.de>,
Peter Guenther <peter@duesseldorf.de> wrote:
>Hi,
>I tried to build NNTPCACHE V.2.3.3.1 on my AIX V.4.1.5 machine.
>I get gnu-C V.2.7.2.201 to compile it.
>
>Does anybody else do so ?
>Maybe you can help. 
>
>
>The script 'configure' runs fine and gives me
>the hope doing an easy job this time.
>
>Running make let me hit the ground and brings me
>back into real life :-(
>
>Does anybody done this job before me ?
>
>
>
>MAKE stops after programm acc.c in subdirectory ./src
>with this last message==>
>
>acc.c: In function 'rfc931':
>acc.c:54 warning: implicit declaration of function 'syslog'
>acc.c: In function 'filterReadConfigs':
>acc.c:204: warning: implicit declaration of function 'strcasecmp'
>make: 1254-004 The error code from the last command is 1.
>
>
>Stop.
>
>
>That's it,
>don't know what it's trying to tell me.
>Is something missing ?

The compiler is complaining that the functions "strcasecmp" and "syslog"
have been encountered somewhere in the source code, but that they haven't
been previously declared.

You can easily fix this by #include-ing the necessary header files.
On BSD systems, for example, you would need:

#include <string.h>	(for strcasecmp)

and

#include <syslog.h>
#include <varargs.h>	(for syslog)

Then again, it could simply be that the include path is not being set
properly, in which case "-I/path/to/headers/directory" should fix the
problem.

Hope this helps.

By the way, for future reference, when you encounter these types of
missing function declarations, try "man function-name".  The man page for
the function should tell you what header files need to be included
(provided, of course, that it's a "standard" function on your system).
-- 
Conrad Sabatier                  |  FreeBSD -- UNIX for your PC
                                 |  Why settle for less than the best?
http://www.neosoft.com/~conrads  |  http://www.freebsd.org


Technical Details
Message-ID: <6e6ep6$fss$1@dolphin.neosoft.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.technical.mbox.zip!not-for-mail
References: <3506BAF9.41C6@duesseldorf.de>

Show Full Headers
Complete Article Headers
Message-ID: <6e6ep6$fss$1@dolphin.neosoft.com>
Subject: Re: NNTPCACHE and AIX 4
Date: Wed, 11 Mar 1998 00:00:00 +0000
From: conrads@neosoft.com (Conrad Sabatier)
References: <3506BAF9.41C6@duesseldorf.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.technical.mbox.zip!not-for-mail
X-Deja-AN: 333136489
Sender: scott@zorch.SF-Bay.ORG (Scott Hazen Mueller)
Reply-To: conrads@neosoft.com
Organization: NeoSoft, Inc.
Newsgroups: news.software.nntp,comp.unix.aix,news.admin.technical,news.admin.misc