Solved

What does "...mod_status.so: symbol __floatdisf: referenced symbol not found..." mean?

Posted on 2004-07-30
12
570 Views
Last Modified: 2013-12-26
I currently have this question open on here:  http://www.experts-exchange.com/Web/Web_Servers/Apache/Q_21076413.html

I try to start Apache and I get this Error:

# ./apachectl start
Syntax error on line 255 of /global/lunadg/d01/app/apache2/2.0.50/conf/httpd.conf:
Cannot load /global/lunadg/d01/app/apache2/2.0.50/modules/mod_status.so into server: ld.so.1: /global/lunadg/d01/app/apache2/2.0.50/bin/httpd: fatal: relocation error: file /global/lunadg/d01/app/apache2/2.0.50/modules/mod_status.so: symbol __floatdisf: referenced symbol not found

When I remark this line in the httpd.conf file, the apache starts up.
LoadModule status_module modules/mod_status.so

I need some help on how to diagnose this error.


# uname -a
SunOS hostname 5.8 Generic_117350-02 sun4u sparc SUNW,Ultra-4

Thanks,
Troy


Thanks,
Troy
0
Comment
Question by:tdsimpso
12 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 11679814
0
 

Author Comment

by:tdsimpso
ID: 11680938
I read a lot of these post but I don't really know what to do about it know.  Could you advise and help along to diagnose this?

I believe I need to statically link the libgcc.so.a.  How do I do that?

Thanks,
Troy
0
 

Author Comment

by:tdsimpso
ID: 11681000
In the following configure command, what does "--enable-rule=SHARED_CORE" mean?

 ./configure \
 "--with-layout=Web" \
 "--enable-module=rewrite" \
 "--enable-module=ssl" \
 "--enable-module=proxy" \
 "--enable-shared=max" \
 "--enable-rule=SHARED_CORE"

0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 

Author Comment

by:tdsimpso
ID: 11681049
Would I set

LDFLAGS="-G"?

Hmmm.  I a little bit confused.

Troy
0
 
LVL 86

Expert Comment

by:jkr
ID: 11681241
Hmm, can you recompile Apache with Sun's C compiler?
0
 

Author Comment

by:tdsimpso
ID: 11681537
I don't have Sun's C compiler.  
I am using gcc.

I changed LDFLAGS to:

luna@hostname>echo $LDFLAGS
/global/lunadg/d01/usr/gcc-3.4.1/lib/gcc/sparc-sun-solaris2.8/3.4.1/libgcc.a

Now I am getting this during the make process:

