Hi Christian

> -----Original Message-----
> From: Christian Binder [mailto:[EMAIL PROTECTED]]
[Christian described problems compiling php, snipped]
> -----------------------------------------------
> /bin/sh /usr/local/src/php-4.2.3/libtool --silent --mode=link gcc -I. 
> -I/usr/local/src/php-4.2.3/ -I/usr/local/src/php-4.2.3/main 
> -I/usr/local/src/php-4.2.3 -I/usr/local/src/php-4.2.3/Zend 
> -I/usr/local/src/php-4.2.3/ext/mysql/libmysql -I/u03/sapdb//incl 
> -I/usr/local/src/php-4.2.3/ext/xml/expat 
> -I/usr/local/src/php-4.2.3/TSRM -g -O2   -o php 
> -export-dynamic  stub.lo 
> libphp4.la
> /usr/bin/ld: cannot find -lsqlrte
> collect2: ld returned 1 exit status
> make[1]: *** [php] Error 1
> make[1]: Leaving directory `/usr/local/src/php-4.2.3'
> make: *** [all-recursive] Error 1
> nevada:

Thank you for reporting this. Please apply following patches
in the php directory (copy the two paragraphs in separate files
and call "patch configure <configure-patch>" and after
changing to ext/odbc "patch config.m4 <config-patch>".


Regards  Thomas


----------------------------------------------
Dr. Thomas K�tter
SAP DB, SAP Labs Berlin


SAP DB is open source. Get it!    www.sapdb.org 


 




patch for ./configure:

*** configure.orig      Wed Dec 18 10:08:58 2002
--- configure   Wed Dec 18 10:08:52 2002
***************
*** 42171,42186 ****
    esac
  
        
-  case sqlrte in
-  c|c_r|pthread*) ;;
-  *)
- 
-    
-   LIBS="-lsqlrte $LIBS"
- 
- 
-   ;;
-   esac
  
      ODBC_TYPE=sapdb
      cat >> confdefs.h <<\EOF
--- 42171,42176 ----




patch for ./ext/odbc/config.m4:

*** config.m4.orig      Mon Mar  4 10:10:31 2002
--- config.m4   Wed Dec 18 09:18:19 2002
***************
*** 108,114 ****
      rm -f "$ODBC_LIB"
      cp "$ODBC_OBJS" "$ODBC_LIB"
        PHP_ADD_LIBRARY(sqlptc)
!       PHP_ADD_LIBRARY(sqlrte)
      PHP_ADD_LIBRARY_WITH_PATH(odbc_adabas, $abs_builddir/ext/odbc)
      ODBC_TYPE=adabas
      AC_DEFINE(HAVE_ADABAS,1,[ ])
--- 108,114 ----
      rm -f "$ODBC_LIB"
      cp "$ODBC_OBJS" "$ODBC_LIB"
        PHP_ADD_LIBRARY(sqlptc)
!       PHP_ADD_LIBRARY(sqlrt/e)
      PHP_ADD_LIBRARY_WITH_PATH(odbc_adabas, $abs_builddir/ext/odbc)
      ODBC_TYPE=adabas
      AC_DEFINE(HAVE_ADABAS,1,[ ])
***************
*** 135,141 ****
      PHP_ADD_INCLUDE($withval/incl)
        PHP_ADD_LIBPATH($withval/lib)
        PHP_ADD_LIBRARY(sqlod)
-       PHP_ADD_LIBRARY(sqlrte)
      ODBC_TYPE=sapdb
      AC_DEFINE(HAVE_SAPDB,1,[ ])
      AC_MSG_RESULT(yes)
--- 135,140 ----


_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to