Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99593 - sys-apps/file fails to create magic file
Summary: sys-apps/file fails to create magic file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-19 17:41 UTC by Erik Sundquist
Modified: 2005-09-13 21:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sys-apps/file/files/file-4.15-msdos.patch (file-4.15-msdos.patch,19.59 KB, patch)
2005-08-20 02:13 UTC, Jeremy Huddleston (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Sundquist 2005-07-19 17:41:02 UTC
Fails compiling stage.  Without it no gnome, x11, stuff can be updated.

Reproducible: Always
Steps to Reproduce:
1. emerge -uD world
2.
3.

Actual Results:  
checking for BSD-compatible nm... /usr/bin/x86_64-pc-linux-gnu-nm -B
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes
checking dependency style of x86_64-pc-linux-gnu-g++... gcc3
checking how to run the C++ preprocessor... x86_64-pc-linux-gnu-g++ -E
checking for x86_64-pc-linux-gnu-g77... x86_64-pc-linux-gnu-g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether x86_64-pc-linux-gnu-g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/x86_64-pc-linux-gnu-nm -B output from
x86_64-pc-linux-gnu-gcc object... ok
checking for objdir... .libs
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking if x86_64-pc-linux-gnu-gcc static flag  works... yes
checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking whether the x86_64-pc-linux-gnu-gcc linker
(/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by x86_64-pc-linux-gnu-g++...
/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) is GNU
ld... yes
checking whether the x86_64-pc-linux-gnu-g++ linker
(/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for x86_64-pc-linux-gnu-g++ option to produce PIC... -fPIC
checking if x86_64-pc-linux-gnu-g++ PIC flag -fPIC works... yes
checking if x86_64-pc-linux-gnu-g++ supports -c -o file.o... yes
checking whether the x86_64-pc-linux-gnu-g++ linker
(/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for x86_64-pc-linux-gnu-g77 option to produce PIC... -fPIC
checking if x86_64-pc-linux-gnu-g77 PIC flag -fPIC works... yes
checking if x86_64-pc-linux-gnu-g77 supports -c -o file.o... yes
checking whether the x86_64-pc-linux-gnu-g77 linker
(/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for ANSI C header files... (cached) yes
checking whether sys/types.h defines makedev... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for stdint.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for unistd.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for locale.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sys/utime.h usability... no
checking sys/utime.h presence... no
checking for sys/utime.h... no
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for an ANSI C-conforming const... yes
checking for off_t... yes
checking for size_t... yes
checking for struct stat.st_rdev... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for tm_zone in struct tm... yes
checking for tzname... yes
checking for tm_isdst in struct tm... yes
checking for daylight... yes
checking for special C compiler options needed for large files=
... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for stdlib.h... (cached) yes
checking for mbstate_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for int32_t... yes
checking for long long... yes
checking for uint64_t... yes
checking size of uint8_t... 1
checking size of uint16_t... 2
checking size of uint32_t... 4
checking size of uint64_t... 8
checking for mmap... yes
checking for strerror... yes
checking for strtoul... yes
checking for mbrtowc... yes
checking for mkstemp... yes
checking for getopt_long... yes
checking for utimes... yes
checking for utime... yes
checking for wcwidth... yes
checking for gzopen in -lz... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating magic/Makefile
config.status: creating doc/Makefile
config.status: creating python/Makefile
config.status: creating config.h
config.status: executing depfiles commands
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/file-4.14/work/file-4.14'
Making all in src
make[2]: Entering directory `/var/tmp/portage/file-4.14/work/file-4.14/src'
if /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I..  -DMAGIC='"/usr/share/misc/file/magic"'   -O3
-march=athlon64 -pipe -fomit-frame-pointer -MT magic.lo -MD -MP -MF
".deps/magic.Tpo" -c -o magic.lo magic.c; \
then mv -f ".deps/magic.Tpo" ".deps/magic.Plo"; else rm -f ".deps/magic.Tpo";
exit 1; fi
if /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I..  -DMAGIC='"/usr/share/misc/file/magic"'   -O3
-march=athlon64 -pipe -fomit-frame-pointer -MT apprentice.lo -MD -MP -MF
".deps/apprentice.Tpo" -c -o apprentice.lo apprentice.c; \
then mv -f ".deps/apprentice.Tpo" ".deps/apprentice.Plo"; else rm -f
".deps/apprentice.Tpo"; exit 1; fi
mkdir .libs
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT magic.lo -MD -MP -MF .deps/magic.Tpo -c magic.c  -fPIC
-DPIC -o .libs/magic.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT apprentice.lo -MD -MP -MF .deps/apprentice.Tpo -c
apprentice.c  -fPIC -DPIC -o .libs/apprentice.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT magic.lo -MD -MP -MF .deps/magic.Tpo -c magic.c -o
magic.o >/dev/null 2>&1
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT apprentice.lo -MD -MP -MF .deps/apprentice.Tpo -c
apprentice.c -o apprentice.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I..  -DMAGIC='"/usr/share/misc/file/magic"'   -O3
-march=athlon64 -pipe -fomit-frame-pointer -MT softmagic.lo -MD -MP -MF
".deps/softmagic.Tpo" -c -o softmagic.lo softmagic.c; \
then mv -f ".deps/softmagic.Tpo" ".deps/softmagic.Plo"; else rm -f
".deps/softmagic.Tpo"; exit 1; fi
if /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I..  -DMAGIC='"/usr/share/misc/file/magic"'   -O3
-march=athlon64 -pipe -fomit-frame-pointer -MT ascmagic.lo -MD -MP -MF
".deps/ascmagic.Tpo" -c -o ascmagic.lo ascmagic.c; \
then mv -f ".deps/ascmagic.Tpo" ".deps/ascmagic.Plo"; else rm -f
".deps/ascmagic.Tpo"; exit 1; fi
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT softmagic.lo -MD -MP -MF .deps/softmagic.Tpo -c
softmagic.c  -fPIC -DPIC -o .libs/softmagic.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT ascmagic.lo -MD -MP -MF .deps/ascmagic.Tpo -c
ascmagic.c  -fPIC -DPIC -o .libs/ascmagic.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT softmagic.lo -MD -MP -MF .deps/softmagic.Tpo -c
softmagic.c -o softmagic.o >/dev/null 2>&1
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT ascmagic.lo -MD -MP -MF .deps/ascmagic.Tpo -c
ascmagic.c -o ascmagic.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I..  -DMAGIC='"/usr/share/misc/file/magic"'   -O3
-march=athlon64 -pipe -fomit-frame-pointer -MT compress.lo -MD -MP -MF
".deps/compress.Tpo" -c -o compress.lo compress.c; \
then mv -f ".deps/compress.Tpo" ".deps/compress.Plo"; else rm -f
".deps/compress.Tpo"; exit 1; fi
if /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I..  -DMAGIC='"/usr/share/misc/file/magic"'   -O3
-march=athlon64 -pipe -fomit-frame-pointer -MT is_tar.lo -MD -MP -MF
".deps/is_tar.Tpo" -c -o is_tar.lo is_tar.c; \
then mv -f ".deps/is_tar.Tpo" ".deps/is_tar.Plo"; else rm -f ".deps/is_tar.Tpo";
exit 1; fi
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT compress.lo -MD -MP -MF .deps/compress.Tpo -c
compress.c  -fPIC -DPIC -o .libs/compress.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT is_tar.lo -MD -MP -MF .deps/is_tar.Tpo -c is_tar.c 
-fPIC -DPIC -o .libs/is_tar.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT compress.lo -MD -MP -MF .deps/compress.Tpo -c
compress.c -o compress.o >/dev/null 2>&1
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT is_tar.lo -MD -MP -MF .deps/is_tar.Tpo -c is_tar.c -o
is_tar.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I..  -DMAGIC='"/usr/share/misc/file/magic"'   -O3
-march=athlon64 -pipe -fomit-frame-pointer -MT readelf.lo -MD -MP -MF
".deps/readelf.Tpo" -c -o readelf.lo readelf.c; \
then mv -f ".deps/readelf.Tpo" ".deps/readelf.Plo"; else rm -f
".deps/readelf.Tpo"; exit 1; fi
if /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I..  -DMAGIC='"/usr/share/misc/file/magic"'   -O3
-march=athlon64 -pipe -fomit-frame-pointer -MT print.lo -MD -MP -MF
".deps/print.Tpo" -c -o print.lo print.c; \
then mv -f ".deps/print.Tpo" ".deps/print.Plo"; else rm -f ".deps/print.Tpo";
exit 1; fi
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT print.lo -MD -MP -MF .deps/print.Tpo -c print.c  -fPIC
-DPIC -o .libs/print.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT print.lo -MD -MP -MF .deps/print.Tpo -c print.c -o
print.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I..  -DMAGIC='"/usr/share/misc/file/magic"'   -O3
-march=athlon64 -pipe -fomit-frame-pointer -MT fsmagic.lo -MD -MP -MF
".deps/fsmagic.Tpo" -c -o fsmagic.lo fsmagic.c; \
then mv -f ".deps/fsmagic.Tpo" ".deps/fsmagic.Plo"; else rm -f
".deps/fsmagic.Tpo"; exit 1; fi
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT readelf.lo -MD -MP -MF .deps/readelf.Tpo -c readelf.c 
-fPIC -DPIC -o .libs/readelf.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT fsmagic.lo -MD -MP -MF .deps/fsmagic.Tpo -c fsmagic.c 
-fPIC -DPIC -o .libs/fsmagic.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT fsmagic.lo -MD -MP -MF .deps/fsmagic.Tpo -c fsmagic.c
-o fsmagic.o >/dev/null 2>&1
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT readelf.lo -MD -MP -MF .deps/readelf.Tpo -c readelf.c
-o readelf.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I..  -DMAGIC='"/usr/share/misc/file/magic"'   -O3
-march=athlon64 -pipe -fomit-frame-pointer -MT funcs.lo -MD -MP -MF
".deps/funcs.Tpo" -c -o funcs.lo funcs.c; \
then mv -f ".deps/funcs.Tpo" ".deps/funcs.Plo"; else rm -f ".deps/funcs.Tpo";
exit 1; fi
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT funcs.lo -MD -MP -MF .deps/funcs.Tpo -c funcs.c  -fPIC
-DPIC -o .libs/funcs.o
if /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I..  -DMAGIC='"/usr/share/misc/file/magic"'   -O3
-march=athlon64 -pipe -fomit-frame-pointer -MT apptype.lo -MD -MP -MF
".deps/apptype.Tpo" -c -o apptype.lo apptype.c; \
then mv -f ".deps/apptype.Tpo" ".deps/apptype.Plo"; else rm -f
".deps/apptype.Tpo"; exit 1; fi
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT funcs.lo -MD -MP -MF .deps/funcs.Tpo -c funcs.c -o
funcs.o >/dev/null 2>&1
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. 
-DMAGIC='"/usr/share/misc/file/magic"'   -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT file.o -MD -MP -MF ".deps/file.Tpo" -c -o file.o file.c; \
then mv -f ".deps/file.Tpo" ".deps/file.Po"; else rm -f ".deps/file.Tpo"; exit 1; fi
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT apptype.lo -MD -MP -MF .deps/apptype.Tpo -c apptype.c 
-fPIC -DPIC -o .libs/apptype.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..
-DMAGIC=\"/usr/share/misc/file/magic\" -O3 -march=athlon64 -pipe
-fomit-frame-pointer -MT apptype.lo -MD -MP -MF .deps/apptype.Tpo -c apptype.c
-o apptype.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc  -O3
-march=athlon64 -pipe -fomit-frame-pointer   -o libmagic.la -rpath /usr/lib64
-version-info 1:0:0 magic.lo apprentice.lo softmagic.lo ascmagic.lo compress.lo
is_tar.lo readelf.lo print.lo fsmagic.lo funcs.lo apptype.lo  -lz
x86_64-pc-linux-gnu-gcc -shared  .libs/magic.o .libs/apprentice.o
.libs/softmagic.o .libs/ascmagic.o .libs/compress.o .libs/is_tar.o
.libs/readelf.o .libs/print.o .libs/fsmagic.o .libs/funcs.o .libs/apptype.o  -lz
 -march=athlon64 -Wl,-soname -Wl,libmagic.so.1 -o .libs/libmagic.so.1.0.0
(cd .libs && rm -f libmagic.so.1 && ln -s libmagic.so.1.0.0 libmagic.so.1)
(cd .libs && rm -f libmagic.so && ln -s libmagic.so.1.0.0 libmagic.so)
x86_64-pc-linux-gnu-ar cru .libs/libmagic.a  magic.o apprentice.o softmagic.o
ascmagic.o compress.o is_tar.o readelf.o print.o fsmagic.o funcs.o apptype.o
x86_64-pc-linux-gnu-ranlib .libs/libmagic.a
creating libmagic.la
(cd .libs && rm -f libmagic.la && ln -s ../libmagic.la libmagic.la)
/bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc  -O3
-march=athlon64 -pipe -fomit-frame-pointer   -o file  file.o libmagic.la -lz
x86_64-pc-linux-gnu-gcc -O3 -march=athlon64 -pipe -fomit-frame-pointer -o
.libs/file file.o  ./.libs/libmagic.so -lz
creating file
make[2]: Leaving directory `/var/tmp/portage/file-4.14/work/file-4.14/src'
Making all in doc
make[2]: Entering directory `/var/tmp/portage/file-4.14/work/file-4.14/doc'
sed -e s@__CSECTION__@1@g \
    -e s@__FSECTION__@4@g \
    -e s@__VERSION__@4.14@g \
    -e s@__MAGIC__@/usr/share/misc/file/magic@g ./file.man > file.1
sed -e s@__CSECTION__@1@g \
    -e s@__FSECTION__@4@g \
    -e s@__VERSION__@4.14@g \
    -e s@__MAGIC__@/usr/share/misc/file/magic@g ./magic.man > magic.4
sed -e s@__CSECTION__@1@g \
    -e s@__FSECTION__@4@g \
    -e s@__VERSION__@4.14@g \
    -e s@__MAGIC__@/usr/share/misc/file/magic@g ./libmagic.man > libmagic.3
make[2]: Leaving directory `/var/tmp/portage/file-4.14/work/file-4.14/doc'
Making all in python
make[2]: Entering directory `/var/tmp/portage/file-4.14/work/file-4.14/python'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/file-4.14/work/file-4.14/python'
make[2]: Entering directory `/var/tmp/portage/file-4.14/work/file-4.14'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/var/tmp/portage/file-4.14/work/file-4.14'
make[1]: Leaving directory `/var/tmp/portage/file-4.14/work/file-4.14'
make: Entering directory `/var/tmp/portage/file-4.14/work/file-4.14/magic'
cat ./Header ./Localstuff > magic
for frag in Magdir/acorn Magdir/adi Magdir/adventure Magdir/allegro
Magdir/alliant Magdir/alpha Magdir/amanda Magdir/amigaos Magdir/animation
Magdir/apl Magdir/apple Magdir/applix Magdir/archive Magdir/asterix Magdir/att3b
Magdir/audio Magdir/bFLT Magdir/blender Magdir/blit Magdir/bout Magdir/bsdi
Magdir/cad Magdir/c-lang Magdir/c64 Magdir/cddb Magdir/chi Magdir/chord
Magdir/cisco Magdir/citrus Magdir/claris Magdir/clipper Magdir/spec
Magdir/commands Magdir/communications Magdir/compress Magdir/console
Magdir/convex Magdir/ctags Magdir/dact Magdir/database Magdir/diamond
Magdir/diff Magdir/digital Magdir/dolby Magdir/dump Magdir/editors Magdir/elf
Magdir/encore Magdir/epoc Magdir/esri Magdir/fcs Magdir/filesystems Magdir/flash
Magdir/fonts Magdir/frame Magdir/freebsd Magdir/fsav Magdir/games Magdir/geos
Magdir/gcc Magdir/gimp Magdir/gnu Magdir/grace Magdir/gringotts Magdir/hdf
Magdir/hitachi-sh Magdir/hp Magdir/human68k Magdir/ibm370 Magdir/ibm6000
Magdir/iff Magdir/images Magdir/intel Magdir/interleaf Magdir/island
Magdir/ispell Magdir/java Magdir/jpeg Magdir/karma Magdir/lecter Magdir/lex
Magdir/lif Magdir/linux Magdir/lisp Magdir/mach Magdir/macintosh Magdir/magic
Magdir/mail.news Magdir/maple Magdir/mathematica Magdir/matroska Magdir/mcrypt
Magdir/mime Magdir/mips Magdir/mirage Magdir/misctools Magdir/mkid Magdir/mlssa
Magdir/mmdf Magdir/modem Magdir/motorola Magdir/msdos Magdir/msvc Magdir/natinst
Magdir/ncr Magdir/netbsd Magdir/netscape Magdir/news Magdir/nitpicker
Magdir/ocaml Magdir/octave Magdir/olf Magdir/os2 Magdir/os9 Magdir/osf1
Magdir/palm Magdir/parix Magdir/pbm Magdir/pdf Magdir/pdp Magdir/perl Magdir/pgp
Magdir/pkgadd Magdir/plan9 Magdir/plus5 Magdir/printer Magdir/project
Magdir/psdbms Magdir/psion Magdir/pulsar Magdir/pyramid Magdir/python
Magdir/revision Magdir/riff Magdir/rpm Magdir/rtf Magdir/sc Magdir/sccs
Magdir/sendmail Magdir/sequent Magdir/sgi Magdir/sgml Magdir/sharc
Magdir/sinclair Magdir/sketch Magdir/smalltalk Magdir/sniffer Magdir/dyadic
Magdir/softquad Magdir/spectrum Magdir/sql Magdir/sun Magdir/sysex Magdir/teapot
Magdir/terminfo Magdir/tex Magdir/tgif Magdir/ti-8x Magdir/timezone Magdir/troff
Magdir/tuxedo Magdir/typeset Magdir/unknown Magdir/uuencode Magdir/varied.out
Magdir/varied.script Magdir/vax Magdir/vicar Magdir/virtutech Magdir/visx
Magdir/vms Magdir/vmware Magdir/vorbis Magdir/vxl Magdir/wordprocessors
Magdir/xdelta Magdir/xenix Magdir/xo65 Magdir/xwindows Magdir/zilog
Magdir/zyxel; do \
  if test -f ./$frag; then \
    f=./$frag; \
  else \
    f=$frag; \
  fi; \
          cat $f; \
done >> magic
../src/file -C -m ./magic.mime
../src/file -C -m magic
magic, 7667: Warning type `search/0x140 \x0\x40\x1\x0' invalid
magic, 7668: Warning missing ')' in indirect offset
magic, 7668: Warning type `)) string MSCF \b, WinHKI CAB self-extracting
archive' invalid
magic, 7693: Warning type `search/0x140 PEC2 \b, PECompact2 compressed' invalid
magic, 7694: Warning type `search/0x140 UPX2' invalid
magic, 7695: Warning missing ')' in indirect offset
magic, 7695: Warning type `-4)) string          PK\3\4 \b, ZIP self-extracting
archive (Info-Zip)' invalid
magic, 7696: Warning type `search/0x140 .idata' invalid
magic, 7697: Warning missing ')' in indirect offset
magic, 7697: Warning type `-4)) string          PK\3\4 \b, ZIP self-extracting
archive (Info-Zip)' invalid
magic, 7698: Warning missing ')' in indirect offset
magic, 7698: Warning type `-4)) string          ZZ0 \b, ZZip self-extracting
archive' invalid
magic, 7699: Warning missing ')' in indirect offset
magic, 7699: Warning type `-4)) string          ZZ1 \b, ZZip self-extracting
archive' invalid
magic, 7700: Warning type `search/0x140 .rsrc' invalid
magic, 7701: Warning missing ')' in indirect offset
magic, 7701: Warning type `-4)) string          a\\\4\5 \b, WinHKI
self-extracting archive' invalid
magic, 7702: Warning missing ')' in indirect offset
magic, 7702: Warning type `-4)) string          Rar! \b, RAR self-extracting
archive' invalid
magic, 7703: Warning missing ')' in indirect offset
magic, 7703: Warning type `-4)) search/0x3000   MSCF \b, InstallShield
self-extracting archive' invalid
magic, 7704: Warning missing ')' in indirect offset
magic, 7704: Warning type `-4)) search/32       Nullsoft \b, Nullsoft Installer
self-extracting archive' invalid
magic, 7705: Warning type `search/0x140 .data' invalid
magic, 7707: Warning type `search/0x140 .petite\0 \b, Petite compressed'
invalidmagic, 7709: Warning missing ')' in indirect offset
magic, 7709: Warning type `-4)) string          =!sfx! \b, ACE self-extracting
archive' invalid
magic, 7710: Warning type `search/0x140 .WISE \b, WISE installer self-extracting
archive' invalid
magic, 7711: Warning type `search/0x140 .dz\0\0\0 \b, Dzip self-extracting
archive' invalid
magic, 7712: Warning type `search/0x140 .reloc' invalid
magic, 7713: Warning missing ')' in indirect offset
magic, 7713: Warning type `-4)) search/0x180    PK\3\4 \b, ZIP self-extracting
archive (WinZip)' invalid
magic, 7715: Warning offset `(0x3c.l+0xf8)      search/0x100    _winzip_ \b, ZIP
self-extracting archive (WinZip)' invalid
magic, 7715: Warning type `(0x3c.l+0xf8)        search/0x100    _winzip_ \b, ZIP
self-extracting archive (WinZip)' invalid
magic, 7716: Warning offset `(0x3c.l+0xf8)      search/0x100    SharedD \b,
Microsoft Installer self-extracting archive' invalid
magic, 7716: Warning type `(0x3c.l+0xf8)        search/0x100    SharedD \b,
Microsoft Installer self-extracting archive' invalid
magic, 7728: Warning offset `(&0x24.s-1)                string          ARJSFX
\b, ARJ self-extracting archive' invalid
magic, 7728: Warning type `(&0x24.s-1)          string          ARJSFX \b, ARJ
self-extracting archive' invalid
magic, 7729: Warning type `search/0x80  WinZip(R)\ Self-Extractor \b, ZIP
self-extracting archive (WinZip)' invalid
magic, 7746: Warning offset `(&0x54.l-3)                string          arjsfx
\b, ARJ self-extracting archive' invalid
magic, 7746: Warning type `(&0x54.l-3)          string          arjsfx \b, ARJ
self-extracting archive' invalid
magic, 7754: Warning type `search/0x100 DOS/4G for MS-DOS, DOS4GW DOS extender'
invalid
magic, 7755: Warning type `search/0x200 WATCOM\ C/C++ for MS-DOS, DOS4GW DOS
extender' invalid
magic, 7756: Warning type `search/0x100 CauseWay\ DOS\ Extender for MS-DOS,
CauseWay DOS extender' invalid
magic, 7757: Warning type `search/0x40  PMODE/W for MS-DOS, PMODE/W DOS
extender' invalid
magic, 7758: Warning type `search/0x40  STUB/32A for MS-DOS, DOS/32A DOS
extender (stub)' invalid
magic, 7759: Warning type `search/0x80  STUB/32C for MS-DOS, DOS/32A DOS
extender (configurable stub)' invalid
magic, 7760: Warning type `search/0x80  DOS/32A for MS-DOS, DOS/32A DOS extender
(embedded)' invalid
magic, 7764: Warning type `search/8     3\xdbf\xb9 \b, 32Lite compressed' invalid
magic, 7772: Warning offset `(&0x54.l-3)                string          UNACE
\b, ACE self-extracting archive' invalid
magic, 7772: Warning type `(&0x54.l-3)          string          UNACE \b, ACE
self-extracting archive' invalid
magic, 7783: Warning offset `(2.s-514)  string  !LE' invalid
magic, 7783: Warning type `(2.s-514)    string  !LE' invalid
magic, 7785: Warning offset `(2.s-514)  string  LE LE executable' invalid
magic, 7785: Warning type `(2.s-514)    string  LE LE executable' invalid
magic, 7786: Warning type `search/0x100 DOS/4G for MS-DOS, DOS4GW DOS extender'
invalid
magic, 7790: Warning offset `(2.s-514)  string  BW' invalid
magic, 7790: Warning type `(2.s-514)    string  BW' invalid
magic, 7791: Warning type `search/0x100 DOS/4G LE executable for MS-DOS, DOS4GW
DOS extender (embedded)' invalid
magic, 7792: Warning type `search/0x100 !DOS/4G BW executable collection for
MS-DOS' invalid
magic, 7799: Warning offset `(&0x42.l-3)        byte            x ' invalid
magic, 7799: Warning type `(&0x42.l-3)  byte            x ' invalid
magic, 7802: Warning type `search/0xa0  .text' invalid
magic, 7836: Warning offset `(2.s-517)  byte    x ' invalid
magic, 7836: Warning type `(2.s-517)    byte    x ' invalid
magic, 7843: Warning type `search/400   **ACE** \b, ACE self-extracting archive'
invalid
magic, 7844: Warning type `search/0x480 UC2SFX\ Header \b, UC2 self-extracting
archive' invalid
magic, 7848: Warning type `search/0xe0  aRJsfX \b, ARJ self-extracting archive'
invalid
magic, 7853: Warning type `search/0x20  PKSFX \b, ZIP self-extracting archive
(PKZIP)' invalid
magic, 7876: Warning type `search/0xa   \xfc\x57\xf3\xa5\xc3    COM executable
for MS-DOS' invalid
magic, 7877: Warning type `search/0xa   \xfc\x57\xf3\xa4\xc3    COM executable
for MS-DOS' invalid
magic, 7878: Warning type `search/0x10  \x50\xa4\xff\xd5\x73    \b, aPack
compressed' invalid
lt-file: could not find any magic files!
make: *** [magic.mgc] Error 255
make: Leaving directory `/var/tmp/portage/file-4.14/work/file-4.14/magic'

!!! ERROR: sys-apps/file-4.14 failed.
!!! Function src_compile, Line 54, Exitcode 2
!!! emake magic failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2005-07-19 22:16:32 UTC
need to include the output from "emerge --info"
Comment 2 Erik Sundquist 2005-07-19 22:25:04 UTC
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.11-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=athlon64 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon64 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://192.168.0.100/portage"
USE="amd64 X aac alsa arts artworkextra audiofile avi berkdb bitmap-fonts
blender-game bonobo bzip2 cddb cdio cdparanoia cdr cdrom crypt css cups curl dga
dlloader dts dvd dvdr dvdread eds emul-linux-x86 encode esd fam ffmpeg flac
foomaticdb fortran ftp ggi gif gnome gpm gstreamer gtk gtk2 gtkhtml i8x0
imagemagick imlib ipv6 java jpeg jpeg2k junit kde kdeenablefinal lzw lzw-tiff
mad memlimit mjpeg mozilla mp3 mpeg mpeg2 mpeg4 mplayer ncurses network nls ogg
opengl pam pdflib perl png python qt quicktime readline rtc samba sdl silverxp
slang smp softmmu spell ssl tcpd tga threads tiff toolbar transcode
truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vorbis xine xml xml2
xpm xscreensaver xv xvid yv12 zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-07-20 00:08:53 UTC
Does it work with MAKEOPTS="-j1" ?
Comment 4 Erik Sundquist 2005-07-20 10:10:23 UTC
Does it work with MAKEOPTS="-j1"

