This is the mail archive of the libc-hacker@sourceware.cygnus.com 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]

Re: avoid compiling in srcdir [was: [Failure]compiling glibc on


> From: Gordon Matzigkeit <gord@m-tech.ab.ca>
> To: John Kennedy <jk@csuchico.edu>
> Subject: avoid compiling in srcdir [was: [Failure]compiling glibc on MKlinux

> ]
> Date: 18 May 1998 02:27:41 -0600
> Cc: libc-alpha@cygnus.com
> 
> Hi!
> 
> >>>>> Andreas Jaeger writes:
> 
>  AJ> - The current version contains some patches to make the build
>  AJ> process faster.  A lot of people complained that it takes too
>  AJ> long to compile glibc and Zack finally managed to make some real
>  AJ> improvements[1].  Sadly this broke one special case: Building in
>  AJ> the source directory.  We've always advocated to build glibc in
>  AJ> an extra build directory:
>  >> The `best' way to build glibc is to use an extra directory, e.g.:
>  >> tar xzf libc-970921.tar.gz mkdir build-glibc cd build-glibc
>  >> ../libc-970921/configure ...
>  AJ>   This is how we build glibc and therefore should always work.
>  AJ> I'd advise everybody to use a build directory to build glibc -
>  AJ> independent of the version.
> 
> Why not enforce this policy with software?

Thanks your patch.
That was my mistake reading pass through the documemnt.

But when I compiled using build directory,I got the diiferent error.

what shall I do.
It's diffcult for me. 

make  -C ctype others
make[2]: Entering directory `/wk-glibc/glibc-2.0.93/ctype'
make[2]: Nothing to be done for `others'.
make[2]: Leaving directory `/wk-glibc/glibc-2.0.93/ctype'
make  -C db2 others
make[2]: Entering directory `/wk-glibc/glibc-2.0.93/db2'
gcc   -shared -o /wk-glibc/build-glibc/db2/libdb.so  -Wl,-dynamic-linker=/lib
/ld.so.1 -B/wk-glibc/build-glibc/csu/  -Wl,-soname=libdb.so.3   -L/wk-glibc/
build-glibc -L/wk-glibc/build-glibc/math -L/wk-glibc/build-glibc/elf -L/wk-glibc
/build-glibc/nss -L/wk-glibc/build-glibc/nis -L/wk-glibc/build-glibc/db2 -L/
wk-glibc/build-glibc/rt -L/wk-glibc/build-glibc/linuxthreads -Wl,-rpath-link
=/wk-glibc/build-glibc:/wk-glibc/build-glibc/math:/wk-glibc/build-glibc/elf:
/wk-glibc/build-glibc/nss:/wk-glibc/build-glibc/nis:/wk-glibc/build-glibc/db2
:/wk-glibc/build-glibc/rt:/wk-glibc/build-glibc/linuxthreads -Wl,--whole-archive 
/wk-glibc/build-glibc/db2/libdb_pic.a /wk-glibc/build-glibc/interp.os /wk-glibc
/build-glibc/libc.so -Wl,--no-whole-archive 
/wk-glibc/build-glibc/csu/crtn.o: In function `dummy':
/wk-glibc/build-glibc/csu/crtn.o(.text+0x0): multiple definition of `dummy'
/wk-glibc/build-glibc/csu/crti.o(.text+0x0): first defined here
/wk-glibc/build-glibc/csu/crtn.o: In function `_init':
/wk-glibc/build-glibc/csu/crtn.o(.text+0x2c): multiple definition of `_init'
/wk-glibc/build-glibc/csu/crti.o(.text+0x58): first defined here
/wk-glibc/build-glibc/csu/crtn.o: In function `_fini':
/wk-glibc/build-glibc/csu/crtn.o(.init+0x20): multiple definition of `_fini'
/wk-glibc/build-glibc/csu/crti.o(.init+0x10): first defined here
collect2: ld returned 1 exit status
make[2]: *** [/wk-glibc/build-glibc/db2/libdb.so] Error 1
make[2]: Leaving directory `/wk-glibc/glibc-2.0.93/db2'
make[1]: *** [db2/others] Error 2
make[1]: Leaving directory `/wk-glibc/glibc-2.0.93'
make: *** [all] Error 2

Kaoru Fukui
k_fukui@highway.ne.jp

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