php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45393 compile fails: cannot find -lintl
Submitted: 2008-06-30 17:46 UTC Modified: 2010-08-28 17:01 UTC
Votes:10
Avg. Score:4.9 ± 0.3
Reproduced:9 of 9 (100.0%)
Same Version:1 (11.1%)
Same OS:2 (22.2%)
From: fborot at hotmail dot com Assigned: thekid (profile)
Status: Closed Package: Sybase-ct (ctlib) related
PHP Version: 5.2.8 OS: linux-redhat
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fborot at hotmail dot com
New email:
PHP Version: OS:

 

 [2008-06-30 17:46 UTC] fborot at hotmail dot com
Description:
------------
Hello
When running "make" after a successful "configure --with-sybase-c=path/to/sybase/" the compile process stops and yileds several errors, starting with:

/bin/sh /usr/local/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/sybase/ -I/usr/local/php-5.2.6/ext/sybase/ -DPHP_ATOM_INC -I/usr/local/php-5.2.6/include -I/usr/local/php-5.2.6/main -I/usr/local/php-5.2.6 -I/usr/include/libxml2 -I/usr/local/php-5.2.6/ext/date/lib -I/usr/include/mysql -I/home/sybase/include -I/usr/local/php-5.2.6/TSRM -I/usr/local/php-5.2.6/Zend    -I/usr/include -g -O2  -prefer-non-pic -c /usr/local/php-5.2.6/ext/sybase/php_sybase_db.c -o ext/sybase/php_sybase_db.lo
/usr/local/php-5.2.6/ext/sybase/php_sybase_db.c:39:22: error: sybfront.h: No such file or directory
/usr/local/php-5.2.6/ext/sybase/php_sybase_db.c:40:19: error: sybdb.h: No such file or directory
/usr/local/php-5.2.6/ext/sybase/php_sybase_db.c:41:22: error: syberror.h: No such file or directory

it looks like sybdb.h, sybfront.h and syberror.h can no be found


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-30 18:13 UTC] fborot at hotmail dot com
Now I used --with-sybase-ct=/opt/sybase-11.9.2/OCS-15_0 as suggested online since sybase changed the location of the include folder and now  it goes a little furhter but the new error is:


Zend/zend_strtod.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo sapi/cgi/cgi_main.lo sapi/cgi/getopt.lo main/internal_functions.lo -lcrypt -lsybtcl -lintl -lcomn -lct -lcs -lcrypt -lrt -lmysqlclient -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt  -o sapi/cgi/php-cgi
/usr/bin/ld: cannot find -lintl
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
[root@RHEL-28 php-5.2.6]#
 [2008-08-01 19:16 UTC] pioklo at serveradmin dot pl
The reason is that with OpenClient15 the library "libintl" is renamed in
"libsybintl" 

Try this patch 

--- php-5.2.6/ext/sybase_ct/config.m4   2007-07-03 19:25:35.000000000 +0200
+++ php-5.2.6/ext/sybase_ct/config.m4.diff      2008-08-01 20:40:36.000000000 +0200
@@ -40,7 +40,7 @@
     PHP_ADD_LIBRARY(comn,, SYBASE_CT_SHARED_LIBADD)
     PHP_ADD_LIBRARY(intl,, SYBASE_CT_SHARED_LIBADD)

