shadow - 4.1.1 (SVN 20080603/ uclibc)

Mwanguhya Daniel Murungi dmurungi at dicts.mak.ac.ug
Wed Jul 30 02:27:37 PDT 2008


Hello,

I get the following errors when compiling shadow;

Error 1;
mv -f .deps/chowntty.Tpo .deps/chowntty.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../lib    -g -O2 -MT 
console.o -MD -MP -MF .deps/console.Tpo -c -o console.o console.c
mv -f .deps/console.Tpo .deps/console.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../lib    -g -O2 -MT 
copydir.o -MD -MP -MF .deps/copydir.Tpo -c -o copydir.o copydir.c
copydir.c: In function 'copy_entry':
copydir.c:286: error: 'struct stat' has no member named 'st_atim'
copydir.c:287: error: 'struct stat' has no member named 'st_atim'
copydir.c:288: error: 'struct stat' has no member named 'st_mtim'
copydir.c:289: error: 'struct stat' has no member named 'st_mtim'
make[2]: *** [copydir.o] Error 1
make[2]: Leaving directory `/tmp/shadow-4.1.1/libmisc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/shadow-4.1.1'
make: *** [all] Error 2

Adding the following declarations to copydir.c (line 285) gets rid of the 
above error ;
#ifndef (__UCLIBC__)
.
.
.
#endif

Error 2:
gcc -DHAVE_CONFIG_H -I. -I.. -I../lib    -g -O2 -MT 
xgetpwnam.o -MD -MP -MF .deps/xgetpwnam.Tpo -c -o xgetpwnam.o xgetpwnam.c
In file included from xgetpwnam.c:23:
../lib/pwio.h:4: error: expected ')' before 'uid'
make[2]: *** [xgetpwnam.o] Error 1
make[2]: Leaving directory `/tmp/shadow-4.1.1/libmisc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/shadow-4.1.1'
make: *** [all] Error 2

I figure it's the function declaration but I need some help here.

Daniel





More information about the hlfs-dev mailing list