You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Marc Le Nagard <ma...@businessobjects.com> on 2001/05/23 12:01:43 UTC
os-hpux/7771: DSO does not work with C++ library compiled with aCC
>Number: 7771
>Category: os-hpux
>Synopsis: DSO does not work with C++ library compiled with aCC
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Wed May 23 03:10:03 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: marc.lenagard@businessobjects.com
>Release: 1.3.19
>Organization:
apache
>Environment:
HPUX 11.0 - With patches sachant que le module
externe est un module C++ compile avec le compilateur aCC 3.25
>Description:
The initial problem appears when we try to start the httpd server linked in DSO mode , this one tries to load (shl_load) a library C++ tha was compiled with aCC we got the message :
/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libcl.2
/usr/lib/dld.sl: Exec format error.
>How-To-Repeat:
>Fix:
Patch PHSS-23699 is compulsory and in addition the following modification has to be done in the sources :
1- In src/main/http_main.c, in the function REALMAIN, before any other code add the
following lines :
#if defined(HPUX) || defined(HPUX10) || defined(HPUX11)
(void *)_main(); // initialization of the runtime C++
#endif
2- In src/os/unix/os.c, in the function ap_os_dso_load change the following line :
handle = shl_load(path, BIND_IMMEDIATE|BIND_VERBOSE|BIND_NOSTART, 0L);
by
handle = shl_load(path, BIND_IMMEDIATE|BIND_VERBOSE, 0L);
>Release-Note:
>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 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! ]