bug-glibc
[Top][All Lists]
Advanced

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

RE: Compile problem


From: Craig Anderton
Subject: RE: Compile problem
Date: Mon, 24 Sep 2001 13:53:15 -0700

Hello Andreas,

As you suggested, I have attempted to install glibc-2.2.4 and achieved the
following results.

Here is the output of running configure as well as the options that I have
selected for creating the Makefile.

bash-2.05# ../glibc-2.2.4/configure --prefix=/usr --enable-add-ons
--sysconfdir=/etc --enable-hacker-mode 
creating cache ./config.cache
checking host system type... sparc-sun-solaris2.6
checking sysdep dirs... sysdeps/sparc/sparc32/elf
sysdeps/unix/sysv/sysv4/solaris2/sparc/sparc32
sysdeps/unix/sysv/sysv4/solaris2/sparc sysdeps/unix/sysv/sysv4/solaris2
sysdeps/unix/sysv/sysv4 sysdeps/unix/common sysdeps/unix/sysv
sysdeps/unix/sparc sysdeps/unix sysdeps/posix sysdeps/sparc/sparc32/fpu
sysdeps/sparc/sparc32 sysdeps/wordsize-32 sysdeps/ieee754/flt-32
sysdeps/ieee754/dbl-64 sysdeps/sparc/sparc32/soft-fp sysdeps/sparc/fpu
sysdeps/sparc sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD compatible install... /usr/local/bin/install -c
checking whether ln -s works... yes
checking for pwd... /usr/bin/pwd
checking build system type... sparc-sun-solaris2.6
checking for gcc... gcc
checking version of gcc... 2.95.3, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.79, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.10.40, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 4.0, ok
checking for gsed... no
checking for sed... sed
checking version of sed... 3.02, ok
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... (cached) no
checking whether we are using GNU C... yes
checking build system type... sparc-sun-solaris2.6
checking how to run the C preprocessor... gcc -E
checking whether /usr/ccs/bin/as is GNU as... yes
checking whether /usr/ccs/bin/ld is GNU ld... yes
checking for mig... mig
checking whether ranlib is necessary... no
checking LD_LIBRARY_PATH variable... ok
checking for bash... /usr/bin/bash
checking for mawk... no
checking for gawk... gawk
checking for perl... /usr/local/bin/perl
checking for install-info... /usr/local/bin/install-info
checking for old Debian install-info... no
checking for bison... /usr/local/bin/bison
checking for signed size_t type... no
checking for libc-friendly stddef.h... yes
checking whether we need to use -P to assemble .S files... no
checking whether .text pseudo-op must be used... yes
checking for assembler global-symbol directive... .globl
checking for .set assembler directive... yes
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking for -z nodelete option... yes
checking for -z nodlopen option... yes
checking for -z initfirst option... yes
checking for -Bgroup option... yes
checking whether cc puts quotes around section names... yes
checking for assembler .weak directive... yes
checking for ld --no-whole-archive... yes
checking for gcc -fexceptions... yes
checking for DWARF2 unwind info support... no
checking for __builtin_expect... no
checking for local label subtraction... no
checking for libgd... no
checking size of long double... 16
running configure fragment for
../glibc-2.2.4/sysdeps/unix/sysv/sysv4/solaris2
running configure fragment for ../glibc-2.2.4/sysdeps/unix/common
checking for sys_siglist... no
checking for _sys_siglist... yes
checking ctype array name for glue... __ctype
running configure fragment for ../glibc-2.2.4/sysdeps/unix
checking for strerror... yes
running configure fragment for ../glibc-2.2.4/sysdeps/generic
checking for psignal... yes
checking stdio selection... libio
checking for old glibc 2.0.x headers... no
checking whether -fPIC is default... no
updating cache ./config.cache
creating ./config.status
creating config.make
creating glibcbug
creating Makefile
creating config.h

This is where running make fails...

