This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
gcc compile errors with dirent.h (DIR) and glibc2
- To: glibc-linux at ricardo dot ecn dot wfu dot edu
- Subject: gcc compile errors with dirent.h (DIR) and glibc2
- From: rmang at ibm dot net
- Date: Thu, 25 May 2000 12:24:45 -0400
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
I recently upgraded from libc5 gcc 2.7.2.1 i686-linux 2.0.36 to
glibc2.1.3 and gcc-2.95.2 Everything went smoothly, was able to
compile with new libraries, but suddenyl I am getting an error with
configure scripts not being able to find support for DIR in dirent.h
Here are the specific errors:
---
checking for dirent.h that defines DIR... no
checking for sys/ndir.h that defines DIR... no
checking for sys/dir.h that defines DIR... no
checking for ndir.h that defines DIR... no
checking for opendir in -lx... no
---
functions/dir.c:73: parse error before `*'
functions/dir.c: In function `php3i_destructor_closedir':
functions/dir.c:74: `dir' undeclared (first use in this function)
functions/dir.c:74: (Each undeclared identifier is reported only once
functions/dir.c:74: for each function it appears in.)
functions/dir.c: In function `php3_opendir':
functions/dir.c:90: `DIR' undeclared (first use in this function)
functions/dir.c:90: `dirp' undeclared (first use in this function)
functions/dir.c:91: parse error before `int'
functions/dir.c:107: `ret' undeclared (first use in this function)
functions/dir.c: In function `php3_closedir':
functions/dir.c:119: `DIR' undeclared (first use in this function)
functions/dir.c:119: `dirp' undeclared (first use in this function)
functions/dir.c:120: parse error before `int'
functions/dir.c:140: parse error before `)'
functions/dir.c:141: `dirp_type' undeclared (first use in this function)
---
Thi program had compiled under the new setup previously, but now
my system cannot link/find correctly the DIR functions. I reinstalled
gcc and glibc2, both without error. Any ideas what I am missing /
could be wrong? Thnak you for your help.
Rob Mangiafico