>Number: 2028
>Category: os-aix
>Synopsis: Apache fails to link with reports of undefined symbols
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Wed Apr 1 20:50:00 PST 1998
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.2.6
>Environment:
AIX 4.2.0, uname gives:AIX www 2 4 002425844C00
gcc 2.7.2.2 from www-frec.bull.com
Apache 1.2.6.
>Description:
I am trying to build Apache 1.2.6 on AIX 4.2.0 with GCC 2.7.2.2, and get a
failure
in the linking stage (ld):
gcc -c -O2 -DAIX -U__STR__ alloc.c
gcc -c -O2 -DAIX -U__STR__ http_main.c
http_main.c: In function `child_main':
http_main.c:1811: warning: passing arg 3 of `naccept' from incompatible pointer
type
http_main.c:1903: warning: passing arg 3 of `ngetsockname' from incompatible po
inter type
http_main.c: In function `main':
http_main.c:2530: warning: passing arg 3 of `ngetpeername' from incompatible po
inter type
http_main.c:2538: warning: passing arg 3 of `ngetsockname' from incompatible po
inter type
gcc -c -O2 -DAIX -U__STR__ http_core.c
gcc -c -O2 -DAIX -U__STR__ http_config.c
gcc -c -O2 -DAIX -U__STR__ http_request.c
gcc -c -O2 -DAIX -U__STR__ http_log.c
gcc -c -O2 -DAIX -U__STR__ http_protocol.c
gcc -c -O2 -DAIX -U__STR__ rfc1413.c
gcc -c -O2 -DAIX -U__STR__ util.c
gcc -c -O2 -DAIX -U__STR__ util_script.c
gcc -c -O2 -DAIX -U__STR__ modules.c
gcc -c -O2 -DAIX -U__STR__ buff.c
gcc -c -O2 -DAIX -U__STR__ md5c.c
gcc -c -O2 -DAIX -U__STR__ util_md5.c
gcc -c -O2 -DAIX -U__STR__ explain.c
gcc -c -O2 -DAIX -U__STR__ http_bprintf.c
gcc -c -O2 -DAIX -U__STR__ util_date.c
gcc -c -O2 -DAIX -U__STR__ util_snprintf.c
gcc -c -O2 -DAIX -U__STR__ mod_env.c
gcc -c -O2 -DAIX -U__STR__ mod_log_config.c
gcc -c -O2 -DAIX -U__STR__ mod_mime.c
gcc -c -O2 -DAIX -U__STR__ mod_negotiation.c
gcc -c -O2 -DAIX -U__STR__ mod_include.c
gcc -c -O2 -DAIX -U__STR__ mod_dir.c
gcc -c -O2 -DAIX -U__STR__ mod_cgi.c
gcc -c -O2 -DAIX -U__STR__ mod_asis.c
gcc -c -O2 -DAIX -U__STR__ mod_imap.c
gcc -c -O2 -DAIX -U__STR__ mod_actions.c
gcc -c -O2 -DAIX -U__STR__ mod_userdir.c
gcc -c -O2 -DAIX -U__STR__ mod_alias.c
gcc -c -O2 -DAIX -U__STR__ mod_access.c
gcc -c -O2 -DAIX -U__STR__ mod_auth.c
gcc -c -O2 -DAIX -U__STR__ mod_usertrack.c
gcc -c -O2 -DAIX -U__STR__ mod_browser.c
gcc -lm -Xlinker -bbigtoc -Xlinker -bnoquiet -Xlinker -bloadmap:1 -Xlin
ker -bC:1 -Xlinker -Br:1 -lm -o httpd alloc.o http_main.o http_core.o http_con
fig.o http_request.o http_log.o http_protocol.o rfc1413.o util.o util_script.o
modules.o buff.o md5c.o util_md5.o explain.o http_bprintf.o util_date.o util_s
nprintf.o mod_env.o mod_log_config.o mod_mime.o mod_negotiation.o mod_inclu
de.o mod_dir.o mod_cgi.o mod_asis.o mod_imap.o mod_actions.o mod_userdir.
o mod_alias.o mod_access.o mod_auth.o mod_usertrack.o mod_browser.o -lc
collect2: ld returned 8 exit status
ld: 0706-027 The -B r:1 flag is ignored.
(ld): halt 4
(ld): setopt r/o->w
(ld): setopt nodelcsect
(ld): setopt bigtoc
(ld): savename httpd
(ld): filelist 38 2
(ld): i /lib/crt0.o
(ld): lib /usr/lib/libm.a
(ld): i alloc.o
(ld): i http_main.o
(ld): i http_core.o
(ld): i http_config.o
(ld): i http_request.o
(ld): i http_log.o
(ld): i http_protocol.o
(ld): i rfc1413.o
(ld): i util.o
(ld): i util_script.o
(ld): i modules.o
(ld): i buff.o
(ld): i md5c.o
(ld): i util_md5.o
(ld): i explain.o
(ld): i http_bprintf.o
(ld): i util_date.o
(ld): i util_snprintf.o
(ld): i mod_env.o
(ld): i mod_log_config.o
(ld): i mod_mime.o
(ld): i mod_negotiation.o
(ld): i mod_include.o
(ld): i mod_dir.o
(ld): i mod_cgi.o
(ld): i mod_asis.o
(ld): i mod_imap.o
(ld): i mod_actions.o
(ld): i mod_userdir.o
(ld): i mod_alias.o
(ld): i mod_access.o
(ld): i mod_auth.o
(ld): i mod_usertrack.o
(ld): i mod_browser.o
(ld): lib /usr/lib/libc.a
(ld): i /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.4.0/2.7.2.2/common/libgcc.a
INSERT: Shared object libc.a[aio.o]: 10 symbols imported.
INSERT: Shared object libc.a[shr.o]: 1557 symbols imported.
INSERT: Shared object libc.a[meth.o]: 2 symbols imported.
INSERT: Shared object libc.a[pse.o]: 78 symbols imported.
FILELIST: Number of previously inserted files processed: 38
(ld): exports /usr/tmp/ccTmhxia.x
EXPORTS: Symbols exported: 0
(ld): resolve
RESOLVE: 1991 of 6083 symbols were kept.
(ld): addgl /usr/lib/glink.o
ADDGL: Glink code added for 125 symbols.
(ld): er full
ld: 0711-318 ERROR: Undefined symbols were found.
The following symbols are in error:
Symbol Inpndx TY CL Source-File(Object-File) OR Import-Fil
e{Shared-object}
RLD: Address Section Rld-type Referencing Symbo
l
------------------------------------------------------------------------------
----------------
ld: 0711-317 ERROR: Undefined symbol: .__inet_addr
.__inet_addr [86] ER PR util.c(util.o)
00002a0c .text R_RBR [192] .get_virt
host_addr
.__inet_addr [74] ER PR http_config.c(http_config.o)
00002060 .text R_RBR [190] <.get_add
resses>
ld: 0711-317 ERROR: Undefined symbol: .__inet_ntoa
.__inet_ntoa [64] ER PR http_protocol.c(http_protocol.o)
000010dc .text R_RBR [190] .check_fu
lluri
.__inet_ntoa [108] ER PR http_main.c(http_main.o)
00001be8 .text R_RBR [272] .default_
server_hostnames
00001d34 .text R_RBR [274] .new_conn
ection
00002888 .text R_RBR [282] <.make_so
ck>
ER: The return code is 8.
make: 1254-004 The error code from the last command is 1.
>How-To-Repeat:
Just try and build under AIX, I guess
>Fix:
Not at this stag
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]