This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Symbol version problems compiling glibc for MIPS...


I am attempting to build glibc out of cvs current as of this morning. I
am also using the latest binutils and gcc out of cvs to build a
'mipsel-linux' target. Below is the error message:

make[2]: Entering directory `/opt/glibc-20020115/elf'
mipsel-linux-gcc   -nostdlib -nostartfiles -shared                      \
   -Wl,--verbose 2>&1 |                 \
          sed -e '/^=========/,/^=========/!d;/^=========/d'    \
              -e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
          > /opt/build-glibc/elf/;
mipsel-linux-gcc   -nostdlib -nostartfiles -shared -o /opt/build-glibc/elf/
          /opt/build-glibc/elf/librtld.os -Wl,--version-script=/opt/build-glibc/          \
          -Wl, -T /opt/build-glibc/elf/;
rm -f /opt/build-glibc/elf/
d: /opt/build-glibc/elf/ undefined versioned symbol name __xstat64@GLIBC_2
d: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
rm -f /opt/build-glibc/elf/
ln -s /opt/build-glibc/elf/
make[2]: Leaving directory `/opt/glibc-20020115/elf'
make[1]: *** No rule to make target `/opt/build-glibc/elf/', needed by `/op
t/build-glibc/'.  Stop.
make[1]: Leaving directory `/opt/glibc-20020115'
make: *** [all] Error 2

I have done very little hacking on glibc and would appreciate some help
in my understanding. I grep'd through the entire tree and below are the
files containing '__xstat64'. Files preceded with '-' contain the pattern
in a comment or simply reference it. Files preceded with 'D' contain an
actual definition of it. Finally, the files with a preceding '?' denote
that I don't understand completely how they are used in the build process.
My guess is that something is not quite right in the 'io/Versions' file.

- ChangeLog.10
- ChangeLog.11
- ChangeLog.12
- ChangeLog.9
- elf/dl-load.c
- include/sys/stat.h
- io/sys/stat.h
? io/Versions
- io/ftw64.c
- io/stat64.c
- sysdeps/generic/glob.c
D sysdeps/generic/xstat64.c
- sysdeps/gnu/glob64.c
D sysdeps/mach/hurd/xstat64.c
- sysdeps/posix/pathconf.c
- sysdeps/posix/tempname.c
- sysdeps/unix/grantpt.c
- sysdeps/unix/opendir.c
D sysdeps/unix/sysv/aix/xstat64.c
- sysdeps/unix/sysv/linux/ptsname.c
- sysdeps/unix/sysv/linux/ttyname.c
- sysdeps/unix/sysv/linux/ttyname_r.c
? sysdeps/unix/sysv/linux/arm/Versions
- sysdeps/unix/sysv/linux/xstat.c
D sysdeps/unix/sysv/linux/xstat64.c
? sysdeps/unix/sysv/linux/i386/Versions
- sysdeps/unix/sysv/linux/i386/glob64.c
- sysdeps/unix/sysv/linux/i386/xstat.c
- sysdeps/unix/sysv/linux/ia64/xstat.c
? sysdeps/unix/sysv/linux/m68k/Versions
? sysdeps/unix/sysv/linux/powerpc/Versions
? sysdeps/unix/sysv/linux/s390/s390-32/Versions
D sysdeps/unix/sysv/linux/s390/s390-64/xstat.c
? sysdeps/unix/sysv/linux/sh/Versions
? sysdeps/unix/sysv/linux/sparc/sparc32/Versions
- sysvipc/ftok.c

I plan on contributing code in the future for MIPS platforms, so please
be kind as I work through the learning curve. I own the two volume
set of 'The GNU C Library Reference Manual' books from the FSF. I found
nothing useful concerning this problem in them. The mailing lists archives
did not turn anything up for me either. Thanks.


 Steven J. Hill - Embedded SW Engineer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]