bug-make
[Top][All Lists]
Advanced

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

Problems with compiling statically


From: 0
Subject: Problems with compiling statically
Date: Thu, 15 Nov 2001 16:59:21 +0100 (CET)

Hi,

I don't know if I rerally can call it "bug": just I can not compile
"make" with statically linked libraries. I have Linux, Slackware 7.1 with
kernel 2.2.4

I try to do that like that:
# ./configure
(it works ok)
# make LDFLAGS=-static

... And then I get some linker error abour unresolved referencies (full
printout of what compiler & linker says during compilation is on the end
of this email).

Do you have an Idea what can be the reason of something like that? I have
asked some people, but nobody could give me any advice

-- 
zerro
address@hidden


PS: This is what compiler says:

make all-recursive make[1]: Entering directory `/mnt/LFS/tmp/make-3.79.1'
Making all in i18n make[2]: Entering directory
`/mnt/LFS/tmp/make-3.79.1/i18n' make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/mnt/LFS/tmp/make-3.79.1/i18n' make[2]:
Entering directory `/mnt/LFS/tmp/make-3.79.1' gcc
-DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
ar.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
arscan.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
commands.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
dir.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
expand.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
file.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
function.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
getopt.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
implicit.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
job.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
main.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
misc.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
read.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
remake.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
rule.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
signame.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
variable.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
vpath.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
default.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
remote-stub.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
version.c gcc -DALIASPATH=\"/usr/local/share/locale:.\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\"
-DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I.  -g -O2 -c
getopt1.c gcc -g -O2 -static -o make ar.o arscan.o commands.o dir.o
expand.o file.o function.o getopt.o implicit.o job.o main.o misc.o read.o
remake.o rule.o signame.o variable.o vpath.o default.o remote-stub.o
version.o getopt1.o -lutil -lrt job.o: In function `load_too_high':
/mnt/LFS/tmp/make-3.79.1/job.c:1565: undefined reference to `getloadavg'
collect2: ld returned 1 exit status make[2]: *** [make] Error 1 make[2]:
Leaving directory `/mnt/LFS/tmp/make-3.79.1' make[1]: *** [all-recursive]
Error 1 make[1]: Leaving directory `/mnt/LFS/tmp/make-3.79.1' make: ***
[all-recursive-am] Error 2




reply via email to

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