From nobody@hyperreal.com Wed Jun 25 15:11:12 1997 Received: (from nobody@localhost) by hyperreal.com (8.8.5/8.8.5) id PAA09394; Wed, 25 Jun 1997 15:11:12 -0700 (PDT) Message-Id: <199706252211.PAA09394@hyperreal.com> Date: Wed, 25 Jun 1997 15:11:12 -0700 (PDT) From: Russell Van Tassell Reply-To: russell@cybercash.com To: apbugs@hyperreal.com Subject: httpd will not link statically X-Send-Pr-Version: 3.2 >Number: 787 >Category: os-solaris >Synopsis: httpd will not link statically >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Jun 25 15:20:00 1997 >Last-Modified: Wed Jun 25 20:08:39 PDT 1997 >Originator: russell@cybercash.com >Organization: >Release: 1.2.0 >Environment: Solaris 2.5 with gcc 2.7.2 (several different machines, same setup) >Description: gcc -static -o httpd alloc.o http_main.o http_core.o http_config.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_bprint f.o util_date.o util_snprintf.o mod_mime.o mod_access.o mod_auth.o mod_negotiation.o mod_include.o mod_dir.o mod_cgi.o mod_userdir.o mod_alias.o mod_env.o mod_log_config.o mod_asis.o mod_imap.o mod_ actions.o mod_browser.o mod_status.o mod_usertrack.o regex/libregex.a -lsocket -lnsl Undefined first referenced symbol in file dlclose /usr/lib/libnsl.a(netdir.o) dgettext /usr/lib/libnsl.a(netselect.o) dlsym /usr/lib/libnsl.a(netdir.o) dlopen /usr/lib/libnsl.a(netdir.o) dlerror /usr/lib/libnsl.a(netdir.o) ld: fatal: Symbol referencing errors. No output written to httpd make: *** [httpd] Error 1 >How-To-Repeat: Added "-static" to "EXTRA_LFLAGS" in "Configuration," ran a "./Configure" and a "make." If the "-static" is removed, it compiles (and runs) fine. Extra compiled-in modules: status_module usertrack_module >Fix: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Wed Jun 25 20:08:39 PDT 1997 State-Changed-Why: This is not an Apache problem, but a limition of your Solaris setup. libnsl doesn't like static linking because it needs some of the dynamic loader interfaces. If you want more details on this subject, contact Sun or search Deja News' (http://www.dejanews.com/) database of old usenet posts for "libnsl static". >Unformatted: