strlcat/strlcpy problems
Andras Mantia
amantia at virtualartisans.com
Sat Feb 1 13:50:12 GMT 2003
With current CVS HEAD I get the following error when compiling
kdelibs/kdecore/fakes.c:
depmode=gcc /bin/sh /home/andris/cvs-developement/branch/kdelibs/admin/depcomp
\
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I.
-I/home/andris/cvs-developement/branch/kdelibs/kdecore -I..
-I/home/andris/cvs-developement/branch/kdelibs/kdefx
-I/home/andris/cvs-developement/branch/kdelibs/dcop
-I/home/andris/cvs-developement/branch/kdelibs/libltdl
-I/home/andris/cvs-developement/branch/kdelibs/kdecore
-I/home/andris/cvs-developement/branch/kdelibs/kdeui
-I/home/andris/cvs-developement/branch/kdelibs/kio
-I/home/andris/cvs-developement/branch/kdelibs/kio/kio
-I/home/andris/cvs-developement/branch/kdelibs/kio/kfile
-I/home/andris/cvs-developement/branch/kdelibs -I/usr/lib/qt-copy/include
-I/usr/X11R6/include -I/opt/kde-31/include -I/usr/include
-DQT_THREAD_SUPPORT -D_REENTRANT -ansi -W -Wall -pedantic -Wshadow
-Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -O2 -c -o fakes.lo `test -f
'/home/andris/cvs-developement/branch/kdelibs/kdecore/fakes.c' || echo
'/home/andris/cvs-developement/branch/kdelibs/kdecore/'`/home/andris/cvs-developement/branch/kdelibs/kdecore/fakes.c
/home/andris/cvs-developement/branch/kdelibs/kdecore/fakes.c:290: conflicting
types for `strlcpy'
../config.h:849: previous declaration of `strlcpy'
/home/andris/cvs-developement/branch/kdelibs/kdecore/fakes.c:308: conflicting
types for `strlcat'
../config.h:840: previous declaration of `strlcat'
make[2]: *** [fakes.lo] Error 1
make[2]: Leaving directory `/mnt/data/kde/build/branch/kdelibs/kdecore'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/mnt/data/kde/build/branch/kdelibs/kdecore'
make: *** [install-recursive] Error 1
It seems that in the config.h everywhere there is an "unsigned int" and in
fakes.c there is "unsigned long". Correcting the int to long solves the
problem (but of course this should be done somewhere in the admin dir).
Andras
--
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
More information about the kde-core-devel
mailing list