This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

/usr/include/bits/string2.h warnings


What causes the following warnings? IIRC, I got nothing with
2.1.3 from Slackware 7.1 and 2.0.7 from RedHat 5.2. The result
using 2.2 and up (they also appear building XFree86):

gcc  -DHAVE_CONFIG_H -I/usr/local/ssl/include  -D_GNU_SOURCE
-DLOCALEDIR=\"/usr/local/share/locale\" -I. -I.. -Ichrtrans
-I/usr/local/src/alpha-beta/lynx2-8-4/src/chrtrans -I/usr/local/src/alpha-beta/lynx2-8-4
-I/usr/local/src/alpha-beta/lynx2-8-4/src
-I/usr/local/src/alpha-beta/lynx2-8-4/WWW/Library/Implementation   -O2 -DLINUX -W -Wall
-Wbad-function-cast -Wcast-align -Wcast-qual -DXTSTRINGDEFINES -Winline -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -c
/usr/local/src/alpha-beta/lynx2-8-4/src/UCAuto.c
In file included from /usr/include/string.h:359,
		 from /usr/local/src/alpha-beta/lynx2-8-4/WWW/Library/Implementation/HTUtils.h:464,
		 from /usr/local/src/alpha-beta/lynx2-8-4/src/UCAuto.c:17:
/usr/include/bits/string2.h: In function `__mempcpy_small':
/usr/include/bits/string2.h:237: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:241: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:245: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:247: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:251: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:255: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:257: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:261: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:263: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:267: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:269: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:271: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:275: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:277: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h: In function `__strcpy_small':
/usr/include/bits/string2.h:418: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:426: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:431: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:436: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:438: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:443: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h: In function `__stpcpy_small':
/usr/include/bits/string2.h:575: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:579: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:584: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:588: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:593: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:595: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:599: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:601: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:606: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:608: warning: pointer of type `void *' used in arithmetic

BTW, where's db-Makefile? Also note the double "question". From
the FAQ:

2.16.   How do I create the databases for NSS?

{AJ} If you have an entry "db" in /etc/nsswitch.conf you should also create
the database files.  The glibc sources contain a Makefile which does the
necessary conversion and calls to create those files.  The file is
`db-Makefile' in the subdirectory `nss' and you can call it with `make -f
db-Makefile'.  Please note that not all services are capable of using a
database.  Currently passwd, group, ethers, protocol, rpc, services shadow
and netgroup are implemented.  See also question question 2.31.

-- 
0@pervalidus.{net, {dyndns.}org} Tel: 55-21-717-2399 (Niterói-RJ BR)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]