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 2009/02/02 21:38:44 UTC
DO NOT REPLY [Bug 46648] New: Apache 2.2.11 source code compilation
for 64 bit on solaris 10 machine
https://issues.apache.org/bugzilla/show_bug.cgi?id=46648
Summary: Apache 2.2.11 source code compilation for 64 bit on
solaris 10 machine
Product: Apache httpd-2
Version: 2.2.11
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: blocker
Priority: P2
Component: Build
AssignedTo: bugs@httpd.apache.org
ReportedBy: praveen.x.pant@jpmchase.com
Hi,
We are trying to compile 64 bit of Apache on a solaris 10 machine . We run into
an issue when running the compile with the error messages in the log as :
gcc -DHAVE_CONFIG_H -DPACKAGE=\"expat\" -DVERSION=\"expat_1.95.2\" -I. -I..
-I/local/apache22build_64/httpd-2
.2.11/srclib/apr-util/xml/expat/lib -m64 -DSSL_EXPERIMENTAL_ENGINE -c xmlrole.c
-fPIC -DPIC -o .libs/xmlrole.
o
gcc -DHAVE_CONFIG_H -DPACKAGE=\"expat\" -DVERSION=\"expat_1.95.2\" -I. -I..
-I/local/apache22build_64/httpd-2
.2.11/srclib/apr-util/xml/expat/lib -m64 -DSSL_EXPERIMENTAL_ENGINE -c xmlrole.c
-o xmlrole.o >/dev/null 2>&1
/bin/bash ../libtool --mode=link gcc -version-info 1:0:1
-DSSL_EXPERIMENTAL_ENGINE -o libexpat.la -rpath /lo
cal/apache22build_64/apache22_64/lib xmlparse.lo xmltok.lo xmlrole.lo
gcc -shared -Wl,-h -Wl,libexpat.so.0 -o .libs/libexpat.so.0.1.0
.libs/xmlparse.o .libs/xmltok.o .libs/xmlrole
.o -lc
ld: fatal: file .libs/xmlparse.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to .libs/libexpat.so.0.1.0
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `libexpat.la'
Current working directory
/local/apache22build_64/httpd-2.2.11/srclib/apr-util/xml/expat/lib
*** Error code 1
The following command caused the error:
list='lib'; \
for dir in $list; do \
cd $dir; make; cd ..; \
done
make: Fatal error: Command failed for target `build-subdirs'
Current working directory
/local/apache22build_64/httpd-2.2.11/srclib/apr-util/xml/expat
*** Error code 1
The following command caused the error:
otarget=`echo all-recursive | sed s/-recursive//`; \
list='xml dbd dbm encoding hooks buckets misc crypto uri strmatch memcache
dbm/sdbm ldap xlate xml/expat'; \
for i in $list; do \
if test -f "$i/Makefile"; then \
target="$otarget"; \
echo "Making $target in $i"; \
The configure command that we used is :
export CFLAGS=-m64
export CPPFLAGS=-m64
./configure \
--prefix=/local/apache22build_64/apache22_$arch \
--enable-mods-shared=all \
--enable-deflate \
--enable-so \
--enable-proxy=shared \
--enable-ssl=static \
--enable-cgid=shared \
--enable-cache=shared \
--enable-mem-cache=shared \
--enable-file-cache=shared \
--enable-disk-cache=shared \
--with-z \
--with-ssl=/local/apache22build_64/apache22_$arch/openssl \
--without-gdbm \
--without-ndbm \
--without-berkeley-db \
--with-mpm=$mpm \
CFLAGS=-DSSL_EXPERIMENTAL_ENGINE \
CPPFLAGS=-m64
--
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 46648] Apache 2.2.11 source code compilation for
64 bit on solaris 10 machine
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46648
Nick Kew <ni...@webthing.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
Severity|blocker |normal
--- Comment #1 from Nick Kew <ni...@webthing.com> 2009-05-24 17:26:55 PST ---
This is trying and failing to build expat: i don't know why, and I can't
reproduce it. Is this a cross-compile you're attempting? What's your
configure line?
I agree it's a bug to bundle expat, and doubly so if it won't even build.
However, the workaround is simple: just install expat before building apr or
httpd. You should see the crucial files:
/usr/include/expat.h
/usr/lib/libexpat.so
and apache's configure will pick them up. In a cross-compile, you should also
be able to use the target system's native expat.
Marking severity down to "normal" because of the workaround.
--
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 46648] Apache 2.2.11 source code compilation for
64 bit on solaris 10 machine
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46648
Eric Covener <co...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution| |WONTFIX
--- Comment #2 from Eric Covener <co...@gmail.com> 2011-09-17 19:44:54 UTC ---
Usually it's safer/suggested to set CC to include your compiler and arch
selection flags for the apache build with included dependencies. e.g CC="gcc
-m64"
--
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