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
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?
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
I forgot to attach the patch.
Responsible Changed From-To: freebsd-ports-bugs->dinoex Over to maintainer.
State Changed From-To: feedback->closed committed, thanks.