You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2011/08/25 00:07:45 UTC

DO NOT REPLY [Bug 51719] New: Compiling http-2.2.19 in 64-bit Undefined symbol apr_md4_set_xlate

https://issues.apache.org/bugzilla/show_bug.cgi?id=51719

             Bug #: 51719
           Summary: Compiling http-2.2.19 in 64-bit Undefined symbol
                    apr_md4_set_xlate
           Product: Apache httpd-2
           Version: 2.2.19
          Platform: PC
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: pgoins@1sync.org
    Classification: Unclassified


I am trying to compile http-2.2.19 with all modules on Solaris x86-64 and
getting the following error when gmake tries to build httpd:
 Undefined                       first referenced
 symbol                             in file
apr_md4_set_xlate                   server/.libs/libmain.a(exports.o)
ld: fatal: Symbol referencing errors. No output written to httpd
collect2: ld returned 1 exit status
gmake[1]: *** [httpd] Error 1

I have compiled the following from source in 64-bit:
apr-1.2.2.tar                         libtool-2.4.tar
apr-1.4.5.tar                         libxml2-sources-2.7.8.tar
apr-util-1.3.12.tar                   mod_ssl-2.8.30-1.3.39.tar
db-5.2.28.NC.tar                      openldap-stable-20100719.tar
expat-2.0.1.tar                       openssl-1.0.0d.tar
gettext-0.18.1.1.tar                  php-5.3.6.tar
libiconv-1.13.1.tar                   zlib-1.2.5.tar

Here is my environment variables of significance:
LDFLAGS=-L/usr/local/apr/lib
MANPATH=/usr/local/man:/usr/man:/usr/share/man:/usr/openwin/share:/usr/opt/SUNWmd/man:/opt/SUNWexplo/man:/usr/local/ssl/man:/usr/openwin/man:/usr/dt/man:/opt/VRTS/man
TERM=vt100
SHELL=/usr/bin/bash
CPPFLAGS=-I/usr/local/apr/include
LD_LIBRARY_PATH=/usr/lib/amd64:/usr/local/amd64/lib:/usr/sfw/lib/amd64:/usr/local/ssl/lib:/usr/local/lib:/lib:/usr/lib:/usr/lib/sparcv9:/usr/local/lib:/usr/local/ssl/lib:/usr/lib/sparcv9
PATH=/bin:/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/ucb/bin:/usr/opt/SUNWmd/sbin:/usr/sfw/bin:/usr/sfw/sbin:/usr/openwin/bin:/usr/ccs/bin:/usr/xpg4/bin:/root/bin
LANG=C
CC=/usr/sfw/bin/gcc -m64

Here is my Configure command:
./configure \
--prefix=/usr/apache64 \
--enable-so \
--enable-rewrite \
--enable-modules=all \
--enable-mods-shared=ssl \
--with-ssl=/usr/local/ssl \
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr \
--target=x86_64-pc-solaris2.1x \
--build=x86_64-pc-solaris2.1x \
--with-expat=builtin \
--with-mpm=worker \
--enable-lib64 \
--with-ldap-lib=/usr/local/lib \
--with-ldap-include=/usr/local/include

The compile works fine without any modules but I need specifically for the ssl
module to work.

Thanks in advance.

Paul

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 51719] Compiling http-2.2.19 in 64-bit Undefined symbol apr_md4_set_xlate

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51719

Paul <pg...@1sync.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Paul <pg...@1sync.org> 2011-08-25 21:04:33 UTC ---
Thanks Nick.
Please close the ticket. Your suggestion helped me find a solution.  Upon
recompiling apr-utils, the last message is:
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/apr/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
build/install.sh -c -m 644 aprutil.exp /usr/local/apr/lib
build/install.sh -c -m 755 apu-config.out /usr/local/apr/bin/apu-1-config

So I put in a a LDFLAG mapped to /usr/local/apr/lib.
export LDFLAGS=-L/usr/local/apr/lib

After that, compiling apache in 64-bit Solaris x86 worked fine.

Thanks again.

Paul

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 51719] Compiling http-2.2.19 in 64-bit Undefined symbol apr_md4_set_xlate

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51719

--- Comment #1 from Nick Kew <ni...@webthing.com> 2011-08-24 23:34:47 UTC ---
You may have a legitimate bug here, but I think it's unlikely.  It implies you
configured against an apr-util with apr_xlate, but are linking against a
version without it.  Is it possible that you have two (or more) different
apr_util versions?

THe practical fix is easy: use a version with apr_xlate!  You may have to tell
apr-util where to find iconv, if the latter is not system-provided.

If there is a build bug, it's make_exports mishandling preprocessor directives!

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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