*** Warning: Linking the shared library mod_so.la against the
*** static library /global/lunadg/d01/usr/gcc-3.4.1/lib/gcc/sparc-sun-solaris2.8/3.4.1/libgcc.a is not portable!
ar: /global/lunadg/d01/usr/gcc-3.4.1/lib/gcc/sparc-sun-solaris2.8/3.4.1/libgcc.a is in archive format - embedded archives are not allowed
ar: /global/lunadg/d01/usr/gcc-3.4.1/lib/gcc/sparc-sun-solaris2.8/3.4.1/libgcc.a is in archive format - embedded archives are not allowed
make[3]: Leaving directory `/global/lunadg/d01/app/apache2/src/httpd-2.0.50/modules/mappers'
make[2]: Leaving directory `/global/lunadg/d01/app/apache2/src/httpd-2.0.50/modules/mappers'
make[1]: Leaving directory `/global/lunadg/d01/app/apache2/src/httpd-2.0.50/modules'
Making all in support
make[1]: Entering directory `/global/lunadg/d01/app/apache2/src/httpd-2.0.50/support'
make[2]: Entering directory `/global/lunadg/d01/app/apache2/src/httpd-2.0.50/support'
/global/lunadg/d01/app/apache2/src/httpd-2.0.50/srclib/apr/libtool --silent --mode=compile /global/lunadg/d01/usr/gcc-3.4.1/bin/gcc  -g -O2 -pthreads    -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DAP_HAVE_DESIGNATED_INITIALIZER   -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/srclib/apr/include -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/srclib/apr-util/include -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/srclib/apr-util/xml/expat/lib -I. -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/os/unix -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/server/mpm/worker -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/modules/http -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/modules/filters -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/modules/proxy -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/include -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/modules/generators -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/server -I/global/lunadg/d01/app/openssl/0.9.7d/include/openssl -I/global/lunadg/d01/app/openssl/0.9.7d/include -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/modules/dav/main -prefer-non-pic -static -c htpasswd.c && touch htpasswd.lo
/global/lunadg/d01/app/apache2/src/httpd-2.0.50/srclib/apr/libtool --silent --mode=link /global/lunadg/d01/usr/gcc-3.4.1/bin/gcc  -g -O2 -pthreads    -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DAP_HAVE_DESIGNATED_INITIALIZER   -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/srclib/apr/include -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/srclib/apr-util/include -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/srclib/apr-util/xml/expat/lib -I. -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/os/unix -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/server/mpm/worker -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/modules/http -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/modules/filters -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/modules/proxy -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/include -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/modules/generators -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/server -I/global/lunadg/d01/app/openssl/0.9.7d/include/openssl -I/global/lunadg/d01/app/openssl/0.9.7d/include -I/global/lunadg/d01/app/apache2/src/httpd-2.0.50/modules/dav/main -export-dynamic -L/global/lunadg/d01/app/apache2/src/httpd-2.0.50/srclib/apr-util/xml/expat/lib -L/global/lunadg/d01/app/openssl/0.9.7d/lib -R/global/lunadg/d01/app/openssl/0.9.7d/lib  /global/lunadg/d01/usr/gcc-3.4.1/lib/gcc/sparc-sun-solaris2.8/3.4.1/libgcc.a -o htpasswd  htpasswd.lo   -lssl -lcrypto /global/lunadg/d01/app/apache2/src/httpd-2.0.50/srclib/pcre/libpcre.la /global/lunadg/d01/app/apache2/src/httpd-2.0.50/srclib/apr-util/libaprutil-0.la /global/lunadg/d01/app/apache2/src/httpd-2.0.50/srclib/apr-util/xml/expat/lib/libexpat.la -liconv /global/lunadg/d01/app/apache2/src/httpd-2.0.50/srclib/apr/libapr-0.la -lsendfile -lrt -lm -lsocket -lnsl -lresolv -lpthread -ldl
ld: elf error: file /global/lunadg/d01/app/apache2/src/httpd-2.0.50/srclib/apr-util/.libs/libaprutil-0.a: elf_begin: Format error: archive fmag
ld: fatal: File processing errors. No output written to htpasswd
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/global/lunadg/d01/app/apache2/src/httpd-2.0.50/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/global/lunadg/d01/app/apache2/src/httpd-2.0.50/support'
make: *** [all-recursive] Error 1


Any ideas?
0
 

Author Comment

by:tdsimpso
ID: 11681635
Oh, I found this:

http://archive.apache.org/gnats/10038

It says:

"...
There are a few possible solutions to this:
1) Rebuild gcc to use the gnu assembler from the gnu utils package.
2) Rebuild gcc to pass the proper implicit paths to the Solaris linker, specifically the path to libgcc.a
3) (Quick Workaround) Simply add the following output to your LDFLAGS variable before running configure:
`gcc -print-libgcc-file-name`
..."

This appears to be the same problem I am having, I just don't know how to go about fixing it.   :-(

Any ideas?

Troy
0
 

Author Comment

by:tdsimpso
ID: 11681708
Oh, and I did number three and I got the error listed above.

export LDFLAGS=/global/lunadg/d01/usr/gcc-3.4.1/lib/gcc/sparc-sun-solaris2.8/3.4.1/libgcc.a

Troy
0
 

Author Comment

by:tdsimpso
ID: 11685694
Here is something I found that might be helpful, but I can't make much sense of it.  Can any of you?

http://www.mail-archive.com/dev@httpd.apache.org/msg14563.html
0
 

Author Comment

by:tdsimpso
ID: 11685722
0
 
LVL 38

Accepted Solution

by:
yuzh earned 300 total points
ID: 11690543
I have not used gcc3.4.1 to build a webserver myself. The last time I built a web server was 5 months
ago, using GUN gcc3.3.2 + zlib +_ libgcc + glib + openssl + libtool + libiconv +autoconf + automake +
flex + boson, then add MySQL, php ....etc.

You need to set PATH and LD_LIBRARY_PATH to use all the tools & libs in the packages.
then export PATH LD_LIBRARY_PATH

then run configure.

BTW, apache-2.0.50 binary package with ssl support is available in :
http://sunfreeware.com/

If you don't like the default installation, have a look at:
http://www.experts-exchange.com/Operating_Systems/Solaris/Q_21070104.html

0
 
LVL 51

Assisted Solution

by:ahoffmann
ahoffmann earned 200 total points
ID: 11692454
set a propper LD_LIBRARY_PATH before starting httpd
it needs to contain a path to libgcc.a or libgcc.so

or go with yuzh's suggestion
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question