From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Apr 13 13:40:08 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78EED16A4CE for ; Tue, 13 Apr 2004 13:40:08 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F11243D5A for ; Tue, 13 Apr 2004 13:40:08 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i3DKe8bv069831 for ; Tue, 13 Apr 2004 13:40:08 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i3DKe8Le069830; Tue, 13 Apr 2004 13:40:08 -0700 (PDT) (envelope-from gnats) Resent-Date: Tue, 13 Apr 2004 13:40:08 -0700 (PDT) Resent-Message-Id: <200404132040.i3DKe8Le069830@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mikhail Teterin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE3C716A4CE for ; Tue, 13 Apr 2004 13:35:18 -0700 (PDT) Received: from corbulon.video-collage.com (corbulon.video-collage.com [64.35.99.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41D8343D5C for ; Tue, 13 Apr 2004 13:35:18 -0700 (PDT) (envelope-from mteterin@250-217.customer.cloud9.net) Received: from 250-217.customer.cloud9.net (195-11.customer.cloud9.net [168.100.195.11])i3DKZFuL035048 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 13 Apr 2004 16:35:16 -0400 (EDT) (envelope-from mteterin@250-217.customer.cloud9.net) Received: from 250-217.customer.cloud9.net (mteterin@localhost [127.0.0.1]) i3DKZ98l091554 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 13 Apr 2004 16:35:09 -0400 (EDT) (envelope-from mteterin@250-217.customer.cloud9.net) Received: (from mteterin@localhost)i3DKZ9gV091553; Tue, 13 Apr 2004 16:35:09 -0400 (EDT) (envelope-from mteterin) Message-Id: <200404132035.i3DKZ9gV091553@250-217.customer.cloud9.net> Date: Tue, 13 Apr 2004 16:35:09 -0400 (EDT) From: Mikhail Teterin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/65506: apxs as installed by Apache-2 can not link modules (-o) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2004 20:40:08 -0000 >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: