Solved

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

Posted on 2004-08-18
5
1,090 Views
Last Modified: 2013-11-22
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?
0
Comment
Question by:OSLAdmin
  • 3
  • 2
5 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 500 total points
ID: 11832901
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
 

Author Comment

by:OSLAdmin
ID: 11868210
huh? im not sure what your saying?
0
 
LVL 62

Expert Comment

by:gheist
ID: 11872420
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
 

Author Comment

by:OSLAdmin
ID: 12073430
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
 

Author Comment

by:OSLAdmin
ID: 12073433
i have a 4.9 version of freebsd
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question