bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fileutils 4.0


From: elysium
Subject: fileutils 4.0
Date: Mon, 15 Jan 2001 10:35:44 -0800

Hello,

I am having two problems with fileutils 4.0 from
ftp.gnu.org/pub/gnu/fileutils/fileutils-4.0.tar.gz

A bit about my enviornment. Anything more you need?
# ls -l /lib/libc.so.6
<cutcut> libc.so.6 -> libc-2.2.so*
# make --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i586-pc-linux-gnu
# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
gcc version 2.95.2 20000220 (Debian GNU/Linux)

The first problem is with fileutils/src/dircolors.c

It fails to compile unless I comment out line 40
char *strndup();

errors are
<snip>
dircolors.c:40: macro `strndup' used without args
make[2]: *** [dircolors.o] Error 1
make[2]: Leaving directory `/usr/local/src/cvs/lnxs/bin/fileutils-4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/cvs/lnxs/bin/fileutils-4.0'
make: *** [all-recursive-am] Error 2

 
After I comment out line 40 it compiles and seems to function correctly.

The second error I have is if I change things to compile with -static.
In fileutils/configure I changed CFLAGS to add -static
---- start change ----
  elif test $ac_cv_prog_cc_g = yes; then
    CFLAGS="-g -O2 -static"
  else
    CFLAGS="-O2 -static"
---- end change ----

This fails with the following:
---- start errors ----
gcc  -g -O2 -static  -o chgrp  chgrp.o ../intl/libintl.a ../lib/libfu.a 
/usr/lib/libc.a(dcigettext.o)(.rodata+0x0): multiple definition of 
`_nl_default_default_domain'
../intl/libintl.a(dcgettext.o):/usr/local/src/cvs/lnxs/bin/fileutils-4.0/intl/dcgettext.c:238:
 first defined here
/usr/lib/libc.a(dcigettext.o)(.data+0x0): multiple definition of 
`_nl_current_default_domain'
../intl/libintl.a(dcgettext.o):<longpathsnip>/fileutils-4.0/intl/dcgettext.c:238:
 first defined here
/usr/lib/libc.a(dcigettext.o)(.rodata+0x9): multiple definition of 
`_nl_default_dirname'
../intl/libintl.a(dcgettext.o):<longpathsnip>/fileutils-4.0/intl/dcgettext.c:238:
 first defined here
/usr/bin/ld: Warning: size of symbol `_nl_default_dirname' changed from 24 to 
18 in dcigettext.o
collect2: ld returned 1 exit status
make[2]: *** [chgrp] Error 1
make[2]: Leaving directory `/usr/local/src/cvs/lnxs/bin/fileutils-4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/cvs/lnxs/bin/fileutils-4.0'
make: *** [all-recursive-am] Error 2

---- end errors ----
doing a 'gcc -g -O2 -static -o chgrp chgrp.o ../lib/libfu.a' works fine,
however. It compiles without error and the programs that it makes
function correctly when I tested them.

Is there a way to compile with both -static and libintl.a?
Is there a way to automatically get it to compile with static?
-- 
David Schmitt
(address@hidden)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]