This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu 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]

Cross-compiling glibc 2.2.x: gnu/lib-names.h is empty


Hi!

I'm trying to set up sparc-solaris -> arm-linux cross toolchain. I've
successfully compiled cross-binutils and cross-ggc, bur I can't compile
glibc.

I've run configure with "../../src/glibc-2.2.1/configure arm-linux
--prefix=/home/hades/b/ifi-hf/havardw/arm/arm-linux --enable-add-ons
--with-headers=/home/hades/b/ifi-hf/havardw/arm/src/linux/include"
for compilation in a separate build directory, and used a similar
configure line for  build of 2.2.2 in the source directory.

I get the error included below ("`LIBNSS_FILES_SO' undeclared here") when
I compile nss/nsswitch.c, and from what I understand this macro is
supposed to be defined in gnu/lib-names.h, but this file is empty (apart
from the standard includes to only include the file once).

Does anyone know why this file isn't generated, or how I can force it to
be made?

-----------------------------------------------------------------------
make[2]: Entering directory
`/home/hades/b/ifi-hf/havardw/arm/src/glibc-2.2.1/nss'
arm-linux-gcc nsswitch.c -c -O2 -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -g      -I../include -I.
-I/home/hades/b/ifi-hf/havardw/arm/build/glibc-2.2.1/nss -I.. -I../libio
-I/home/hades/b/ifi-hf/havardw/arm/build/glibc-2.2.1 -I../sysdeps/arm/elf
-I../linuxthreads/sysdeps/unix/sysv/linux
-I../linuxthreads/sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/arm
-I../sysdeps/unix/sysv/linux/arm -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/arm
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/arm/fpu -I../sysdeps/arm
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf
-I../sysdeps/generic  -nostdinc -isystem
/home/hades/b/ifi-hf/havardw/arm/lib/gcc-lib/arm-linux/2.95.2/include
-isystem /home/hades/b/ifi-hf/havardw/arm/src/linux/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h     -o
/home/hades/b/ifi-hf/havardw/arm/build/glibc-2.2.1/nss/nsswitch.o
nsswitch.c:76: `LIBNSS_FILES_SO' undeclared here (not in a function)
nsswitch.c:76: initializer element is not constant
make[2]: ***
[/home/hades/b/ifi-hf/havardw/arm/build/glibc-2.2.1/nss/nsswitch.o] Error
1
make[2]: Leaving directory
`/home/hades/b/ifi-hf/havardw/arm/src/glibc-2.2.1/nss'
make[1]: *** [nss/subdir_lib] Error 2
make[1]: Leaving directory
`/home/hades/b/ifi-hf/havardw/arm/src/glibc-2.2.1'
make: *** [all] Error 2
-----------------------------------------------------------------------


    Håvard

mailto:havardw@stud.ntnu.no||http://www.stud.ntnu.no/~havardw||73 52 55 76
 All it takes to start an avalanche is a single snowflake||Or a snowboarder
        Oh! Un Fraggle! Regarde, maman! J'ai attrapé un Fraggle!




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