You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Aart van Erven <a....@consultant.com> on 1998/04/24 08:12:06 UTC
config/2134: Will not link due to error in order when linking libraries
>Number: 2134
>Category: config
>Synopsis: Will not link due to error in order when linking libraries
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Thu Apr 23 23:20:01 PDT 1998
>Last-Modified:
>Originator: a.vanerven@consultant.com
>Organization:
apache
>Release: 1.3b6
>Environment:
SCO OpenServer 5.04C, with gcc.
>Description:
Compiling Apache-httpd w/ PHP3-0C4.
It seems that configure puts the "-lsocket" option BEFORE the option
"-lmysqlclient" . This will produce the following link error:
'getservbyname'first referenced in file modules/php3/modphp3.
>How-To-Repeat:
Try to embed php3 module, then try to re-link httpd
>Fix:
Put -lsocket AFTER the -lmysqlclient; linking will work
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]