php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45984 make fails with AC_SYS_LARGEFILE
Submitted: 2008-09-03 16:03 UTC Modified: 2008-09-03 21:03 UTC
From: jhuckaby at gmail dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.2.6 OS: Fedora Core 6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jhuckaby at gmail dot com
New email:
PHP Version: OS:

 

 [2008-09-03 16:03 UTC] jhuckaby at gmail dot com
Description:
------------
In order to support 64-bit files in PHP, I was instructed by crrodriguez at suse dot de to do the following:

"You dont pass D_FILE_OFFSET_BITS=64 directly, but add AC_SYS_LARGEFILE to configure.in then run ./buildconf --force and rebuild PHP."

http://bugs.php.net/bug.php?id=45942

Following these instructions, I got the following error from `make`:

/home/jhuckaby/dev/3rdparty/source/apache-1.3/php-
5.2.7/ext/posix/posix.c: In function 'zif_posix_uname':
/home/jhuckaby/dev/3rdparty/source/apache-1.3/php-
5.2.7/ext/posix/posix.c:471: error: 'struct utsname' has no member 
named 'domainname'
make: *** [ext/posix/posix.lo] Error 1

It should be noted that if I add "--disable-all --disable-cgi" to the ./configure then this works perfectly.  It compiles, installs and 64-bit files work flawlessly.  But a bare bones PHP will not suffice, as I need several modules compiled in.

Reproduce code:
---------------
echo AC_SYS_LARGEFILE >> configure.in
./buildconf --force

./configure --with-apache=../apache_1.3.39 --prefix=/ipix/php --with-
config-file-path=/ipix/php/lib

make





Expected result:
----------------
I expected the 'make' to complete without errors, as it does when I add "--disable-all --disable-cgi".


Actual result:
--------------
/home/jhuckaby/dev/3rdparty/source/apache-1.3/php-
5.2.7/ext/posix/posix.c: In function 'zif_posix_uname':
/home/jhuckaby/dev/3rdparty/source/apache-1.3/php-
5.2.7/ext/posix/posix.c:471: error: 'struct utsname' has no member 
named 'domainname'
make: *** [ext/posix/posix.lo] Error 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-03 21:03 UTC] jhuckaby at gmail dot com
This issue is not reproducible with Fedora 9.  This is apparently an 
incompatibility issue with the old C libraries that ship with Fedora 
Core 6.  I am closing this bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 14:01:30 2024 UTC