Bug 84150 - [patch] apache13-modssl doesn't compile with mod_accel on amd64
Summary: [patch] apache13-modssl doesn't compile with mod_accel on amd64
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-27 00:50 UTC by Björn König
Modified: 2005-07-28 05:48 UTC (History)
1 user (show)

See Also:


Attachments
apache13-modssl.diff (473 bytes, patch)
2005-07-27 00:50 UTC, Björn König
no flags Details | Diff
apache13-modssl,1.diff (1.01 KB, patch)
2005-07-27 23:20 UTC, Björn König
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Björn König 2005-07-27 00:50:18 UTC

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
Comment 1 Dirk Meyer freebsd_committer freebsd_triage 2005-07-27 18:44:14 UTC
State Changed
From-To: open->feedback


as far you can see in the errorlog -fPIC is already used. 
If you could pleases look further into this problem. 
and why your patch is fixing your problem?
Comment 2 Björn König 2005-07-27 23:15:46 UTC
Dirk Meyer wrote:

 > as far you can see in the errorlog -fPIC is already used.
 > If you could pleases look further into this problem.
 > and why your patch is fixing your problem?

I'm sorry, I truncated the relevant line where -fPIC is missing. I had 
some time today and delved into this problem and found out that a typo 
in a Makefile.tmpl of mod_accel causes it. I tried to contact the author 
of mod_accel, but my Russian is quite bad; it seems like that this issue 
has been already discussed on a Russian list that is referred by the 
home site of mod_accel. I hope my English mail to this list will be 
noticed. ;-)

I attached patch that adds a much better patch to the port.

Regards Björn
Comment 3 Björn König 2005-07-27 23:20:58 UTC
I forgot to attach the patch.
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2005-07-28 01:41:31 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dinoex

Over to maintainer.
Comment 5 Dirk Meyer freebsd_committer freebsd_triage 2005-07-28 05:48:31 UTC
State Changed
From-To: feedback->closed

committed, thanks.