Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jul 2005 01:42:40 +0200
From:      "Bjoern Koenig" <bkoenig@cs.tu-berlin.de>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Cc:        dinoex@FreeBSD.org
Subject:   ports/84150: apache13-modssl doesn't compile with mod_accel on amd64
Message-ID:  <1122421360.0@hoppel.local>
Resent-Message-ID: <200507262350.j6QNoIYN008968@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         84150
>Category:       ports
>Synopsis:       apache13-modssl doesn't compile with mod_accel on amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 26 23:50:18 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Bjoern Koenig
>Release:        FreeBSD 6.0-BETA1 amd64
>Organization:
>Environment:





>Description:


Building 'www/apache13-modssl' with mod_accel on amd64 fails.

[...]
cc -c -I/usr/local/include -I../../os/unix -I../../include  -DHARD_SERVER_LIMIT=512  -DDOCUMENT_LOCATION=\"/usr/local/www/data/\"  -DDEFAULT_PATH=\"/usr/local/bin:/bin:/usr/bin\"  -DACCEPT_FILTER_NAME=\"httpready\" -DFD_SETSIZE=1024 -DMOD_SSL=208122 -DMOD_ACCEL -DMOD_ACCEL_API -DMOD_ACCEL_CACHEMGR -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../../lib/expat-lite -O2 -fno-strict-aliasing -pipe  -DNO_IDEA `../../apaci` -fPIC -DSHARED_MODULE ap_ext_accel.c && mv ap_ext_accel.o ap_ext_accel.lo
ap_ext_accel.c: In function `ap_set_integer_slot':
ap_ext_accel.c:11: warning: cast to pointer from integer of different size
ap_ext_accel.c: In function `ap_set_kilobytes_slot':
ap_ext_accel.c:25: warning: cast to pointer from integer of different size
rm -f libaccel.so
gcc -shared -o libaccel.so mod_accel.lo accel_cachemgr.lo  accel_backend.o accel_cache.lo accel_gc.lo  accel_lock.lo accel_http.lo accel_connect.lo accel_util.lo  ap_other_child.lo ap_ext_accel.lo
/usr/bin/ld: accel_backend.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
accel_backend.o: could not read symbols: Bad value
*** Error code 1

Stop in /usr/ports/www/apache13-modssl/work/apache_1.3.33/src/modules/accel.
*** Error code 1
[...]


>How-To-Repeat:


# cd /usr/ports/www/apache13-modssl
# make -DWITH_APACHE_MODACCEL



>Fix:


--- apache13-modssl.diff begins here ---
--- Makefile.orig	Tue Jul 26 22:46:13 2005
+++ Makefile	Tue Jul 26 22:47:04 2005
@@ -202,6 +202,9 @@
 .if defined(WITH_APACHE_MODACCEL) || defined(APACHE_WITH_MODACCEL) || make(makesum) || defined(FETCH_ALL)
 MODACCEL_FILE=	mod_accel-${VERSION_MODACCEL}${EXTRACT_SUFX}
 MODACCEL_DISTFILE=	${MODACCEL_FILE}:mod_accel
+.if ${ARCH} == "amd64"
+CFLAGS+=	-fPIC
+.endif
 .endif
 .if defined(WITH_APACHE_MODACCEL) || defined(APACHE_WITH_MODACCEL)
 CONFLICTS+=	apache+mod_ssl-1.* \
--- apache13-modssl.diff ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1122421360.0>