Opened 22 years ago

Closed 22 years ago

Last modified 21 years ago

#363 closed defect (wontfix)

$LFS/static/fileutils fails when compiling on RH-6.2

Reported by: behomet@… Owned by: lfs-book@…
Priority: lowest Milestone:
Component: Book Version: 2.4.4
Severity: normal Keywords:
Cc: behomet@…

Description

I am testing RedHat-6.2 to build CVS. Ran into an issue with fileutils...an interesting one, I don't know how to resolve.

................. OUTPUT:

gcc -g -O2 -static -o chrgp.o chown-core.o ../lib/libfetish.a /usr/bin/../lib/libc.a(atexit.o): In function `atecit': /usr/src/bs/BUILD/glibc-2.1.3/stdlib/atexit.c:27: multiple definition of `atexit' ../lib/libfetish.a(atexit.o):/mnt/lfs/static/fileutils-4.1/lib/atexit.c:9: first defined here /usrbin/ld: Warning size of symbol `atexit' changed from 17 to 37 in atexit.o collect2: ld returned 1 exit status

Scot Mc Pherson

Change History (5)

comment:1 by gerard@…, 22 years ago

We can try the fix we use for re_max_failures by simply renaming all occurances of atexit to something else in fileutils-4.1/lib/atexit.c file. May not work though. If not, probably deeming rh-6.2 too old. Not sure yet, need to check out some more of course.

comment:2 by gerard@…, 22 years ago

Priority: normalhighest

Probably going to deem RH-6.2 too old...

comment:3 by mwelham@…, 22 years ago

Cc: behomet@… added

I've just encountered the same problem on SuSE 7.1 and managed to work around it.

I think it all starts with the 'configure' script failing to find the 'atexit' function on the system and thus including the fileutils version (atexit.c). Come build time, there _is_ a system atexit function, gcc complains and the linker stamps her foot.

I worked around the problem by manually editing the 'configure' generated 'config.h' file and the fileutils 'atexit.c' file. There was line within my 'config.h' file that said something like:

/* #undef HAVE_ATEXIT */

I changed this to:

#define HAVE_EXIT #include <stdlib.h>

(The man page on my system reported the atexit function to be part of stdlib.h.) I then edited the 'atexit.c' in the filutils 'lib' subdirectory and commented out the entire definition of the 'atexit' function. This may not have been necessary but I didn't want to have to wait for the build to fail again just to find out :-)

The package built and installed no problem. I don't kwow if this is a bug in the 'configure' script or a bad/old setup on my SuSE machine. Should it be reported to the fileutil development wizards?

Mike Welham (mwelham@…)

comment:4 by gerard@…, 22 years ago

Priority: highestlowest

comment:5 by gerard@…, 22 years ago

Resolution: wontfix
Status: newclosed

I'd call it a too old of a distro. Not going to do anything with.

Note: See TracTickets for help on using tickets.