-    SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs -lct -lcomn -lintl"
+    SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR  -lsybcs -lsybct -lsybcomn -lsybintl"

     PHP_CHECK_LIBRARY(tcl, netg_errstr, [
       PHP_ADD_LIBRARY(tcl,,SYBASE_CT_SHARED_LIBADD)
 [2008-11-09 13:13 UTC] thekid@php.net
Please see if http://sitten-polizei.de/php/sybase-configm4.diff works for you.
 [2009-02-03 15:42 UTC] administrateur at goldzoneweb dot info
Hi all,

I made a patch. It works with RHEL 5 U3, PHP 5.1.6 and Sybase 12.5 et 15.0.3.

--- php-5.1.6/ext/sybase_ct/config.m4   2009-02-03 12:11:44.000000000 +0100
+++ php-5.1.6/ext/sybase_ct/config.m4-ct        2009-02-03 14:04:45.000000000 +0100
@@ -35,15 +35,15 @@
     PHP_ADD_LIBRARY(ct,, SYBASE_CT_SHARED_LIBADD)
     SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lct"
   else
-    PHP_ADD_LIBRARY(cs,, SYBASE_CT_SHARED_LIBADD)
-    PHP_ADD_LIBRARY(ct,, SYBASE_CT_SHARED_LIBADD)
-    PHP_ADD_LIBRARY(comn,, SYBASE_CT_SHARED_LIBADD)
-    PHP_ADD_LIBRARY(intl,, SYBASE_CT_SHARED_LIBADD)
-  
-    SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs -lct -lcomn -lintl"
+    PHP_ADD_LIBRARY(sybcs,, SYBASE_CT_SHARED_LIBADD)
+    PHP_ADD_LIBRARY(sybct,, SYBASE_CT_SHARED_LIBADD)
+    PHP_ADD_LIBRARY(sybcomn,, SYBASE_CT_SHARED_LIBADD)
+    PHP_ADD_LIBRARY(sybintl,, SYBASE_CT_SHARED_LIBADD)

-    PHP_CHECK_LIBRARY(tcl, netg_errstr, [
-      PHP_ADD_LIBRARY(tcl,,SYBASE_CT_SHARED_LIBADD)
+    SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs -lsybct -lsybcomn -lsybintl"
+ 
+    PHP_CHECK_LIBRARY(sybtcl, netg_errstr, [
+      PHP_ADD_LIBRARY(sybtcl,,SYBASE_CT_SHARED_LIBADD)
     ],[
       PHP_ADD_LIBRARY(sybtcl,,SYBASE_CT_SHARED_LIBADD)
     ],[
 [2009-04-21 04:14 UTC] hexes at mail dot ru
PHP is trying to find the header files in the old directory structure? 
Prior to 12.0 release, the include file could be found here: 
   /opt/sybase/include 
 From the 12.0 release on, it was moved to (following example is for 
15.0): 
   /opt/sybase/OCS-15_0/include
 [2009-04-22 08:02 UTC] hexes at mail dot ru
Env vars for Sybase

SYBASE="/opt/sybase"
LDPATH="/opt/sybase/OCS-15_0/lib"
SYBASE_ASE="ASE-15_0"
PATH="/opt/sybase/ASE-15_0/bin:/opt/sybase/ASE-15_0/install"
SYBASE_OCS="OCS-15_0"
PATH="/opt/sybase/OCS-15_0/bin"
LD_LIBRARY_PATH="/opt/sybase/ASE-15_0/lib:/opt/sybase/OCS-
15_0/lib:/opt/sybase/OCS-15_0/lib3p"
INCLUDE="/opt/sybase/OCS-15_0/include"
LIB="/opt/sybase/OCS-15_0/lib"
SYBROOT="/opt/sybase"
 [2009-04-27 16:57 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-05-05 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-11-13 15:24 UTC] juanitourquiza at gmail dot com
The made this:

[root@uio001cen1 sybase_ct]# diff -u config.m4 nuevo.diff > parche.patch        
[root@uio001cen1 sybase_ct]# patch < parche.patch
patching file config.m4


The nuevo.diff have this:

--- php-5.1.6/ext/sybase_ct/config.m4   2009-02-03 12:11:44.000000000
+0100
+++ php-5.1.6/ext/sybase_ct/config.m4-ct        2009-02-03
14:04:45.000000000 +0100
@@ -35,15 +35,15 @@
     PHP_ADD_LIBRARY(ct,, SYBASE_CT_SHARED_LIBADD)
     SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lct"
   else
-    PHP_ADD_LIBRARY(cs,, SYBASE_CT_SHARED_LIBADD)
-    PHP_ADD_LIBRARY(ct,, SYBASE_CT_SHARED_LIBADD)
-    PHP_ADD_LIBRARY(comn,, SYBASE_CT_SHARED_LIBADD)
-    PHP_ADD_LIBRARY(intl,, SYBASE_CT_SHARED_LIBADD)
-  
-    SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs -lct -lcomn -lintl"
+    PHP_ADD_LIBRARY(sybcs,, SYBASE_CT_SHARED_LIBADD)
+    PHP_ADD_LIBRARY(sybct,, SYBASE_CT_SHARED_LIBADD)
+    PHP_ADD_LIBRARY(sybcomn,, SYBASE_CT_SHARED_LIBADD)
+    PHP_ADD_LIBRARY(sybintl,, SYBASE_CT_SHARED_LIBADD)

-    PHP_CHECK_LIBRARY(tcl, netg_errstr, [
-      PHP_ADD_LIBRARY(tcl,,SYBASE_CT_SHARED_LIBADD)
+    SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs -lsybct -lsybcomn
-lsybintl"
+ 
+    PHP_CHECK_LIBRARY(sybtcl, netg_errstr, [
+      PHP_ADD_LIBRARY(sybtcl,,SYBASE_CT_SHARED_LIBADD)
     ],[
       PHP_ADD_LIBRARY(sybtcl,,SYBASE_CT_SHARED_LIBADD)
     ],[

The result of archive config.m4 is:

--- php-5.1.6/ext/sybase_ct/config.m4   2009-02-03 12:11:44.000000000
+0100
+++ php-5.1.6/ext/sybase_ct/config.m4-ct        2009-02-03
14:04:45.000000000 +0100
@@ -35,15 +35,15 @@
     PHP_ADD_LIBRARY(ct,, SYBASE_CT_SHARED_LIBADD)
     SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lct"
   else
-    PHP_ADD_LIBRARY(cs,, SYBASE_CT_SHARED_LIBADD)
-    PHP_ADD_LIBRARY(ct,, SYBASE_CT_SHARED_LIBADD)
-    PHP_ADD_LIBRARY(comn,, SYBASE_CT_SHARED_LIBADD)
-    PHP_ADD_LIBRARY(intl,, SYBASE_CT_SHARED_LIBADD)
-
-    SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs -lct -lcomn -lintl"
+    PHP_ADD_LIBRARY(sybcs,, SYBASE_CT_SHARED_LIBADD)
+    PHP_ADD_LIBRARY(sybct,, SYBASE_CT_SHARED_LIBADD)
+    PHP_ADD_LIBRARY(sybcomn,, SYBASE_CT_SHARED_LIBADD)
+    PHP_ADD_LIBRARY(sybintl,, SYBASE_CT_SHARED_LIBADD)

-    PHP_CHECK_LIBRARY(tcl, netg_errstr, [
-      PHP_ADD_LIBRARY(tcl,,SYBASE_CT_SHARED_LIBADD)
+    SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs -lsybct -lsybcomn
-lsybintl"
+
+    PHP_CHECK_LIBRARY(sybtcl, netg_errstr, [
+      PHP_ADD_LIBRARY(sybtcl,,SYBASE_CT_SHARED_LIBADD)
     ],[
       PHP_ADD_LIBRARY(sybtcl,,SYBASE_CT_SHARED_LIBADD)
     ],[

I have the same problem
What is my error??

Greets
 [2010-08-28 17:01 UTC] thekid@php.net
-Status: No Feedback +Status: Closed
 [2010-08-28 17:01 UTC] thekid@php.net
Seems this is fixed by http://svn.php.net/viewvc?view=revision&revision=300806
 [2010-10-27 22:56 UTC] jacob dot steinberger at prodeasystems dot net
Using PHP 5.3.2, even with the patch (which isn't included in 5.3.2), this problem still persists. Not sure how the PHP community deals with this type of thing (re-opening, new bug, etc).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC