php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50303 A few different autotools issues
Submitted: 2009-11-26 00:35 UTC Modified: 2009-11-26 11:12 UTC
From: galtgendo at o2 dot pl Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.2.11 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: galtgendo at o2 dot pl
New email:
PHP Version: OS:

 

 [2009-11-26 00:35 UTC] galtgendo at o2 dot pl
Description:
------------
Seeing that bug 50291 got accepted,
I'd like to readdress a few issues,
some of which I already address here
(some of them were bogus, other were not).

1. Gentoo bug 151444 - '--as-needed' problem
a.k.a. using LDFLAGS instead of libs
while Gentoo is using a different fix now,
I still keep a patch (quite a bit reduced,
compared to the one in the bug), that modifies
PHP_CHECK_LIBRARY to use LIBS instead of
LDFLAGS - it modifies a few other ext specific
macros too; it "works for me" for over a year now,
but I'm not building all exts, so it could use some polishing

2. Gentoo bug 275240 - curl.m4
while changing from curl-config
to pkg-config is just an idea (curl, just as php 
needs to be kept up to date, due to security,
so it shouldn't be a big problem),
AC_CHECK_HEADER -> AC_CHECK_HEADERS
is required for things to work



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-26 10:05 UTC] jani@php.net
1. Wont fix
2. No idea what bug that is.

And last but not least: DO NOT report multiple issues in one report.
 [2009-11-26 11:07 UTC] galtgendo at o2 dot pl
As for 1 - I could quote a part of autoconf info page
at you once again, but ...oh,well
As for 2 - in ext/curl/interface.c you have:
#   if defined(HAVE_GCRYPT_H)
#    define PHP_CURL_NEED_GNUTLS_TSL
#    include <gcrypt.h>
#   else
...
#   endif

But if you use AC_CHECK_HEADER, HAVE_GCRYPT_H
never gets defined, even if the header gets properly detected.
And I don't see how any of AC_TRY_RUN in ext/curl/config.m4
could succeed without libcurl being added to LIBS
for those tests.
 [2009-11-26 11:12 UTC] galtgendo at o2 dot pl
As for pkg-config, it's just an idea, but:
- it's cleaner
- what if curl does the same thing that
gnutls did - drops it's custom script ?
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 20:01:35 2025 UTC