/usr/libexec/ld-elf.so.1: ./php: Undefined symbol "statvfs"

when running the zend optimizer on a 5.xx system i get the following error

/usr/libexec/ld-elf.so.1: ./php: Undefined symbol "statvfs"

what do i have to do to fix this?
OSLAdminAsked:
Who is Participating?
 
gheistConnect With a Mentor Commented:
You install FreeBSD 5 instead of FreeBSD 4 and your php will run ( or build new php from ports)

     The statvfs() and fstatvfs() functions fill the structure pointed to by
     buf with garbage.  This garbage will occasionally bear resemblance to
     file system statistics, but portable applications must not depend on
     this.  Applications must pass a pathname or file descriptor which refers
     to a file on the file system in which they are interested.
0
 
OSLAdminAuthor Commented:
huh? im not sure what your saying?
0
 
gheistCommented:
I built and ran all combinations of 4.xxx and 5.xxx, so please tell me your uname -a and a version of php you try to run.
0
 
OSLAdminAuthor Commented:
FreeBSD aftershock.oslhost.com 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Mon Oct 27 17:51:09 GMT 2003     root@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/GENERIC  i386

php version: 4.3.8
0
 
OSLAdminAuthor Commented:
i have a 4.9 version of freebsd
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.