Date: Sat, 25 May 2002 13:38:51 -0400 (EDT) From: Lukas Karlsson <karlsson@panix.com> To: freebsd-questions@FreeBSD.ORG Subject: conflicting types for `strcasestr' Message-ID: <20020525133253.A72218-100000@starship.alienwebshop.com>
next in thread | raw e-mail | index | archive | help
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 Stop in /usr/ports/news/tin/work/tin-1.5.11/src. gmake: [build] Error 1 (ignored) cd /usr/ports/news/tin/work/tin-1.5.11/po; gmake PATH=../src:$PATH /usr/local/bin/xgettext --default-domain=tin --directory=.. \ --add-comments --keyword=_ --keyword=N_ \ --files-from=./POTFILES.in \ && test ! -f tin.po \ || ( rm -f ./tin.pot \ && mv tin.po ./tin.pot ) src/lang.c:596: warning: Empty msgid. It is reserved by GNU gettext: gettext("") returns the header entry with meta information, not the empty string. src/lang.c:597: warning: Empty msgid. It is reserved by GNU gettext: gettext("") returns the header entry with meta information, not the empty string. rm -f cat-id-tbl.tmp sed -f ../intl/po2tbl.sed ./tin.pot \ | sed -e "s/@PACKAGE NAME@/tin/" > cat-id-tbl.tmp if cmp -s cat-id-tbl.tmp ./cat-id-tbl.c; then \ rm cat-id-tbl.tmp; \ else \ echo cat-id-tbl.c changed; \ rm -f ./cat-id-tbl.c; \ mv cat-id-tbl.tmp ./cat-id-tbl.c; \ fi cat-id-tbl.c changed cd . && rm -f stamp-cat-id && echo timestamp > stamp-cat-id file=./`echo de | sed 's,.*/,,'`.gmo \ && rm -f $file && PATH=../src:$PATH /usr/local/bin/msgfmt -o $file de.po file=./`echo et | sed 's,.*/,,'`.gmo \ && rm -f $file && PATH=../src:$PATH /usr/local/bin/msgfmt -o $file et.po file=./`echo en_GB | sed 's,.*/,,'`.gmo \ && rm -f $file && PATH=../src:$PATH /usr/local/bin/msgfmt -o $file en_GB.po I have tried to figure out what is wrong with strcasestr on the system, but I can't find anything different on the two systems. I did notice that libc.a is different, however. That could be the problem. Any suggestions on how I should go about solving this? /l ----------------------------------------------------------------------------- Lukas Karlsson karlsson@panix.com Cambridge, MA http://lukwam.com/ 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?20020525133253.A72218-100000>