Closed GoogleCodeExporter closed 8 years ago
My mistake. I had to change the config.m4 file to --with-sweph and added the
PHP_ADD_LIBRARY_WITH_PATH(swe,/user/local/lib,SWEPH_SHARED_LIBADD) command to
include the libswe.a archive. Because using amd64 bit this resulted in a
relocation R_X86_64_32 against `' can not be used
when making a shared object; recompile with -fPIC
type error.
So I had to change the cflags in the orginial sweph source makefile to CFLAGS
+=-g -fPIC.
Now it can be successfully compiled and used as a php extension.
Please consider this issue closed.
Original comment by czompocs...@gmail.com
on 17 May 2013 at 11:33
Original comment by cyjoelc...@gmail.com
on 17 Jul 2013 at 10:55
Original issue reported on code.google.com by
czompocs...@gmail.com
on 13 May 2013 at 8:43