php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #27986 .lo unrecognized file suffix
Submitted: 2004-04-13 22:12 UTC Modified: 2013-02-18 00:09 UTC
Votes:4
Avg. Score:4.5 ± 0.9
Reproduced:2 of 3 (66.7%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: sandduneinfo at earthlink dot net Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4CVS, 5CVS (2004-04-16) OS: AIX 5.1
Private report: No CVE-ID: None
 [2004-04-13 22:12 UTC] sandduneinfo at earthlink dot net
Description:
------------
I was able to install apache 2.0.49 it seems to be working OK. I went to install php 4.3.5 with the apxs and the mysql flags using the AIX Ansi c compiler
I listed out much of the error in make below and of course the make install fails big time.
I do have mysql version 4.0.17 and I have been accessing it with perl and DBD/DBI. 
I have run the make cklean and retired,
I have also deleted the the php install directory and "retarred" it back. 
It complained in configure originally about flex and bison missing in configure originally and I added those in on download from IBM website and installed with rpm. So those issues went away.
I noticed something about 4.3.5 was supposed to fix unsigned int errors - are their more. I am not a C programmer - which leaves me more in the dark.

HELP!

Dan Rizzi

Expected result:
----------------
Additional make errors ...
cc: 1501-218 file Zend/zend_llist.lo contains an incorrect file suffix
cc: 1501-218 file Zend/zend_opcode.lo contains an incorrect file suffix
cc: 1501-218 file Zend/zend_operators.lo contains an incorrect file suffix
cc: 1501-218 file Zend/zend_ptr_stack.lo contains an incorrect file suffix
cc: 1501-218 file Zend/zend_stack.lo contains an incorrect file suffix
cc: 1501-218 file Zend/zend_variables.lo contains an incorrect file suffix
cc: 1501-218 file Zend/zend.lo contains an incorrect file suffix
cc: 1501-218 file Zend/zend_API.lo contains an incorrect file suffix
cc: 1501-218 file Zend/zend_extensions.lo contains an incorrect file suffix
cc: 1501-218 file Zend/zend_hash.lo contains an incorrect file suffix
cc: 1501-218 file Zend/zend_list.lo contains an incorrect file suffix
cc: 1501-218 file Zend/zend_indent.lo contains an incorrect file suffix
cc: 1501-218 file Zend/zend_builtin_functions.lo contains an incorrect file suff
ix

Actual result:
--------------
"/tmp/php/php-4.3.5/ext/standard/array.c", line 1723.64: 1506-280 (W) Function a
rgument assignment between types "unsigned int*" and "int*" is not allowed.     
"/tmp/php/php-4.3.5/ext/standard/file.c", line 918.100: 1506-280 (W) Function ar
gument assignment between types "unsigned int*" and "int*" is not allowed.      
"/tmp/php/php-4.3.5/ext/standard/file.c", line 924.114: 1506-280 (W) Function ar
gument assignment between types "unsigned int*" and "int*" is not allowed.      
"/tmp/php/php-4.3.5/ext/standard/file.c", line 2308.13: 1506-280 (W) Function ar
gument assignment between types "unsigned long*" and "int*" is not allowed.     
"/tmp/php/php-4.3.5/ext/standard/file.c", line 2373.29: 1506-280 (W) Function ar
gument assignment between types "unsigned long*" and "int*" is not allowed.     
"/tmp/php/php-4.3.5/ext/standard/info.c", line 480.122: 1506-280 (W) Function ar
gument assignment between types "unsigned int*" and "int*" is not allowed.      
"/tmp/php/php-4.3.5/main/safe_mode.c", line 84.31: 1506-280 (W) Function argumen
t assignment between types "unsigned char*" and "const unsigned char*" is not al
lowed.                                                                          
"/tmp/php/php-4.3.5/main/safe_mode.c", line 125.39: 1506-280 (W) Function argume
nt assignment between types "unsigned char*" and "const unsigned char*" is not a
llowed.                                                                         

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-15 19:26 UTC] sniper@php.net
Nevermind, I'll add the trimmed down paste myself:
(note: you don't need to do anything now, we'll let you know when this is fixed)

