Webboard: Linker error with 3.3.11

[email protected]
Newsgroups gmane.comp.web.mnogosearch.general
Message-ID <[email protected]>
Author: Alexander Barkov
Email: [email protected]
Message:
Hi, Amar.





> When I try to create the PHP module I get a linker error. With versions 3.3.9 and 3.3.10 the error didn't occur.

> 

> This is the output of make in "php":

> 



Thanks for reporting the problem!



<skip>





> lrt -lz /usr/lib64/mysql/libmysqlclient.so -L/usr/lib64 -lmnogosearch -lmnogocharset  -Wl,-rpath -Wl,/lib -Wl,-rpath -Wl,/usr/lib64/mysql -W

> l,-soname -Wl,mnogosearch.so -o .libs/mnogosearch.so

> /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lmnogosearch

> collect2: ld returned 1 exit status

> make: *** [mnogosearch.la] Error 1

> 

> I try to install as a non-root user.

> 

> My system:

> - SuSE Linux 64-Bit (2.6.32.12-0.7-xen #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/Linux)

> - PHP 5.3.5





This patch fixes the failure:





--- scripts/udm-config.in	21 Jan 2011 09:58:10 -0000	1.3

+++ scripts/udm-config.in	28 Mar 2011 06:16:31 -0000

@@ -1,9 +1,11 @@

 #!/bin/sh

 

-udmsearch_cflags="@CFLAGS@ -I@includedir@ @VIRT_INCLUDE@ @SOLID_INCLUDE@ @UNIXODBC_INCLUDE@ @IODBC_INCLUDE@ @EASYSOFT_INCLUDE@ @MYSQL_INCLUDE@ @PGSQL_INCLUDE@ @IBASE_INCLUDE@ @ORACLE8_INCLUDE@"

-udmsearch_libs="@LIBS@ @VIRT_LFLAGS@ @SOLID_LFLAGS@ @UNIXODBC_LFLAGS@ @IODBC_LFLAGS@ @EASYSOFT_LFLAGS@ @MYSQL_LFLAGS@ @PGSQL_LFLAGS@ @IBASE_LFLAGS@ @ORACLE8_LFLAGS@ @SSL_LFLAGS@ -L@libdir@ -lmnogosearch -lmnogocharset"

 prefix=@prefix@

 sysconfdir=@sysconfdir@

+exec_prefix=@exec_prefix@

+

+udmsearch_cflags="@CFLAGS@ -I@includedir@ @VIRT_INCLUDE@ @SOLID_INCLUDE@ @UNIXODBC_INCLUDE@ @IODBC_INCLUDE@ @EASYSOFT_INCLUDE@ @MYSQL_INCLUDE@ @PGSQL_INCLUDE@ @IBASE_INCLUDE@ @ORACLE8_INCLUDE@"

+udmsearch_libs="@LIBS@ @VIRT_LFLAGS@ @SOLID_LFLAGS@ @UNIXODBC_LFLAGS@ @IODBC_LFLAGS@ @EASYSOFT_LFLAGS@ @MYSQL_LFLAGS@ @PGSQL_LFLAGS@ @IBASE_LFLAGS@ @ORACLE8_LFLAGS@ @SSL_LFLAGS@ -L@libdir@ -lmnogosearch -lmnogocharset"

 

 usage()

 {





########################



I might not be obvious from the above patch.

The idea is just to put these lines:



prefix=@prefix@

sysconfdir=@sysconfdir@

exec_prefix=@exec_prefix@



before the lines:



udmsearch_cflags="@CFLAGS@ ...

udmsearch_libs="@LIBS@ ...





i.e. move "prefix=..." and "sysconfdir=..."

and also add "exec_prefix...".





to make udm-config.in look like:





#!/bin/sh



prefix=@prefix@

sysconfdir=@sysconfdir@

exec_prefix=@exec_prefix@

udmsearch_cflags="@CFLAGS@ ....

udmsearch_libs="@LIBS@ ....

....





You'll need to reinstall mnogosearch, to put the

newly generated udm-config into /bin directory.



Reply: <http://www.mnogosearch.org/board/message.php?id=21224>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.