|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28364 not generated even though makes worked
Submitted: 2004-05-12 04:11 UTC Modified: 2004-05-20 01:00 UTC
From: mairhtin at techsolutionsgroupllc dot com Assigned:
Status: No Feedback Package: *Compile Issues
PHP Version: 4.3.6 OS: linux (rh 8.0)
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: mairhtin at techsolutionsgroupllc dot com
New email:
PHP Version: OS:


 [2004-05-12 04:11 UTC] mairhtin at techsolutionsgroupllc dot com
I have done a "configure --with-ibm-db2=/home/db2inst1/sqllib",
then done a make, and a make install.  The library : is not created, so I cannot add it to the php.conf in /etc/httpd/conf.d/ directory to be incorporated into the apache config file so that I can resolve the "Fatal error: Call to undefined function: odbc_connect() in /var/www/html/connect.php on line 21"

error that I am getting.

This is VERY frustrating.  I followed the instruction to the letter, and I *DID* RTFM.  without any success.

I need to connect to DB2 using the DB2 modules, not the unixODBC modules, since these seem to have fatal errors built in to them when I try to connect to DB2.


Mairhtin O'Feannag

Reproduce code:
<title>Simple SELECT statement</title>
<body bgcolor="white">

       /* need to set $dsn: data source name
                      $user: what user to connect as
                      $upasswd: password for the user
          in our examples we simply set the $dsn. The user is
                 the user the web server runs as
                 no password is required.
                 This is a DB2 thing  */
        $dsn = 'SPIRIT';
        $user = 'DB2INST1';
        $upasswd = 'DB2INST1';
        echo "dsn  $dsn";
        echo "user  $user";
        echo "upasswd  $upasswd";
        $conn  =  odbc_connect($dsn,  $user, $upasswd  );
        echo  "conn:  $conn";
        if  ($conn  <=  0)  {
                echo  "Error  in  connection<BR>";
        else  {
                echo  "<P>Connection  successful\n";

Expected result:
a connection

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-12 15:29 UTC]
Do ls -l inside .libs/ directory, which can be found inside 
the php sources directory. 
 [2004-05-12 16:49 UTC]
On even more basic level: Did you add --with-apxs to get 
PHP to generate the Apache module version? See:
 [2004-05-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, 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".
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Jan 25 09:03:34 2022 UTC