php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19105 make fails with unixODBC support
Submitted: 2002-08-26 08:06 UTC Modified: 2002-08-26 11:14 UTC
From: michiel at veltwerk dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.2.2 OS: suse8.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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: michiel at veltwerk dot com
New email:
PHP Version: OS:

 

 [2002-08-26 08:06 UTC] michiel at veltwerk dot com
the ./configure works fine 
I used the --with-apxs --with-unixODBC 
unixODBC is installed (in /usr/lib) and works fine. 
 
when I start make I get the following error: 
 
internal_functions.c:48: `phpext_odbc_ptr' undeclared here 
(not in a function) 
 
here's the result of the makefile 
 
... 
... 
... 
| about the implications of having register_globals set to 
on, and   | 
| avoid using it if possible.                                        
| 
+--------------------------------------------------------------------+ 
 
 
 
Thank you for using PHP. 
 
kleinelap01:/usr/src/php-4.2.2 # make 
Making all in Zend 
make[1]: Entering directory `/usr/src/php-4.2.2/Zend' 
make[1]: Nothing to be done for `all'. 
make[1]: Leaving directory `/usr/src/php-4.2.2/Zend' 
Making all in main 
make[1]: Entering directory `/usr/src/php-4.2.2/main' 
make[2]: Entering directory `/usr/src/php-4.2.2/main' 
/bin/sh /usr/src/php-4.2.2/libtool --silent --mode=compile 
gcc  -I. -I/usr/src/php-4.2.2/main 
-I/usr/src/php-4.2.2/main -I/usr/src/php-4.2.2 
-I/var/www/include -I/usr/src/php-4.2.2/Zend 
-I/usr/src/php-4.2.2/ext/mysql/libmysql -I/usr/lib/include 
-I/usr/src/php-4.2.2/ext/xml/expat  -DLINUX=22 
-DUSE_HSREGEX -I/usr/src/php-4.2.2/TSRM 
-I/usr/src/unixODBC-2.2.3/include -prefer-pic  -c 
internal_functions.c 
internal_functions.c:48: `phpext_odbc_ptr' undeclared here 
(not in a function) 
internal_functions.c:48: initializer element is not 
constant 
internal_functions.c:48: (near initialization for 
`php_builtin_extensions[5]') 
make[2]: *** [internal_functions.lo] Error 1 
make[2]: Leaving directory `/usr/src/php-4.2.2/main' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/usr/src/php-4.2.2/main' 
make: *** [all-recursive] Error 1 
 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-26 09:14 UTC] michiel at veltwerk dot com
I tried installing with unixODBC-2.2.3 from source instead of the RPM version that came with suse8.0 and that didn't work either.

Tried the same thing with php 4.2.1 and that seems to work just fine.
 [2002-08-26 11:14 UTC] sniper@php.net
4.2.1 -> 4.2.2 had ONLY one fix (the security exploit fixed) and didn't have any other changes. Check your sources..it's most likely something you're doing wrong/something wrong in your build environment.

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 15:00:01 2026 UTC