gcc -D_LIBC=1 -I../include -I. -I/tmp/build-glibc.2.2.4/csu -I.. -I../libio
-I/tmp/build-glibc.2.2.4 -I../sysdeps/sparc/sparc32/elf
-I../sysdeps/unix/sysv/sysv4/solaris2/sparc/sparc32
-I../sysdeps/unix/sysv/sysv4/solaris2/sparc
-I../sysdeps/unix/sysv/sysv4/solaris2 -I../sysdeps/unix/sysv/sysv4
-I../sysdeps/unix/common -I../sysdeps/unix/sysv -I../sysdeps/unix/sparc
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/sparc/sparc32/fpu
-I../sysdeps/sparc/sparc32 -I../sysdeps/wordsize-32
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64
-I../sysdeps/sparc/sparc32/soft-fp -I../sysdeps/sparc/fpu -I../sysdeps/sparc
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic   -E -dM
-xc - | cat - >> /tmp/build-glibc.2.2.4/bits/stdio_lim.hT
sed -e 's@ /tmp/build-glibc\.2\.2\.4/@ $(common-objpfx)@g' -e
'address@hidden/tmp/build-glibc\.2\.2\.4/@$(common-objpfx)@g'
/tmp/build-glibc.2.2.4/bits/stdio_lim.dT >
/tmp/build-glibc.2.2.4/bits/stdio_lim.dt
cat /tmp/build-glibc.2.2.4/bits/stdio_lim.dt >>
/tmp/build-glibc.2.2.4/bits/stdio_lim.d
fopen_max=`sed -n 's/^#define OPEN_MAX //1p'
/tmp/build-glibc.2.2.4/bits/stdio_lim.hT`;         \
filename_max=`sed -n 's/^#define PATH_MAX //1p'
/tmp/build-glibc.2.2.4/bits/stdio_lim.hT`;      \
iov_max=`sed -n 's/^#define UIO_MAXIOV //p'
/tmp/build-glibc.2.2.4/bits/stdio_lim.hT`;  \
fopen_max=${fopen_max:-16};                                     \
filename_max=${filename_max:-1024};                             \
if [ -z $iov_max ]; then                                        \
  define_iov_max="# undef IOV_MAX";                             \
else                                                            \
  define_iov_max="# define IOV_MAX $iov_max";                   \
fi;                                                             \
sed -e "s/@FOPEN_MAX@/$fopen_max/"                              \
    -e "s/@FILENAME_MAX@/$filename_max/"                        \
    -e "s/@L_tmpnam@/20/"                               \
    -e "s/@TMP_MAX@/238328/"                            \
    -e "s/@L_ctermid@/9/"                               \
    -e "s/@L_cuserid@/9/"                               \
    -e "s/@define_IOV_MAX@/$define_iov_max/"                    \
    ../stdio-common/stdio_lim.h.in >
/tmp/build-glibc.2.2.4/bits/stdio_lim.h.new
/bin/sh: test: argument expected
make[2]: *** [/tmp/build-glibc.2.2.4/bits/stdio_lim.st] Error 1
make[2]: Leaving directory `/tmp/glibc-2.2.4/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/tmp/glibc-2.2.4'
make: *** [all] Error 2

I haven't been able to figure out what argument is expected.  Do you have
any suggestions for proceeding from here?

Regards,
Craig

-----Original Message-----
From: Andreas Jaeger [mailto:address@hidden
Sent: Saturday, September 22, 2001 2:16 AM
To: Craig Anderton
Cc: 'address@hidden'
Subject: Re: Compile problem


Craig Anderton <address@hidden> writes:

> Hello,
>
> I am attempting to compile glibc-2.1.3 on Solaris 2.6 and I can't get
around

2.1.3 is way too old, start with the CVS archives or 2.2.4.

> this error.  I am using GCC 2.95.3 and I have upgraded binutils and make
to
> the latest versions.  
>
> gcc set-freeres.c -c -O -Wall -Winline -Wstrict-prototypes -Wwrite-strings
> -g  -mhard-quad-float     -I../include -I. -I/tmp/build/malloc -I..
> -I../libio  -I/tmp/build -I../sysdeps/sparc/sparc32/elf
> -I../crypt/sysdeps/unix
-I../sysdeps/unix/sysv/sysv4/solaris2/sparc/sparc32
> -I../sysdeps/unix/sysv/sysv4/solaris2/sparc
> -I../sysdeps/unix/sysv/sysv4/solaris2 -I../sysdeps/unix/sysv/sysv4
> -I../sysdeps/unix/common -I../sysdeps/unix/sysv -I../sysdeps/unix/sparc
> -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/sparc/sparc32
> -I../sysdeps/wordsize-32 -I../sysdeps/sparc/fpu -I../sysdeps/sparc
> -I../sysdeps/ieee754 -I../sysdeps/libm-ieee754 -I../sysdeps/generic/elf
> -I../sysdeps/generic    -include ../include/libc-symbols.h     -o
> /tmp/build/malloc/set-freeres.o
> set-freeres.c:23: warning: type defaults to `int' in declaration of
> `symbol_set_define'

Check what's in that line (I don't have 2.1.3 here) and then check
which type defaults to int - you probably miss a declaration of a
type.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs address@hidden
   private address@hidden
    http://www.suse.de/~aj



reply via email to

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