Date: Sat, 25 May 2002 23:22:59 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Lukas Karlsson <karlsson@panix.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: conflicting types for `strcasestr' Message-ID: <20020525202259.GF7356@hades.hell.gr> In-Reply-To: <20020525133253.A72218-100000@starship.alienwebshop.com> References: <20020525133253.A72218-100000@starship.alienwebshop.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020525202259.GF7356>