Not it still fails with the same errors.
Comment 5 Aurelien Minet 2005-07-20 10:56:12 UTC
Same problem but on a different config : ~x86.
( MAKEOPTS="-j1" doesn't help too)

It is not a compilation problem. just run "../src/file -C -m magic" in 
/var/tmp/portage/file-4.14/work/file-4.14/magic , it return an error "lt-file:
could not find any magic files" 

I tested the actual magic file : "../src/file -C -m /usr/share/misc/file/magic"
and it run without error. So the file magic is the problem. It is generated by :
for frag in Magdir/acorn Magdir/adi Magdir/[......] Magdir/xwindows Magdir/zilog
Magdir/zyxel; do   if test -f ./$frag; then     f=./$frag;   else     f=$frag; 
 fi; cat $f; done >> magic

The problem may comes from a file in Magdir, I remove Magdir/msdos, run again
the creation of magic and "../src/file -C -m magic"  goes well .
The warning starts at line 71 from msdos but I don't understant why ...
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2005-07-21 00:54:53 UTC
Dunno, it builds without a warning in the magic stuff over here on my amd64.
Comment 7 Navin Kumar 2005-08-14 09:03:52 UTC
I've been having the exact same problem on my Pentium M computer, so this 
problem is definitely not hardware specific.  
 
emerge info: 
 
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 
2.6.12.3 i686) 
================================================================= 
System uname: 2.6.12.3 i686 Intel(R) Pentium(R) M processor 1400MHz 
Gentoo Base System version 1.12.0_pre5 
dev-lang/python:     2.3.5, 2.4.1-r1 
sys-apps/sandbox:    1.2.12 
sys-devel/autoconf:  2.13, 2.59-r7 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 
sys-devel/binutils:  2.16.1 
sys-devel/libtool:   1.5.18-r1 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-O3 -march=pentium-m -funroll-loops -fprefetch-loop-arrays -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" 
CXXFLAGS="-O3 -march=pentium-m -funroll-loops -fprefetch-loop-arrays -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com http://gentoo.noved.org/ 
http://gentoo.ccccom.com http://mirror.tucdemonic.org/gentoo/ 
http://www.gtlib.cc.gatech.edu/pub/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 X aac aalib acl alsa arts avi berkdb bitmap-fonts bluetooth cdda cddb 
cdparanoia cdr crypt cscope cups curl directfb divx4linux dts dvd eds emboss 
encode esd f77 fam fbcon ffmpeg flac foomaticdb fortran gcj gd gdbm gif 
gphoto2 gpm gstreamer gtk gtk2 hal httpd i8x0 imagemagick imlib ipv6 irda jack 
java javascript joystick jpeg junit kde krb4 ldap libcaca libg++ libwww live 
mad matroska mikmod mmx mmx2 motif mp3 mpeg mpeg2 mysql ncurses nls objc ogg 
oggvorbis opengl oss pam pdflib perl plotutils png pnp postgres python qt 
quicktime readline real rtc ruby samba scanner sdk sdl slang softmmu speex 
spell sse sse2 ssl stream svg svga tcltk tcpd tetex theora tiff truetype 
truetype-fonts trusted type1-fonts usb v4l v4l2 vcd vim-with-x vorbis wifi wmf 
wxwindows wxwindowsa xine xinerama xml xml2 xmms xosd xv xvid zlib 
video_cards_radeon userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS 
 
 
 