Errors as follows:
"/tmp/php4-STABLE-200404150030/ext/standard/array.c", line 1723.64: 1506-280
(W) Function argument assignment between types "unsigned int*" and "int*" is not allowed.
"/tmp/php4-STABLE-200404150030/ext/standard/file.c", line 918.100: 1506-280
(W) Function argument assignment between types "unsigned int*" and "int*" is not allowed.
"/tmp/php4-STABLE-200404150030/ext/standard/file.c", line 924.114: 1506-280
(W) Function argument assignment between types "unsigned int*" and "int*" is not allowed. 
"/tmp/php4-STABLE-200404150030/ext/standard/info.c", line 480.122: 1506-280
(W) Function argument assignment between types "unsigned int*" and "int*" is not allowed.
"/tmp/php4-STABLE-200404150030/main/safe_mode.c", line 84.31: 1506-280
(W) Function argument assignment between types "unsigned char*" and "const unsigned char*" is not allowed.
"/tmp/php4-STABLE-200404150030/main/safe_mode.c", line 125.39: 1506-280
(W) Function argument assignment between types "unsigned char*" and "const unsigned char*" is not allowed.

 [2004-05-06 16:46 UTC] derick@php.net
Please try the patch below:

Index: ext/standard/array.c
===================================================================
RCS file: /repository/php-src/ext/standard/array.c,v
retrieving revision 1.199.2.32
diff -u -p -r1.199.2.32 array.c
--- ext/standard/array.c    1 Apr 2004 19:07:01 -0000   1.199.2.32
+++ ext/standard/array.c    6 May 2004 14:45:32 -0000
@@ -1692,7 +1692,7 @@ static void _phpi_pop(INTERNAL_FUNCTION_
    zval       **stack,         /* Input stack */
               **val;           /* Value to be popped */
    char *key = NULL;
-   int key_len = 0;
+   uint key_len = 0;
    ulong index;
                                                                                                                                                                                                      
    /* Get the arguments and do error-checking */
Index: ext/standard/file.c
===================================================================
RCS file: /repository/php-src/ext/standard/file.c,v
retrieving revision 1.279.2.59
diff -u -p -r1.279.2.59 file.c
--- ext/standard/file.c 2 Apr 2004 16:54:44 -0000   1.279.2.59
+++ ext/standard/file.c 6 May 2004 14:45:34 -0000
@@ -909,7 +909,7 @@ static int parse_context_options(php_str
    HashPosition pos, opos;
    zval **wval, **oval;
    char *wkey, *okey;
-   int wkey_len, okey_len;
+   uint wkey_len, okey_len;
    int ret = SUCCESS;
    ulong num_key;
                                                                                                                                                                                                      
Index: ext/standard/info.c
===================================================================
RCS file: /repository/php-src/ext/standard/info.c,v
retrieving revision 1.218.2.15
diff -u -p -r1.218.2.15 info.c
--- ext/standard/info.c 15 Mar 2004 16:39:53 -0000  1.218.2.15
+++ ext/standard/info.c 6 May 2004 14:45:35 -0000
@@ -357,9 +357,7 @@ PHPAPI void php_print_info_htmlhead(TSRM
    PUTS("<head>\n");
    php_info_print_style();
    PUTS("<title>phpinfo()</title>");
-/*
-   php_printf("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=%s\" />\n", charset);
-*/
+   php_printf("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n");
    PUTS("</head>\n");
    PUTS("<body><div class=\"center\">\n");
 }
@@ -472,7 +470,7 @@ PHPAPI void php_print_info(int flag TSRM
        {
            HashTable *url_stream_wrappers_hash;
            char *stream_protocol, *stream_protocols_buf = NULL;
-           int stream_protocol_len, stream_protocols_buf_len = 0;
+           uint stream_protocol_len, stream_protocols_buf_len = 0;
            ulong num_key;
                                                                                                                                                                                                      
            if ((url_stream_wrappers_hash = php_stream_get_url_stream_wrappers_hash())) {

 [2004-05-07 19:54 UTC] sandduneinfo at earthlink dot net
OK,
I made the modifications indicated, the only errors that remains is the error about .lo being an unrecognized file extension - looked in libtool but not sure where I make the change to accept the .lo extension. Need a little more guidance and the "make" should succeed.
I would greatly appreciate a prompt response.
 [2004-05-12 18:49 UTC] jay@php.net
Have you tried the fix suggested here yet? 
 
http://marc.theaimsgroup.com/?l=php-install&m=104327038604878&w=2 
 
I don't have access AIX so I have no idea if it works, but 
it's worth a shot... 
 
J 
 [2004-05-21 11:58 UTC] marino dot strazzullo at elsag dot it
On my AIX 4.3.3 i have resolved the "invalid suffix" problem:

Modify ./libtool at line 49 and change "build_old_libs=no" to "build_old_libs=yes", then execute "make"...

Bye
 [2011-01-01 23:37 UTC] jani@php.net
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: Compile Failure
 [2011-01-01 23:37 UTC] jani@php.net
Is this still an issue with PHP 5.3.x ?
 [2013-02-18 00:09 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 10 07:01:28 2024 UTC