php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17996 make fails with "image.c" , line 439.23: 1506-334 (S) Identifier uchar has
Submitted: 2002-06-26 09:59 UTC Modified: 2002-08-08 13:07 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: lizambert at idris dot fr Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.0-dev OS: AIX 4.3.3
Private report: No CVE-ID: None
 [2002-06-26 09:59 UTC] lizambert at idris dot fr
I'm trying to install php as a dynamic Apache module.
I installed apache 1.3.26 with ./configure --prefix=/usr/local/apache_1.3.26 --enable-module=so.
For php I did ./configure --with-apxs=/usr/local/apache_1.3.26/bin/apxs --without-mysql --with-oci8
I got  "/save/php-4.2.1/TSRM/tsrm_config_common.h", line 25.2: 1506-224 (W) Incorrect # pragma ignored. many times, then it failed with :
"image.c", line 439.23: 1506-334 (S) Identifier uchar has already been defined on line 455 of "/usr/include/sys/types.h".
"image.c", line 447.25: 1506-019 (S) Expecting an array or a pointer to object type.
"image.c", line 447.53: 1506-019 (S) Expecting an array or a pointer to object type.
"image.c", line 449.25: 1506-019 (S) Expecting an array or a pointer to object type.
"image.c", line 449.53: 1506-019 (S) Expecting an array or a pointer to object type.
"image.c", line 467.55: 1506-019 (S) Expecting an array or a pointer to object type.
"image.c", line 468.30: 1506-019 (S) Expecting an array or a pointer to object type.
"image.c", line 468.59: 1506-019 (S) Expecting an array or a pointer to object type.
"image.c", line 470.55: 1506-019 (S) Expecting an array or a pointer to object type.
"image.c", line 471.30: 1506-019 (S) Expecting an array or a pointer to object type.
"image.c", line 471.59: 1506-019 (S) Expecting an array or a pointer to object type.
make: 1254-004 The error code from the last command is 1.

Thank you very much for your help.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-29 23:34 UTC] sniper@php.net
Can not reproduce with this snapshot:

http://snaps.php.net/php4-latest.tar.gz

Please test.

 [2002-07-01 12:32 UTC] lizambert at idris dot fr
I still get warnings for "types.h" and others like :
"/save/php4-200207010600/ext/standard/dl.c", line 135.16: 1506-068 (W) Operation between types "void*" and "int" is not allowed.

It fails with the same message (but starting at line 601).
Also there is two new lines in image.c (727 & 738) with // (for comments) for which my compiler give a Syntax error, but that is easy to correct.
 
I'm going to upgrade my cc compiler (I'm using AIX cc, not gcc).

Thanks for your help.
 [2002-07-01 13:30 UTC] lizambert at idris dot fr
After upgrading to vac C 5.01:
1) no more "types.h" errors
2) still "/save/php4-200207010600/TSRM/tsrm_config_common.h", line 28.1: 1506-224 (I) Incorrect #pragma ignored.
3) still doesn't accept the // (in image.c, info.c, memory_stream.c). After correction for the // :
4) make: 1254-002 Cannot find a rule to create target /zend_language_parser.c from dependencies.
 [2002-07-01 23:06 UTC] sniper@php.net
Please get a new snapshot, those comments should be gone now.

 [2002-07-02 12:02 UTC] lizambert at idris dot fr
OK for the comments (but I already did get ride of them) but I still have the last probleme mentionned before:
4) make: 1254-002 Cannot find a rule to create target
   /zend_language_parser.c from dependencies.
   Stop.

with the new snapshot php4-200207020600.
 [2002-07-02 13:21 UTC] sniper@php.net
Please send me your Makefile to sniper@php.net

 [2002-08-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, 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".
 [2002-08-06 10:28 UTC] lizambert at idris dot fr
On July 3rd, I was asked:
> Please contact ...@php.net as he knows how to fix this.
> 
>   --Jani

which I did the same day, but I had no answer.
I just tried again.
Thanks.
 [2002-08-08 07:47 UTC] sniper@php.net
This actually should be fixed in the latest CVS HEAD.
So please try this snapshot again: 

http://snaps.php.net/php4-latest.tar.gz

 [2002-08-08 11:44 UTC] lizambert at idris dot fr
Now, I does compile (with lots of Warning messages) and at the end lots of messages like :
cc: 1501-218 file ext/ctype/ctype.lo contains an incorrect file suffix
cc: 1501-218 file ext/mbstring/mbfilter_ja.lo contains an incorrect file suffix

but it fails on make install :
Installing PHP SAPI module
[activating module `php4' in /usr/local/apache_1.3.26/conf/httpd.conf]
cp libs/libphp4.so /usr/local/apache_1.3.26/libexec/libphp4.so
cp: libs/libphp4.so: A file or directory in the path name does not exist.
apxs:Break: Command failed with rc=1
make: 1254-004 The error code from the last command is 1.

In libs I have only : libphp4.a and libphp4.la

Thanks a lot for your help.
 [2002-08-08 11:58 UTC] kalowsky@php.net
Glad to hear the bug is fixed, but your new problem is an end user problem, not a PHP bug.  Please figure out your installation, and where you want things to go.  If you still have trouble with that, ask on the php-general list for help.  
 [2002-08-08 12:54 UTC] lizambert at idris dot fr
I would like to believe you but although it says "Target all is up to date" the file it is looking for (libs/libphp4.so) hasn't been created.
 [2002-08-08 13:07 UTC] sander@php.net
This is not a problem in PHP, but a problem with your (configuration of your) system. Please ask support questions on the appropriate mailinglist.
 [2002-12-12 04:25 UTC] josborne at imsmaxims dot com
I've exactly the same problem, same version of AIX etc.  I have apache 2.0.43 installed and am using php 4.2.3.  Is this a compiler issue? Or is it worth while trying 4.3.0RC3

I need to get this working fairly desperately.  So any help is welcome.

Thanks

Julian
 [2002-12-12 06:39 UTC] josborne at imsmaxims dot com
Ignore that last post, being a bit of a muppet, using the wrong version.
 [2003-01-22 14:57 UTC] brandon at oit dot gatech dot edu
Our PHP 4.3.0 build failed to compile sapi/cli/php on our AIX machine,
with over one hundred error messages like:

cc: 1501-218 file ext/ctype/ctype.lo contains an incorrect file suffix

The causes of this are rather subtle:

1. GNU libtool will usually not create static objects under AIX.

2. But the PHP developers want libtool to create static objects.

3. So the PHP developers provide their own ./libtool in the source
   tree which will create them, which they run with "/bin/sh libtool".

4. Unfortunately, while "/bin/sh <file>" usually looks for <file> in
   the current directory before searching through $PATH, on AIX it
   looks through $PATH first; thus the PHP Makefile winds up running
   /usr/local/bin/libtool (or wherever you have it installed) instead.

Thus the solution is to modify the PHP Makefile so that the line

   LIBTOOL = $(SHELL) libtool --silent

instead reads

   LIBTOOL = $(SHELL) ./libtool --silent

Technical notes: When you compile and install libtool, it runs a
script called libtool.m4 which, around line 2363 in the libtool-1.4.3
source, disables AIX static linking with the explanation that:

   "On AIX, shared libraries and static libraries use the same
   namespace, and are all built from PIC."

It disables static linking by setting enable_static=no when it writes
your libtool script; the ./libtool script in the PHP build directory
works precisely because this variable is set to "yes" instead.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 04:01:32 2024 UTC