--------
> reg@xxxxxxx writes:
>
> > Probably a dumb move on my part, but Im just starting with my attempt to
> > get DEVFS running with 2.4.0-test11, and cant even get DEVFSD to compile.
> > Looks like a wrong or old *.h file, but havent a clue what Im looking for.
>
> compile with -D__USE_GNU
>
> --
> MandrakeSoft Inc http://www.chmouel.org
> --Chmouel
Well, sound reasonable, the sort of thing I would have missed, but
Im still not there. using -D__USE_GNU and gcc and kgcc, I get:
(with 2.4.0-test11)
---
[reg@orion ~/devfsd]$ make
cc -O2 -I. -Wall -D__USE_GNU -c -o devfsd.o devfsd.c
devfsd.c:565:69: warning: pasting would not give a valid preprocessing token
devfsd.c:565:69: warning: pasting would not give a valid preprocessing token
devfsd.c:569:69: warning: pasting would not give a valid preprocessing token
devfsd.c:569:69: warning: pasting would not give a valid preprocessing token
...
devfsd.c:1684:41: warning: pasting would not give a valid preprocessing token
devfsd.c: In function `free_config':
devfsd.c:1394: `RTLD_NEXT' undeclared (first use in this function)
devfsd.c:1394: (Each undeclared identifier is reported only once
devfsd.c:1394: for each function it appears in.)
devfsd.c: In function `get_shared_object':
devfsd.c:1710: `RTLD_NEXT' undeclared (first use in this function)
make: *** [devfsd.o] Error 1
---
[reg@orion ~/devfsd]$ make CC=kgcc
kgcc -O2 -I. -Wall -D__USE_GNU -c -o devfsd.o devfsd.c
devfsd.c: In function `free_config':
devfsd.c:1394: `RTLD_NEXT' undeclared (first use in this function)
devfsd.c:1394: (Each undeclared identifier is reported only once
devfsd.c:1394: for each function it appears in.)
devfsd.c: In function `get_shared_object':
devfsd.c:1710: `RTLD_NEXT' undeclared (first use in this function)
make: *** [devfsd.o] Error 1
[reg@orion ~/devfsd]$
---
I see the string __USE_GNU in a number of files in /usr/include, and see
how RTLD_NEXT gets defined in /usr/include/dlfcn.h if __USE_GNU is defined,
but Im still not there.
I see dlfcn.h being defined in both /usr/include, and /usr/include/bits
with the 2nd being included from the first, and I see a #include <dlfcn.h>
at line 192 of devfsd.c (with no #ifdef's in sight).
I see __USE_GNU being #undef'ed in features.h, but dont see where this is
being included, probably included by someone, but why doesnt #define'ing
__USE_GNU AFTER all of the #includes fix this?
very strange.
Reg.Clemens
reg@xxxxxxx
|