Subject: pkg/13477: apache's apxs and "-Wl,"
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cjones@netbsd.org>
List: netbsd-bugs
Date: 07/15/2001 14:56:44
>Number:         13477
>Category:       pkg
>Synopsis:       apache's apxs mishandles "-Wl," arguments
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 15 13:54:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Chris Jones
>Release:        <NetBSD-current source date>2001-07-15
>Organization:
	
>Environment:
	
System: NetBSD grog.cjones.org 1.5.1_ALPHA NetBSD 1.5.1_ALPHA (GROG) #0: Tue Mar 13 18:17:36 MST 2001 chris@grog.cjones.org:/usr/people/chris/work/stable/src/sys/arch/i386/compile/GROG i386


>Description:
The man page for apxs, from apache6-1.3.19, claims that it accepts
arguments of the form -Wl,-R/usr/local/lib.  However, apxs calls ld
directly, instead of running cc.  And ld, of course, doesn't like the
"-Wl," argument.

>How-To-Repeat:
The Makefile for mod_aolserver (aka pkgsrc/www/ap-aolserver) does this:

/usr/local/sbin/apxs -c -o mod_aolserver.so mod_aolserver.o ns_set.o tclset.o dstring.o tls.o modlog.o conn.o misc.o adp.o adpfancy.o str.o tclcmds.o tclmisc.o crypt.o htuu.o tclfile.o tclsock.o sock.o urlencode.o dbinit.o dbdrv.o dbutil.o dbtcl.o config.o quotehtml.o random.o mm_hash.o nsv.o postgres.o -L/usr/local/lib -lmm -lpq -L/usr/local/lib -Wl,-R/usr/local/lib -ltcl83   -lm

which apxs translates to this:

ld -shared -o mod_aolserver.so mod_aolserver.o ns_set.o tclset.o dstring.o tls.o modlog.o conn.o misc.o adp.o adpfancy.o str.o tclcmds.o tclmisc.o crypt.o htuu.o tclfile.o tclsock.o sock.o urlencode.o dbinit.o dbdrv.o dbutil.o dbtcl.o config.o quotehtml.o random.o mm_hash.o nsv.o postgres.o -L/usr/local/lib -lmm -lpq -L/usr/local/lib -Wl,-R/usr/local/lib -ltcl83 -lm 

>Fix:
In the case of mod_aolserver, I'm use Makefile magic to massage the
arguments to apxs.
>Release-Note:
>Audit-Trail:
>Unformatted: