Salve,

Incerc sa faca sa merca php4 cu oracle client 8.
In porturi exista pentu php5.

Problema este ca portul de php5 face un mic truc, care, nu inteleg de
ce, nu merge cu php4.:

 lang/php5/Makefile.ext: 

.if ${PHP_MODNAME} == "oci8"
. if ${OSVERSION} < 500000
BROKEN= Doesn't work on FreeBSD 4.x
. endif

pre-configure:
        @cd ${WRKSRC}; \
        for lib in ${LOCALBASE}/oracle8-client/lib/libclntsh 
/usr/lib/libpthread; do \
                /usr/bin/ar x $${lib}.a; \
        done; \
        /usr/bin/ar rcs liboci8.a *.o
.endif

Deci merge-uieste libraria de la oracle cu lipthread. Nu inteleg de ce,
dar acelasi lucru cu php4 nu merge 

 > php
PHP Warning:  Unknown(): Unable to load dynamic library 
'/usr/local/lib/php/20020429/oci8.so' - /usr/local/lib/php/20020429/oci8.so: 
Undefined symbol &quot;pthread_kill&quot; in Unknown on line 0

 # objdump -TR /usr/local/lib/php/20020429/oci8.so | grep pthread_kill
00000000      D  *UND*  00000000 pthread_kill
0040d00c R_386_PC32        pthread_kill
004fb188 R_386_JUMP_SLOT   pthread_kill

Pe php5-oci (aste e de pe un CURRENT, nu 6-STABLE ca mai sus, dar nu e
asta problema):
 > objdump -TR /usr/local/lib/php/20050922/oci8.so | grep pthread_kill
000be898  w   DF .text  00000082 pthread_kill
000be898 g    DF .text  00000082 _pthread_kill
0036d1ec R_386_PC32        pthread_kill
00506058 R_386_32          _pthread_kill
0050605c R_386_32          _pthread_kill
0051effc R_386_JUMP_SLOT   pthread_kill


Atasat e portul si un patch pentru php4-extensions.

Orice idee e extrem de bine venita, am mare nevoie de extensia asta.


-- 
IOnut - Un^d^dregistered ;) FreeBSD "user"
  "Intellectual Property" is   nowhere near as valuable   as "Intellect"

BOFH excuse #310:
asynchronous inode failure


Index: Makefile.ext
===================================================================
RCS file: /home/pcvs/ports/lang/php4/Makefile.ext,v
retrieving revision 1.29
diff -u -r1.29 Makefile.ext
--- Makefile.ext	10 Sep 2006 16:30:59 -0000	1.29
+++ Makefile.ext	20 Sep 2006 12:48:32 -0000
@@ -230,6 +230,14 @@
 CONFIGURE_ARGS+=--with-ncurses=/usr
 .endif
 
+.if ${PHP_MODNAME} == "oci8"
+BUILD_DEPENDS+=	${LOCALBASE}/oracle8-client/lib/libclntsh.a:${PORTSDIR}/databases/oracle8-client
+
+RUN_DEPENDS+=	${BUILD_DEPENDS}
+
+CONFIGURE_ARGS+=--with-oci8=${LOCALBASE}/oracle8-client
+.endif
+
 .if ${PHP_MODNAME} == "odbc"
 LIB_DEPENDS+=	odbc.1:${PORTSDIR}/databases/unixODBC
 
@@ -467,6 +475,27 @@
 	/usr/bin/ar rcs liboracle.a *.o
 .endif
 
+.if ${PHP_MODNAME} == "oci8"
+. if ${OSVERSION} < 500000
+BROKEN= Doesn't work on FreeBSD 4.x
+. endif
+
+pre-configure:
+	@cd ${WRKSRC}; \
+	for lib in ${LOCALBASE}/oracle8-client/lib/libclntsh /usr/lib/libpthread; do \
+		/usr/bin/ar x $${lib}.a; \
+	done; \
+	/usr/bin/ar rcs liboci8.a *.o
+.endif
+
+.if ${PHP_MODNAME} == "snmp"
+.       if defined(WITH_SNMP4) || exists(${LOCALBASE}/lib/libsnmp.so.4)
+LIB_DEPENDS+=   snmp.4:${PORTSDIR}/net-mgmt/net-snmp4
+.       else
+LIB_DEPENDS+=   netsnmp.9:${PORTSDIR}/net-mgmt/net-snmp
+.       endif
+.endif
+
 .if ${PHP_MODNAME} == "pcre"
 post-extract:
 	@${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4

Attachment: php4-oci8.shar
Description: Unix shell archive

Attachment: signature.asc
Description: PGP signature

Raspunde prin e-mail lui