Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-07-30
12
Medium Priority
?
581 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 
LVL 38

Accepted Solution

by:
yuzh earned 1200 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 800 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Loops Section Overview
Suggested Courses

877 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