Comment 8 Aurelien Minet 2005-08-18 09:08:01 UTC
I have just retring to merging it and it build !
I don't understand why and know what I did (except emerge uDv world, building
new kernel and rebooting...).
No problem with sys-apps/file for me now.
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2005-08-20 02:05:40 UTC
This is happening on my systems now as well (amd64, sparc, and x86).  4.13 still
builds on amd64 and x86, but it fails with a different reason on sparc.

Executing the following in the directory of the error produces the same error:
/usr/bin/file -C -m magic

/usr/bin/file is the 4.13 version, so the problem seems to be in the one of the
magic files
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2005-08-20 02:13:27 UTC
Created attachment 66372 [details, diff]
sys-apps/file/files/file-4.15-msdos.patch

The problem seems to be in the msdos magic file... This patch reverts the
changes back to the version included with 4.13, and now it merges cleanly
here... I don't really have the time to track it further than this, so
hopefully someone can run with this info...
Comment 11 SpanKY gentoo-dev 2005-08-20 19:17:42 UTC
Comment on attachment 66372 [details, diff]
sys-apps/file/files/file-4.15-msdos.patch

pretty sure this is wrong
Comment 12 Jeremy Huddleston (RETIRED) gentoo-dev 2005-08-20 21:15:48 UTC
vapier: care to elaborate on why you think my conclusion is wrong?

