www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Le Nagard <marc.lenag...@businessobjects.com>
Subject os-hpux/7771: DSO does not work with C++ library compiled with aCC
Date Wed, 23 May 2001 10:01:43 GMT

>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
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed May 23 03:10:03 PDT 2001
>Originator:     marc.lenagard@businessobjects.com
>Release:        1.3.19
HPUX 11.0 - With patches  sachant que le module
	externe est un module C++ compile avec le compilateur aCC 3.25
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.


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++


     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,


                        handle = shl_load(path, BIND_IMMEDIATE|BIND_VERBOSE, 0L);

 [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