www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrej Borsenkow <Andrej.Borsen...@mow.siemens.ru>
Subject os-other/5435: DSO build fails
Date Tue, 07 Dec 1999 16:39:06 GMT

>Number:         5435
>Category:       os-other
>Synopsis:       DSO build fails
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Dec  7 08:40:00 PST 1999
>Originator:     Andrej.Borsenkow@mow.siemens.ru
>Release:        1.3.9
ReliantUNIX-N itsrm2 5.44 C2001 RM400 1/256 R4000
All current patches
Compiler CDS++ 2.0A00
Attrempt to compile out-of-the-box:

configure --prefix=/u1/apache --enable-module=most --enable-shared=max

results in

-DNEED_UNION_SEMUN -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite `./apaci`   -Wl,-Blargedynsym
              -o httpd buildmark.o modules.o  modules/standard/libstandard.a  main/libmain.a
 ./os/unix/libos.a  ap/libap.a regex/libregex.a lib/expat-lite/libexpat.a  -lsocket -lnsl
Undefined                       first referenced
 symbol                             in file
dlsym                               ./os/unix/libos.a(os.o)
ld: httpd: fatal error: Symbol referencing errors. No output written to httpd

The library -ldl is missing. 

The reason is, Configure tests only for dlopen(). Unfortunately, dlopen() exists in libc.so
as well (I tend to call it a bug, actually), for this reason -ldl is not used. The same problem
was with glib as well.
See the problem description. You'll need the ReliantUNIX 5.44 though :-)
Patch to Configure follows. It simply tests for both dlopen() and dlsym().

--- apache_1.3.9/src/Configure.org      Mon Aug 16 04:49:08 1999
+++ apache_1.3.9/src/Configure  Tue Dec  7 19:21:13 1999
@@ -1981,7 +1981,7 @@
        * )
-           if ./helpers/TestCompile func dlopen; then
+           if ./helpers/TestCompile func dlopen && ./helpers/TestCompile funcdlsym;
                if ./helpers/TestCompile lib dl; then
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message