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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Tue Oct 19 21:03:42 2021 UTC