php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9701 error in checking for dlfcn.h
Submitted: 2001-03-12 08:16 UTC Modified: 2001-06-02 20:40 UTC
From: andreas at erestor dot f2s dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4pl1 OS: AIX 4.3
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: andreas at erestor dot f2s dot com
New email:
PHP Version: OS:

 

 [2001-03-12 08:16 UTC] andreas at erestor dot f2s dot com
Hi, I got this symptom by compiling PHP:
/usr/bin/sh ../libtool --mode=compile xlc -DHAVE_CONFIG_H \
-I. -I. -I../main   -DXML_BYTE_ORDER=21  -qsource \
-qshowinc -c zend_extensions.c
xlc -DHAVE_CONFIG_H -I. -I. -I../main -DXML_BYTE_ORDER=21 \
-qsource -qshowinc -c zend_extensions.c
"zend_extensions.c", line 33.16: 1506-068 (S) Operation between types "void*" and "int" is not allowed.

 I use the xlc-version of the C Set ++ for AIX compiler, as it is more ANSI-C than the cc-version. It also shows more errors.
 My configuration of PHP (as a CGI-program to be used by Lynx):
CC=xlc ./configure --prefix=/home/pistoor/php \
  --with-config-file-path=/home/pistoor/php --enable-debug \
  --enable-sigchild --enable-calendar --enable-ftp \
  --enable-trans-sid --enable-shmop --with-regex=php \
  --enable-sysvsem --enable-sysvshm --enable-wddx \
  --enable-yp
 I found, that the prototype of dlopen was missing. It is standing in /usr/include/dlfcn.h.
 In config.log, I found these lines:
configure:44766: checking for dlfcn.h
configure:44776: xlc -E  -DXML_BYTE_ORDER=21 conftest.c >/dev/null 2>conftest.out
"conftest.c", line 1.7: 1506-219 (W) #line value 44771 too large.
configure: failed program was:
#line 44771 "configure"
#include "confdefs.h"
#include <dlfcn.h>
 So configure guessed wrongly, dlfcn.h would be missing.

 I edited config.cache and rerun configure.
 Now I got another compile failure later. :-)

 Regard
 Andreas Pistoor

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-02 20:40 UTC] sniper@php.net
If this happens with PHP 4.0.6RC2 too, reopen:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 12:01:34 2025 UTC