>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:     [EMAIL PROTECTED]
>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 <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]



Reply via email to