Subject: pkg/24082: PHP4 extension for FTP access module Undefined PLT symbol
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jmaier@midamerica.net>
List: netbsd-bugs
Date: 01/13/2004 18:09:21
>Number:         24082
>Category:       pkg
>Synopsis:       PHP4 extension for FTP access module Undefined PLT symbol
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 13 18:10:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     John Maier
>Release:        NetBSD 1.5.3 i386
>Organization:
>Environment:
NetBSD mail2.midamerica.net 1.5.3 NetBSD 1.5.3 (MAIL2) #1: Wed Dec 10 11:32:40 CST 2003     root@ns1:/usr/src/sys/arch/i386/compile/MAIL2 i386

>Description:
The php4-ftp module builds and installs without any problems.
However if you try to access any of the FTP routines from within PHP, you get 'Undefined PLT symbol' errors.


>How-To-Repeat:
# place this little code snipit in a text file 
# with stock php4 and php4-ftp installed.
# execute from a command line >php ftptest.php

<?php
$fs = ftp_connect("mail.midamerica.net");
?>


# This is the error I get:
/usr/pkg/lib/php/20020429/ftp.so: Undefined PLT symbol "ftp_open" (reloc type = 7, symnum = 47)

>Fix:
If I hardcode --enable-ftp into the Makefile of php4 and rebuild the core php4 binary, it works with the module.
Hoever if the module is not installed (via the php.ini) ftp will not work.



>Release-Note:
>Audit-Trail:
>Unformatted: