spanesso / php-sweph

Automatically exported from code.google.com/p/php-sweph
0 stars 0 forks source link

Stuck at configure )) #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
CentOS 5.6 , PHP 5.1.6, gcc 4.1.2

[root@cenos2-32 php-sweph]# ./configure --enable-sweph
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking target system type... i686-redhat-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main 
-I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext
checking for PHP extension directory... /usr/lib/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking for re2c... no
configure: WARNING: You will need re2c 0.9.11 or later if you want to 
regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable sweph support... yes, shared
checking for sweph files in default path... not found
configure: error: Please reinstall the sweph distribution

Original issue reported on code.google.com by guli...@gmail.com on 23 Apr 2011 at 7:57

GoogleCodeExporter commented 8 years ago
OK, I'm past this point. I copied all sweph .h files to /usr/local/include and 
all this went through. Now I have compiled module sweph.so it is loaded in 
httpd but gives error:
[Sat Apr 23 11:41:31 2011] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php/modules/sweph.so' - /usr/lib/php/modules/sweph.so: undefined 
symbol: swe_jdet_to_utc in Unknown on line 0

Original comment by guli...@gmail.com on 23 Apr 2011 at 6:45

GoogleCodeExporter commented 8 years ago
Upgraded my PHP to 5.2.10, recompiled everything - still no go (((

PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php/modules/sweph.so' - /usr/lib/php/modules/sweph.so: undefined 
symbol: swe_jdet_to_utc in Unknown on line 0

Original comment by guli...@gmail.com on 26 Apr 2011 at 2:02

GoogleCodeExporter commented 8 years ago
Could you make sure the libswe.a you're linking is >= version 1.76?
swe_jdet_to_utc() is introduced in v.1.76.

Original comment by cyjoelc...@gmail.com on 21 Nov 2011 at 6:56

GoogleCodeExporter commented 8 years ago
Issue closed. The php-sweph version number scheme changed to match the libswe 
version required.

Original comment by cyjoelc...@gmail.com on 22 Nov 2011 at 5:16

GoogleCodeExporter commented 8 years ago
I too am having difficulty in the ./configure -enable-sweph step.  The error 
returned is 

"checking for sweph files in default path... not found
configure: error: Please reinstall the sweph distribution"

What files is it looking for, and what directory are they supposed to be in?

Original comment by jameshun...@gmail.com on 9 Jul 2014 at 10:46