For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > May 2004 > ld.so.1 relocation error ( solaris 8 )









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ld.so.1 relocation error ( solaris 8 )
Tommy

2004-05-13, 9:35 am

Hi,
I have a runtime problem with Apache2 and a smbauth module. Everything
compiles, but I get the following when starting apache:

Syntax error on line 238 of /opt/apache/conf/httpd.conf: Cannot load
/opt/apache/modules/mod_smbauth.so into server: ld.so.1:
/opt/apache/bin/httpd: fatal: relocation error: file
/opt/apache/modules/mod_smbauth.so: symbol decrement_smbd_process_count:
referenced symbol not found

I've searched quite a bit (mostly keying on "ld.so.1 fatal: relocation
error httpd", because the actuall error didn't hit), the closest solve I
can find is info about the linking and httpd.
I've tried using crle, I've compiled apache/samba/module with
Sunfreeware's gcc, GNU's ld.
I've tried compiling with Sun's ld (/usr/ccs/bin), and I've used CWS's gcc
with Sun's ld. Not matter what I do I get the same result.

I'm sure this is a compiler linker (user) issue - I just don't know enough
about gcc/ld.

I have also used ldd, LD_LIBRARY_PATH, clre, and LD RUN PATH. I have
posted to comp.infosystems, and I've emailed the maintainer with no
response.

Thanks for any help,

Tom de
Casper H.S. Dik

2004-05-13, 9:35 am

"Tommy" <tdeboeser@hotmail.com> writes:

> I have a runtime problem with Apache2 and a smbauth module. Everything
>compiles, but I get the following when starting apache:


> Syntax error on line 238 of /opt/apache/conf/httpd.conf: Cannot load
> /opt/apache/modules/mod_smbauth.so into server: ld.so.1:
> /opt/apache/bin/httpd: fatal: relocation error: file
> /opt/apache/modules/mod_smbauth.so: symbol decrement_smbd_process_count:
> referenced symbol not found



This error indicates that mod_smbauth.so references the
external symbol decrement_smbd_process_count but that that symbol
is not defined in the object itself, the program, or any of the
objects referenced by the object.

(A shared object needs to be self-contained: it must be linked against
all other objects it references symbols from; e.g., it typically needs
to be linked against libc)


Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
Tommy

2004-05-13, 9:35 am

On Thu, 13 May 2004 12:43:36 +0000, Casper H. S. Dik wrote:

> "Tommy" <tdeboeser@hotmail.com> writes:
>
>
>
>
> This error indicates that mod_smbauth.so references the external symbol
> decrement_smbd_process_count but that that symbol is not defined in the
> object itself, the program, or any of the objects referenced by the
> object.



> (A shared object needs to be self-contained: it must be linked against
> all other objects it references symbols from; e.g., it typically needs
> to be linked against libc)


I've seen this before, but I don't know how to link against another
object. Would I modify the Makefile, create a environment var, crle,
etc.?
The decrement_smbd_process_count comes from samba, but I've only found it
in the sources, not in the installed /usr/local/samba/lib.


>
> Casper


Thanks. BTW, I appreceate your posts over the years, they have been VERY
helpful.

tom de
Casper H.S. Dik

2004-05-13, 10:32 am

"Tommy" <tdeboeser@hotmail.com> writes:

>I've seen this before, but I don't know how to link against another
>object. Would I modify the Makefile, create a environment var, crle,
>etc.?


Pass the other component on the command line.

>The decrement_smbd_process_count comes from samba, but I've only found it
>in the sources, not in the installed /usr/local/samba/lib.


Ah, so it expects it to be in the main process? It seems odd then that
it is in a module which is loaded by a different process.

Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com