4.13 and previous merge fine for me.
Replacing the msdos magic file in 4.14 and 4.15 with the one in 4.13 (what that patch does, although 
granted it is overkill) cause it to work for me.
Look at the lines that are failing file -C -m magic.  They are from msdos.

So all the evidence points to a change in the msdos magic data.  I don't expect that patch to be used for 
anything more than a starting point for someone else to find the real problem as I don't have time for this 
right now, but it most certainly is a problem there, and hopefully others with the problem will mention 
whether or not this workaround works for them as well...
Comment 13 SpanKY gentoo-dev 2005-08-20 21:37:25 UTC
probably because it without a problem for other people

copy the magic libs in ${S}/src/.libs/ to /usr/lib/ and the file compile should
work fine
Comment 14 Jeremy Huddleston (RETIRED) gentoo-dev 2005-08-21 09:58:21 UTC
Ok, you're right, it's using the installed libs instead... so something's wrong
with the libtool script there because doing it manually works:
LD_LIBRARY_PATH=../src/.libs ../src/.libs/lt-file -C -m magic
Comment 15 SpanKY gentoo-dev 2005-08-21 11:32:23 UTC
a guy heavily analyzed the libtool stuff in Bug 81974, but at the time i added a
workaround rather than addressing the underlying issue
Comment 16 Jeremy Huddleston (RETIRED) gentoo-dev 2005-08-21 12:22:51 UTC
Ok, well this workaround solves the problem for me, so I'd recommend using it
until libtool itself gets fixed:

