From owner-freebsd-questions Sat May 25 14:45:49 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 7EFA937B401 for ; Sat, 25 May 2002 14:45:45 -0700 (PDT) Received: from hades.hell.gr (patr530-a036.otenet.gr [212.205.215.36]) by mailsrv.otenet.gr (8.12.3/8.12.3) with ESMTP id g4PLihuW015966 for ; Sun, 26 May 2002 00:44:55 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.3/8.12.3) with ESMTP id g4PLi8FM024272 for ; Sun, 26 May 2002 00:44:08 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.3/8.12.3/Submit) id g4PKN0ps009827; Sat, 25 May 2002 23:23:00 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 25 May 2002 23:22:59 +0300 From: Giorgos Keramidas To: Lukas Karlsson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: conflicting types for `strcasestr' Message-ID: <20020525202259.GF7356@hades.hell.gr> References: <20020525133253.A72218-100000@starship.alienwebshop.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020525133253.A72218-100000@starship.alienwebshop.com> User-Agent: Mutt/1.3.99i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-05-25 13:38, Lukas Karlsson wrote: > > I have two systems that are nearly identical FreeBSD 4.2 systems. One was > built a year and a half ago and the other was built in the last three > months. They have exactly the same pacakges installed, and the only > things that were installed on the systems without using packages were > OpenSSH and Apache. However, for some reason, when I build the tin and > nmap ports on one of the machines, the compile fails, while it works on > the other system. > > Here is the part of the tin build that fails: > > creating ./config.status > creating po/Makefile.in > creating pcre/Makefile > creating pcre/pcre.h > creating src/Makefile > creating include/autoconf.h > if nm /usr/lib/libc.a | /usr/bin/grep -q strcasestr; then echo "#define > HAVE_STRCASESTR 1" >> > /usr/ports/news/tin/work/tin-1.5.11/include/autoconf.h; fi > ===> Building for tin-1.5.11_1 > cc -DHAVE_CONFIG_H -I. -I../include -I../pcre -I../pcre > -DLOCALEDIR=\"/usr/local/share/locale\" -I../include > -I/usr/local/include -O -pipe > -DNNTP_SERVER_FILE="\"/usr/local/etc/nntpserver\"" -c ././active.c > In file included from ../include/tin.h:1953, > from ././active.c:42: > ../include/proto.h:632: conflicting types for `strcasestr' > /usr/include/string.h:86: previous declaration of `strcasestr' > *** Error code 1 The file active.c includes ../include/tin.h which in turn includes ../include/proto.h which defines strcasestr() with a prototype that doesn't match the system prototype of strcasestr() as it is defined in /usr/include/string.h. This is a problem with the tin sources, IMHO. -- Giorgos Keramidas - http://www.FreeBSD.org keramida@FreeBSD.org - The Power to Serve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message