httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Cutright <acutri...@borland.com>
Subject Re: Undefined symbols when compiling Apache 2.0.36 on Solaris 2.7
Date Fri, 07 Jun 2002 20:21:49 GMT
hi,

it appeared to me from the configure script that --disable-http causes the
http support to be compiled and linked statically, rather than removing it
from the server altogether. looks like i'm in error.

i'm tweaking this option because i'm getting an error (which is ignored by
the make scripts) when linking (this error is from 2.0.35, not .36)

/bin/sh /vobs/WEB/src/apache2/src/srclib/apr/libtool --silent --mode=link
cc  -g -mt -DNO_DBM_REWRITEMAP    -DSOLARIS2=6 -D_POSIX_PTHREAD_SEMANTICS
-D_REENTRANT    -I. -I/vobs/WEB/src/apache2/src/os/unix
-I/vobs/WEB/src/apache2/src/server/mpm/worker
-I/vobs/WEB/src/apache2/src/modules/http
-I/vobs/WEB/src/apache2/src/modules/proxy
-I/vobs/WEB/src/apache2/src/include
-I/vobs/WEB/src/apache2/src/srclib/apr/include
-I/vobs/WEB/src/apache2/src/srclib/apr-util/include
-I/vobs/WEB/ssl_inst/include/openssl -I/vobs/WEB/ssl_inst/include
-I/vobs/WEB/src/apache2/src/modules/dav/main
-I/vobs/WEB/src/apache2/src/srclib/apr-util/include
-I/vobs/WEB/src/apache2/src/srclib/apr-util/xml/expat/lib -export-dynamic
-L/vobs/WEB/ssl_inst/lib -R/vobs/WEB/ssl_inst/lib   -o httpd  modules.lo
-L/vobs/WEB/ssl_inst/lib -R/vobs/WEB/ssl_inst/lib   modules/http/mod_http.la
modules/mappers/mod_so.la  server/mpm/worker/libworker.la
server/libmain.la  os/unix/libos.la
/vobs/WEB/src/apache2/src/srclib/pcre/libpcre.la
/vobs/WEB/src/apache2/src/srclib/apr-util/libaprutil.la
/vobs/WEB/src/apache2/src/srclib/apr/libapr.la -lm -lsocket -lnsl -lresolv
-ldl -lssl -lcrypto
/vobs/WEB/src/apache2/src/srclib/apr-util/xml/expat/lib/libexpat.la
ild: calling ld to finish link -- (internal error) ranlib_library()
unexpected EL_UNINITIALIZED : modules/http/.libs/mod_http.al

i've been able to determine the error is being emitted by
/opt/SUNWspro/bin/cc, but i have not been able to figure out what it means,
etc. i'm in the process of trying to figure out what _should_ bin in
mod_http.al, and what's possibly missing..

we're using only Sun tools to compile, link, etc.

Ryan Bloom wrote:

> If you --disable-http, then you are telling Apache not to compile HTTP
> support.  That option is currently unsupported, but because of how the
> autoconf magic is written, it is an allowed option.  In fact, the http
> module MUST be compiled statically, or you will have the same problem.
> Just re-run configure with --enable-http
>
> Ryan
>
> ----------------------------------------------
> Ryan Bloom                  rbb@covalent.net
> 645 Howard St.              rbb@apache.org
> San Francisco, CA
>
> > -----Original Message-----
> > From: Andy Cutright [mailto:acutright@borland.com]
> > Sent: Friday, June 07, 2002 1:00 PM
> > To: users@httpd.apache.org
> > Subject: Re: Undefined symbols when compiling Apache 2.0.36 on Solaris
> 2.7
> >
> > any luck solving this problem? i've run into it as well.. it appears
> the -
> > -disable-http is the problem. looks like http_request.c isn't being
> built,
> > which leads to the missing symbol problem. i'm trying to figure out
> why
> > _that_ isn't beging built..
> >
> > cheers,
> > andy
> >
> > Andrew Sanderson wrote:
> >
> > > I am having trouble getting Apache 2.0.36 to compile on Solaris 2.7.
> I
> > am
> > > using gcc 3.04 and the native assembler.  I have added /usr/lib to
> the
> > > beginning of my path.  I have tried to compile with mod_so enabled
> and
> > > everything else disabled, as well as with everything shared and
> mod_so
> > > enabled.
> > >
> > > Here is what I am adding to my path:
> > > PATH=/usr/lib:/usr/ccs/bin:/usr/local/apps/gcc-
> > 3.0.4/bin:/usr/local/apps/binutils/binutils-2.10/bin:$PATH
> > >
> > > Here is the configure command:
> > > ./configure --prefix=/scratch/s2/ams/installs --with-mpm=prefork --
> > enable-so -disable-access -disable-auth -disable-auth_anon -disable-
> > auth_dbm -disable-file_cache -disable-echo -disable-charset_lite
> -disable-
> > cache -disable-disk_cache -disable-mem_cache -disable-example
> -disable-
> > ext_filter -disable-case_filter -disable-case_filter_in
> -disable-deflate -
> > disable-include -disable-log_config -disable-env -disable-mime_magic -
> > disable-cern_meta -disable-expires -disable-headers -disable-usertrack
> -
> > disable-usertrack -disable-unique_id -disable-setenvif -disable-proxy
> -
> > disable-proxy_connect -disable-proxy_ftp -disable-proxy_http
> -disable-ssl
> > -disable-optional_hook_export -disable-optional_hook_import -disable-
> > optional_fn_import -disable-optional_fn_export -disable-bucketeer -
> > disable-http -disable-mime -disable-dav -disable-status
> -disable-autoindex
> > -disable-asis -disable-info -disable-suexec -disable-cgi -disable-cgid
> -
> > disable-dav_fs -disable-vhost_alias -disable-negotiation -disable!
> > > -dir -disable-imap -disable-actions -disable-speling
> -disable-userdir -
> > disable-alias -disable-rewrite
> > >
> > > configure completes fine, the following error happens when running
> make.
> > >
> > > make[1]: Entering directory `/scratch/s2/ams/2.0/httpd-2.0.36'
> > > /bin/bash /scratch/s2/ams/2.0/httpd-2.0.36/srclib/apr/libtool
> --silent
> > > --mode=link gcc  -g -O2 -pthreads    -DSOLARIS2=7
> > > -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
> -DAP_HAVE_DESIGNATED_INITIALIZER
> > > -I. -I/scratch/s2/ams/2.0/httpd-2.0.36/os/unix
> > > -I/scratch/s2/ams/2.0/httpd-2.0.36/server/mpm/prefork
> > > -I/scratch/s2/ams/2.0/httpd-2.0.36/modules/http
> > > -I/scratch/s2/ams/2.0/httpd-2.0.36/modules/proxy
> > > -I/scratch/s2/ams/2.0/httpd-2.0.36/include
> > > -I/scratch/s2/ams/2.0/httpd-2.0.36/srclib/apr/include
> > > -I/scratch/s2/ams/2.0/httpd-2.0.36/srclib/apr-util/include
> > > -I/usr/local/include -export-dynamic    -o httpd  modules.lo
> > > modules/mappers/mod_so.la server/mpm/prefork/libprefork.la
> > > server/libmain.la os/unix/libos.la
> > > /scratch/s2/ams/2.0/httpd-2.0.36/srclib/pcre/libpcre.la
> > > /scratch/s2/ams/2.0/httpd-2.0.36/srclib/apr-util/libaprutil.la
> > > /scratch/s2/ams/2.0/httpd-2.0.36/srclib/apr/libapr.la -lrt -lm
> -lsocket
> > > -lnsl -lresolv -ldl -lgdbm -ldb -L/usr/local/lib -lexpat
> > > Undefined                       first referenced
> > >  symbol                             in file
> > > ap_internal_redirect
> server/.libs/libmain.al(exports.lo)
> > > ap_byterange_filter
> server/.libs/libmain.al(exports.lo)
> > > ap_http_input_filter_handle
> server/.libs/libmain.al(protocol.lo)
> > > ap_internal_fast_redirect
> server/.libs/libmain.al(exports.lo)
> > > ap_basic_http_header
> server/.libs/libmain.al(exports.lo)
> > > ap_method_list_vdo
> server/.libs/libmain.al(exports.lo)
> > > ap_method_list_remove
> server/.libs/libmain.al(exports.lo)
> > > ap_method_in_list
> server/.libs/libmain.al(exports.lo)
> > > ap_index_of_response
> server/.libs/libmain.al(exports.lo)
> > > ap_setup_client_block
> server/.libs/libmain.al(exports.lo)
> > > ap_method_list_add
> server/.libs/libmain.al(exports.lo)
> > > ap_send_error_response
> server/.libs/libmain.al(exports.lo)
> > > ap_internal_redirect_handler
> server/.libs/libmain.al(exports.lo)
> > > ap_allow_standard_methods
> server/.libs/libmain.al(exports.lo)
> > > ap_set_keepalive
> server/.libs/libmain.al(exports.lo)
> > > ap_method_name_of
> server/.libs/libmain.al(exports.lo)
> > > ap_get_status_line
> server/.libs/libmain.al(exports.lo)
> > > ap_discard_request_body
> server/.libs/libmain.al(exports.lo)
> > > ap_send_http_trace
> server/.libs/libmain.al(exports.lo)
> > > ap_set_etag
> server/.libs/libmain.al(exports.lo)
> > > ap_make_etag
> server/.libs/libmain.al(exports.lo)
> > > ap_allow_methods
> server/.libs/libmain.al(exports.lo)
> > > ap_get_client_block
> server/.libs/libmain.al(exports.lo)
> > > ap_should_client_block
> server/.libs/libmain.al(exports.lo)
> > > ap_method_registry_init
> server/.libs/libmain.al(exports.lo)
> > > ap_method_register
> server/.libs/libmain.al(exports.lo)
> > > ap_set_content_type
> server/.libs/libmain.al(exports.lo)
> > > ap_copy_method_list
> server/.libs/libmain.al(exports.lo)
> > > ap_make_method_list
> server/.libs/libmain.al(exports.lo)
> > > ap_meets_conditions
> server/.libs/libmain.al(exports.lo)
> > > ap_send_http_options
> server/.libs/libmain.al(exports.lo)
> > > ap_method_list_do
> server/.libs/libmain.al(exports.lo)
> > > ap_method_number_of
> server/.libs/libmain.al(config.lo)
> > > ap_http_header_filter
> server/.libs/libmain.al(exports.lo)
> > > ap_die
> server/.libs/libmain.al(exports.lo)
> > > ap_clear_method_list
> server/.libs/libmain.al(exports.lo)
> > > ld: fatal: Symbol referencing errors. No output written to
> .libs/httpd
> > > collect2: ld returned 1 exit status
> > > make[1]: *** [httpd] Error 1
> > > make[1]: Leaving directory `/scratch/s2/ams/2.0/httpd-2.0.36'
> > > make: *** [all-recursive] Error 1
> > >
> > > Any help is greatly appreciated!
> > >
> > > Thanks,
> > >
> > > Andrew
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

--
Borland -- Enabling a new digital world where our customers have the
freedom of choice to develop, deploy, and integrate applications across
the enterprise and  the Internet. http://www.borland.com

Don't miss the 13th Annual Borland® Conference, May 18-22 in Anaheim,
California. Hundreds of sessions are being offered  to help you enable
the new digital world  with best-in-class solutions for Web Services,
Java™ technologies, mobile and enterprise computing, cross-platform
development, .NET™ and J2EE™  platform technologies, and more!
Register today! http://www.borland.com/conf2002

This e-mail, and any attachments thereto, is intended only for use by the
addressee(s) named herein and may contain legally privileged and/or
confidential
information.  If you are not the intended recipient of this e-mail, you are
hereby
notified that any dissemination, distribution or copying of this e-mail, and
any
attachments thereto, is strictly prohibited.  If you have received this
e-mail in
error,
please immediately and permanently delete the original and any copy of any
e-mail
and any printout thereof.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message