php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29133 MySQL extension config.m4 uses incorrect full path
Submitted: 2004-07-14 08:29 UTC Modified: 2004-07-15 18:10 UTC
From: jdolecek at NetBSD dot org Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.8 OS: NetBSD
Private report: No CVE-ID: None
 [2004-07-14 08:29 UTC] jdolecek at NetBSD dot org
Description:
------------
ext/mysql/config.m4 includes:

sinclude(ext/mysql/libmysql/acinclude.m4)
sinclude(ext/mysql/libmysql/mysql.m4)
sinclude(libmysql/acinclude.m4)
sinclude(libmysql/mysql.m4)

When building this extension separately and phpize
is called in the directory ext/mysql/, the former
two files don't exist and autoconf 1.8 aborts build.

The NetBSD pkgsrc fix to this is:

--- config.m4.orig      Mon Jul 14 12:43:51 2003
+++ config.m4   Wed Mar 31 12:02:43 2004
@@ -3,7 +3,5 @@
 dnl

-sinclude(ext/mysql/libmysql/acinclude.m4)
-sinclude(ext/mysql/libmysql/mysql.m4)
 sinclude(libmysql/acinclude.m4)
 sinclude(libmysql/mysql.m4)


Reproduce code:
---------------
Build mysql extension separately from main package
using autoconf 1.8.

Expected result:
----------------
The phpize phase eventually fails with:

aclocal-1.8: cannot open ext/mysql/libmysql/acinclude.m4: No such file or directory
*** Error code 1




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-14 14:00 UTC] sniper@php.net
autoconf 1.8 is not supported. Use the snapshots from
http://snaps.php.net if you don't have the right tools to generate build stuff.

 [2004-07-14 14:26 UTC] jdolecek at NetBSD dot org
Sorry - I made a mistake with the specified version. Autoconf 2.59 is used. Automake is version 1.8.

Older automake (1.4) ignores the sinclude() if the specified file doesn't exist. Newer automake (1.8) exits with error in this case, however. So, this should be adressed sooner or later.
 [2004-07-15 18:10 UTC] sniper@php.net
We'll address it when we start generating the distribution packages with the newer tools. Which won't happen anytime soon since the new tools are buggy.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 19:01:28 2024 UTC