-       emake || die "emake failed"
+       LD_LIBRARY_PATH="${S}/src/.libs:${LD_LIBRARY_PATH}" emake || die "emake
failed"

libtool-1.5.18 still has this bug (redid libtoolize, aclocal, etc to test).
Comment 17 Michael Hill 2005-09-02 11:31:16 UTC
Whaddya know...  libtool turned up in my 'emerge -u world'.  So I tried 'emerge
file' again, and it worked!  Looks like the libtool update fixed the problem.
Comment 18 Michael Hill 2005-09-09 08:58:11 UTC
Well, it seems I spoke too soon.  :^(   One of my systems happily upgraded file
to 4.15, but another still has the build problem, despite both being at
libtool-1.5.20 .  So I'm still having this problem on at least one system, and
it doesn't appear to be fixed by the new libtool.
Comment 19 Jeremy Huddleston (RETIRED) gentoo-dev 2005-09-09 18:08:48 UTC
Michael, just use the patch I put in comment #16

spanky: Why not put in that workaround...
Comment 20 SpanKY gentoo-dev 2005-09-09 23:32:13 UTC
because it's an ugly hack and i'd prefer to find out why this is happening ?

it doesnt happen for everyone, so i wonder what the difference is ...
Comment 21 Jeremy Huddleston (RETIRED) gentoo-dev 2005-09-10 02:16:23 UTC
It's not happening for everyone because not everyone has LD_LIBRARY_PATH set in
their environment.  unsetting it prior to the emerge is also another way to
avoid the bug.
Comment 22 SpanKY gentoo-dev 2005-09-11 20:55:29 UTC
it works for me even if i set LD_LIBRARY_PATH before hand:
# export LD_LIBRARY_PATH=/asdf
# emerge =file-4.12
# emerge file
Comment 23 Jeremy Huddleston (RETIRED) gentoo-dev 2005-09-11 21:37:15 UTC
vapier, try:
# export LD_LIBRARY_PATH=/usr/lib:/lib
# emerge =file-4.12
# emerge file
Comment 24 SpanKY gentoo-dev 2005-09-12 17:47:36 UTC
thanks, that triggered it
Comment 25 SpanKY gentoo-dev 2005-09-12 18:28:21 UTC
ok, we can easily patch libtool like this:

   if test -f "$progdir/$program"; then
     if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
       # Run the actual program with our arguments.
+      if test -n "${LD_LIBRARY_PATH+set}"; then
+        export LD_LIBRARY_PATH=$progdir:${LD_LIBRARY_PATH}
+      fi
 
       exec $progdir/$program ${1+"$@"}
 

but it sort of begs the question, why are people f-ing around with
LD_LIBRARY_PATH ?  setting it to /usr/lib and /lib is clearly wrong imho
Comment 26 SpanKY gentoo-dev 2005-09-13 21:43:13 UTC
talked with az and added proposed patch to file