kompilace sitoveho programu
Jakub Holcman
jakub na businessweb.cz
Středa Březen 28 12:43:15 CEST 2001
Dobry den preji,
kdyz se v nove nainstalovane distribuci SuSE 7.0
pokousim zkompilovat nejaky program (zkousel jsem
binda 2.3.0, apache 1.3.19), skonci kompilace
nejakou takovouhle hlaskou:
-------------------------------
gcc -c -I./os/unix -I./include -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I.
/lib/expat-lite `./apaci` buildmark.c
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite `./apaci` -
rdynamic \
-o httpd buildmark.o modules.o modules/standard/libstandard.a main/l
ibmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a lib/expat-lite/libe
xpat.a -lm -lcrypt -ldbm -ldl
modules/standard/libstandard.a(mod_access.o): In function `allow_cmd':
mod_access.o(.text+0x2e0): undefined reference to `__inet_addr'
mod_access.o(.text+0x35f): undefined reference to `__inet_addr'
main/libmain.a(http_main.o): In function `new_connection':
http_main.o(.text+0x2506): undefined reference to `__inet_ntoa'
http_main.o(.text+0x257e): undefined reference to `__inet_ntoa'
main/libmain.a(http_main.o): In function `make_sock':
http_main.o(.text+0x2663): undefined reference to `__inet_ntoa'
main/libmain.a(http_vhost.o): In function `get_addresses':
http_vhost.o(.text+0x15e): undefined reference to `__inet_addr'
main/libmain.a(http_vhost.o): In function `ap_fini_vhost_config':
http_vhost.o(.text+0xdb1): undefined reference to `__inet_ntoa'
main/libmain.a(util.o): In function `ap_get_virthost_addr':
util.o(.text+0x3398): undefined reference to `__inet_addr'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/src/bsweb/apache_1.3.19/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/src/bsweb/apache_1.3.19'
make: *** [build] Error 2
----------------------------
Instaloval jsem linux nejruznejsich distribuci uz mnohokrat a
nikdy jsem takovehle problemy nemel. Bude to asi nejaka
hovadina (mozna chybejici knihovna nebo tak neco).
Nema nekdo nejakou ideu cim to je?
Diky, Jakub.
Další informace o konferenci Linux