Webboard: php extn. make error(s) - Mint14

[email protected] Sat, 2 Nov 2013 02:03:21 +0400 (MSK)
Newsgroups gmane.comp.web.mnogosearch.php-frontend
Message-ID <[email protected]>
Author: mark
Email: [email protected]
Message:
Linux mark-desktop 3.5.0-37-generic #58-Ubuntu SMP Mon Jul 8 22:07:55 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

$ dpkg -i mnogosearch_3.3.14-1.static_amd64.deb
$ indexer -Ecreate 
## No problems

## working dir
## unpack mnogosearch-3.3.14.tar.gz
~/Downloads/mnogosearch-3.3.14/php

## attempt to build php module
$ which phpize
$ sudo apt-get install php5-dev

$ phpize
$ ./configure --with-mnogosearch=/usr/lib/mnogosearch
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
.....
checking for mnoGoSearch version... configure: error: udm-config script not found in /usr/lib/mnogosearch/bin

$ which udm-config
/usr/bin/udm-config

$ ./configure --with-mnogosearch=/usr
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
.....
## configure OK

$ make
.... error
## locate header files
 $ sudo find / -name udm_config.h
/home/mark/Downloads/mnogosearch-3.3.14/include/udm_config.h
/usr/include/mnogosearch/udm_config.h

## edit Makefile to include header files
- added    -I/usr/include/mnogosearch to INCLUDE path

 $ make
.... linker errors 
sudo apt-get install libmysqlclient-dev
sudo apt-get install libpq-dev (along with libpg5)

$ make
/bin/bash /home/mark/Downloads/mnogosearch-3.3.14/php/libtool --mode=link cc -DPHP_ATOM_INC -I/home/mark/Downloads/mnogosearch-3.3.14/php/include -I/home/mark/Downloads/mnogosearch-3.3.14/php/main -I/home/mark/Downloads/mnogosearch-3.3.14/php -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/mnogosearch  -DHAVE_CONFIG_H  -g -O2   -o mnogosearch.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/mark/Downloads/mnogosearch-3.3.14/php/modules  php_mnogo.lo -Wl,-rpath,/usr/lib/mnogosearch -L/usr/lib/mnogosearch -Wl,-rpath,/opt/pgsql-static/lib -L/opt/pgsql-static/lib -Wl,-rpath,/opt/mysql-static/lib -L/opt/mysql-static/lib -lm -lrt -lz -lmysqlclient -ldl -lpq -lc
 rypt -lmnogosearch -lmnogocharset
libtool: link: cc -shared  -fPIC -DPIC  .libs/php_mnogo.o   -L/usr/lib/mnogosearch -L/opt/pgsql-static/lib -L/opt/mysql-static/lib -lm -lrt -lz -lmysqlclient -ldl -lpq -lcrypt /usr/lib/mnogosearch/libmnogosearch.a /usr/lib/mnogosearch/libmnogocharset.a  -O2 -Wl,-rpath -Wl,/usr/lib/mnogosearch -Wl,-rpath -Wl,/opt/pgsql-static/lib -Wl,-rpath -Wl,/opt/mysql-static/lib   -Wl,-soname -Wl,mnogosearch.so -o .libs/mnogosearch.so
/usr/bin/ld: /usr/lib/mnogosearch/libmnogosearch.a(spell.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/lib/mnogosearch/libmnogosearch.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [mnogosearch.la] Error 1


Reply: <http://www.mnogosearch.org/board/message.php?id=21573>

_______________________________________________
Php-frontend mailing list
[email protected]
http://lists.mnogosearch.org/listinfo/php-frontend