php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14856 Error compiling apache after compiling php with custom-odbc
Submitted: 2002-01-04 13:37 UTC Modified: 2002-03-02 00:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: johnn at neill dot net Assigned:
Status: No Feedback Package: PHP options/info functions
PHP Version: 4.1.1 OS: RedHat Linux 7.2
Private report: No CVE-ID: None
 [2002-01-04 13:37 UTC] johnn at neill dot net
I configure php with the following...

./configure --with-apache=../apache_1.3.22 --with-mysql --with-custom-odbc=/www/wsrt/odbc --with-xml --enable-wddx --enable-track-vars --enable-calendar --enable-debug --enable-ftp --enable-sockets

LDFLAGS, CFLAGS, and CUSTOM_ODBC_LIBS env variables have all been set.

The configure, make, and make install all go fine for php.  Then I configure apache with the following...

./configure --activate-module=src/modules/php4/libphp4.a --enable-module=ssl --prefix=/www

The configuration of Apache goes smoothly, but when I try to make, I get numerous errors which look like...

modules/php4/libphp4.a(php_odbc.o): In function `zif_odbc_tableprivileges':
/home/johnn/php-4.1.1/ext/odbc/php_odbc.c:3478: undefined reference to `SQLAllocStmt'
/home/johnn/php-4.1.1/ext/odbc/php_odbc.c:3491: undefined reference to `SQLTablePrivileges'
/home/johnn/php-4.1.1/ext/odbc/php_odbc.c:3503: undefined reference to `SQLNumResultCols'

And then the Apache build errors out.

I don't know if this is a php bug, Apache bug, or even a bug at all, but we have spent the better part of a week trouble shooting this, with all kinds of help from the online php community, but to no avail.  I'm also going to post this to the Apache people incase it is something on their end.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-30 17:01 UTC] kalowsky@php.net
This sounds like your ODBC library is missing.  Can you check to see if your custom ODBC libraries have commands such at those that are being searched for (i.e. SQLAllocStatement).  If it does, please check that the path is properly set, and that the custom ODBC follows the same format PHP is looking for these files in.
 [2002-03-02 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2002-07-12 11:04 UTC] chrisw at neill dot net
I have this same issue except everything works fine but it cant find odbc.h when running make for php....i have read docs and it says to create an odbc.h file...
the questions i have are
what do i put in the odbc.h file and where do i place
it after i create it
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 13 02:01:27 2024 UTC