Date: Tue, 13 Apr 2004 16:35:09 -0400 (EDT) From: Mikhail Teterin <mi@aldan.algebra.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/65506: apxs as installed by Apache-2 can not link modules (-o) Message-ID: <200404132035.i3DKZ9gV091553@250-217.customer.cloud9.net> Resent-Message-ID: <200404132040.i3DKe8Le069830@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 65506 >Category: ports >Synopsis: apxs as installed by Apache-2 can not link modules (-o) >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 13 13:40:08 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Mikhail Teterin >Release: FreeBSD 5.2-CURRENT i386 >Organization: Virtual Estates, Inc. >Environment: System: 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Tue Mar 23 15:17:50 EST 2004 >Description: It works, when invoked with just the ``-c'' option. However, when the desired .so name is explicitly specified with ``-o'', apxs calls libtool, which constructs the command line, that tries to link a program instead of the shared library. >How-To-Repeat: /usr/local/sbin/apxs -c -o mod_auth_pwcheck.so mod_auth_pwcheck.c /usr/local/share/apache2/build/libtool --silent --mode=compile cc -O -pipe -march=pentium4 -Wall -fbuiltin -fstrength-reduce -fthread-jumps -funroll-loops -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop -DAP_HAVE_DESIGNATED_INITIALIZER -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/apache2 -I/usr/local/include/apache2 -I/usr/local/include/apache2 -I/usr/local/include -c -o mod_auth_pwcheck.lo mod_auth_pwcheck.c && touch mod_auth_pwcheck.slo /usr/local/share/apache2/build/libtool --silent --mode=link cc -o mod_auth_pwcheck.so -rpath /usr/local/libexec/apache2 -module -avoid-version mod_auth_pwcheck.lo /usr/lib/crt1.o: In function `_start': /usr/lib/crt1.o(.text+0x77): undefined reference to `main' mod_auth_pwcheck.lo: In function `register_hooks': mod_auth_pwcheck.lo(.text+0x36): undefined reference to `ap_hook_check_user_id' mod_auth_pwcheck.lo(.text+0x5c): undefined reference to `ap_hook_auth_checker' mod_auth_pwcheck.lo: In function `create_config': mod_auth_pwcheck.lo(.text+0x8a): undefined reference to `apr_palloc' mod_auth_pwcheck.lo: In function `authenticate': mod_auth_pwcheck.lo(.text+0xd1): undefined reference to `ap_get_basic_auth_pw' mod_auth_pwcheck.lo(.text+0x17e): undefined reference to `ap_log_rerror' mod_auth_pwcheck.lo(.text+0x23f): undefined reference to `ap_log_rerror' mod_auth_pwcheck.lo(.text+0x24a): undefined reference to `ap_note_basic_auth_failure' mod_auth_pwcheck.lo(.text+0x392): undefined reference to `ap_log_rerror' mod_auth_pwcheck.lo(.text+0x39d): undefined reference to `ap_note_basic_auth_failure' mod_auth_pwcheck.lo: In function `authorize': mod_auth_pwcheck.lo(.text+0x55f): undefined reference to `ap_requires' mod_auth_pwcheck.lo(.text+0x5b1): undefined reference to `ap_getword_white' mod_auth_pwcheck.lo(.text+0x5fa): undefined reference to `ap_getword_conf' mod_auth_pwcheck.lo(.text+0x696): undefined reference to `ap_getword_conf' mod_auth_pwcheck.lo(.text+0x751): undefined reference to `ap_log_rerror' mod_auth_pwcheck.lo(.text+0x77d): undefined reference to `ap_note_basic_auth_failure' mod_auth_pwcheck.lo(.data.rel+0x4): undefined reference to `ap_set_flag_slot' mod_auth_pwcheck.lo(.data.rel+0x1c): undefined reference to `ap_set_flag_slot' mod_auth_pwcheck.lo(.data.rel+0x34): undefined reference to `ap_set_flag_slot' apxs:Error: Command failed with rc=65536 . *** Error code 1 >Fix: The workaround is to avoid the ``-o'' option, as many ports do. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404132035.i3DKZ9gV091553>