I've recently upgraded my 2.0.35 glibc5 system to glibc6 (2.0.6). I tried
compiling a couple programs that use the socket headers. I'm getting the
following errors:
-------------<snip>
(cd lib; make DEBUG="-O")
make[1]: Entering directory `/usr/src/lsof-4.33/lsof_4.33/lib'
gcc -O -DLINUXV=20035 -DGLIBCV=2 -DHASUNMINSOCK=0 -DHASAX25CBPTR -DHASNETDEVICE_H -DKERN_LD_ELF -DHAS_FL_FILE -I/usr/src/linux/include -c cvfs.c -o cvfs.o
gcc -O -DLINUXV=20035 -DGLIBCV=2 -DHASUNMINSOCK=0 -DHASAX25CBPTR -DHASNETDEVICE_H -DKERN_LD_ELF -DHAS_FL_FILE -I/usr/src/linux/include -c dvch.c -o dvch.o
gcc -O -DLINUXV=20035 -DGLIBCV=2 -DHASUNMINSOCK=0 -DHASAX25CBPTR -DHASNETDEVICE_H -DKERN_LD_ELF -DHAS_FL_FILE -I/usr/src/linux/include -c fino.c -o fino.o
In file included from /usr/include/sys/socket.h:34,
from /usr/include/netinet/in.h:24,
from ../dlsof.h:330,
from ../lsof.h:65,
from fino.c:52:
/usr/include/socketbits.h:71: warning: `PF_ROSE' redefined
/usr/src/linux/include/linux/socket.h:84: warning: this is the location of the previous definition
/usr/include/socketbits.h:78: warning: `PF_PACKET' redefined
/usr/src/linux/include/linux/socket.h:86: warning: this is the location of the previous definition
/usr/include/socketbits.h:95: warning: `AF_ROSE' redefined
/usr/src/linux/include/linux/socket.h:66: warning: this is the location of the previous definition
/usr/include/socketbits.h:102: warning: `AF_PACKET' redefined
/usr/src/linux/include/linux/socket.h:68: warning: this is the location of the previous definition
--------<snip>
It appears that /socketbits.h (which comes with glibc2.0.6) has some of the same defines as
socket.h (v2.0.35 kernel). I know that these are only warnings but wanted to voice
it to the group here in case it's something more drastic.
Steve
--
"There are two types of light, the glow that illuminates, and the glare
that obscures." -- James Thurber