panther - php5 upgrade - i'm confused

Ryan Schmidt ryandesign at macports.org
Sat Dec 6 11:24:34 PST 2008


On Dec 6, 2008, at 07:59, Chris Janton wrote:

> admin at x:admin:123 $ sudo port sync
> admin at x:admin:124 $ port outdated
> The following installed ports are outdated:
> php5                           5.2.6_2 < 5.2.7_1
> admin at x:admin:125 $ sudo port upgrade php5
> --->  Installing apache2 2.2.10_0+darwin_7
> --->  Activating apache2 2.2.10_0+darwin_7
> Error: Target org.macports.activate returned: Image error: /opt/ 
> local/share/man/man1/dbmmanage.1.gz is being used by the active  
> apache port.  Please deactivate this port first, or use the -f flag  
> to force the activation.
> --->  Fetching php5
> --->  Attempting to fetch php-5.2.7.tar.bz2 from http://www.php.net/ 
> distributions/
> --->  Verifying checksum(s) for php5
> --->  Extracting php5
> --->  Applying patches to php5
> --->  Configuring php5
> --->  Building php5 with target all
> Error: Target org.macports.build returned: shell command " cd "/opt/ 
> local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7" && make all " returned error 2
> Command output: /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3624: warning: passing arg 1  
> of `_efree' makes pointer from integer without a cast
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3628: error: invalid type  
> argument of `->'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3637: warning: passing arg 1  
> of `_efree' makes pointer from integer without a cast
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3641: error: invalid type  
> argument of `->'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3642: error: invalid type  
> argument of `->'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3642: error: invalid type  
> argument of `->'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3644: error: invalid type  
> argument of `->'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3646: warning: passing arg 1  
> of `_efree' makes pointer from integer without a cast
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3650: error: invalid type  
> argument of `->'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3652: error: invalid type  
> argument of `->'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3653: error: invalid type  
> argument of `->'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3654: warning: passing arg 2  
> of `zend_register_resource' makes pointer from integer without a cast
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c: In function  
> `zif_odbc_tableprivileges':
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3664: error: invalid lvalue  
> in assignment
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3687: error: parse error  
> before ')' token
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3689: error: invalid type  
> argument of `->'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3691: warning: passing arg 1  
> of `_efree' makes pointer from integer without a cast
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3698: warning: passing arg 1  
> of `_efree' makes pointer from integer without a cast
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3702: error: invalid type  
> argument of `->'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3709: warning: passing arg 1  
> of `_efree' makes pointer from integer without a cast
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3713: error: invalid type  
> argument of `->'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3714: error: invalid type  
> argument of `->'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3714: error: invalid type  
> argument of `->'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3716: error: invalid type  
> argument of `->'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3718: warning: passing arg 1  
> of `_efree' makes pointer from integer without a cast
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3722: error: invalid type  
> argument of `->'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3724: error: invalid type  
> argument of `->'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3725: error: invalid type  
> argument of `->'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_www_p 
> hp5/work/php-5.2.7/ext/odbc/php_odbc.c:3726: warning: passing arg 2  
> of `zend_register_resource' makes pointer from integer without a cast
> make: *** [ext/odbc/php_odbc.lo] Error 1
>
> Error: Unable to upgrade port: 1
>
> Installed ports (edited)
>
> admin at x:admin:126 $ port installed
> The following ports are currently installed:
>   apache @1.3.41_0 (active)
>   apache2 @2.2.10_0+darwin_7
>   apr @1.3.3_0 (active)
>   apr-util @1.3.4_1+no_bdb (active)
>   php5 @5.2.6_2+apache+darwin_7+macosx+mysql5+pear (active)
> admin at x:admin:127 $
>
> Why does the php5 upgrade "install" apache2?

I don't know... I didn't change anything in the dependencies  
recently. I'll test on my Panther machine later.

I notice you have the apache port installed. Are you currently using  
php5 with that apache, and/or is that your intention? Because the  
+apache variant of php5 currently uses Apple's Apache 1 server, not  
MacPorts apache. Though I have been meaning to change this forever.

http://trac.macports.org/ticket/14001




More information about the macports-users mailing list