php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28364 libphp4.so 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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mairhtin at techsolutionsgroupllc dot com
New email:
PHP Version: OS:

 

 [2004-05-12 04:11 UTC] mairhtin at techsolutionsgroupllc dot com
Description:
------------
I have done a "configure --with-ibm-db2=/home/db2inst1/sqllib",
then done a make, and a make install.  The library : libphp4.so 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.



HEEEEEEELPPPPPP!!!!1!

Mairhtin O'Feannag


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

<?php
       /* 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>";
                exit;
                  }
        else  {
                echo  "<P>Connection  successful\n";
                  };
?>

Expected result:
----------------
a connection

Actual result:
--------------
67.120.110.243/connect.php

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-12 15:29 UTC] iliaa@php.net
Do ls -l inside .libs/ directory, which can be found inside 
the php sources directory. 
 [2004-05-12 16:49 UTC] amt@php.net
On even more basic level: Did you add --with-apxs to get 
PHP to generate the Apache module version? See:

http://www.php.net/manual/en/install.apache.php
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 13:01:30 2024 UTC