Opened 12 years ago

Closed 12 years ago

#34651 closed defect (fixed)

php-peb: non-void function should return a value

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: clang Cc:
Port: php-peb

Description

--->  Building php54-peb
DEBUG: Executing org.macports.build (php54-peb)
DEBUG: Building in peb_release
DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release" && /usr/bin/make -j4 -w all'
DEBUG: Executing command line:  cd "/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release" && /usr/bin/make -j4 -w all 
make: Entering directory `/Volumes/work/macports/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release'
/bin/sh /opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release/libtool --mode=compile /usr/bin/clang  -I. -I/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release -DPHP_ATOM_INC -I/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release/include -I/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release/main -I/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release -I/opt/local/include/php54/php -I/opt/local/include/php54/php/main -I/opt/local/include/php54/php/TSRM -I/opt/local/include/php54/php/Zend -I/opt/local/include/php54/php/ext -I/opt/local/include/php54/php/ext/date/lib -I/opt/local/include  -I/opt/local/include -I/opt/local/lib/erlang/lib/erl_interface-3.7.6//include -DHAVE_CONFIG_H  -pipe -O2 -arch x86_64   -c /opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release/peb.c -o peb.lo 
mkdir .libs
 /usr/bin/clang -I. -I/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release -DPHP_ATOM_INC -I/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release/include -I/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release/main -I/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release -I/opt/local/include/php54/php -I/opt/local/include/php54/php/main -I/opt/local/include/php54/php/TSRM -I/opt/local/include/php54/php/Zend -I/opt/local/include/php54/php/ext -I/opt/local/include/php54/php/ext/date/lib -I/opt/local/include -I/opt/local/include -I/opt/local/lib/erlang/lib/erl_interface-3.7.6//include -DHAVE_CONFIG_H -pipe -O2 -arch x86_64 -c /opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release/peb.c  -fno-common -DPIC -o .libs/peb.o
/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release/peb.c:797:5: error: non-void function '_peb_encode_term' should return a value [-Wreturn-type]
                                return;
                                ^
/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release/peb.c:849:11: error: non-void function '_peb_encode' should return a value [-Wreturn-type]
          return;
          ^
/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release/peb.c:903:5: error: non-void function '_peb_encode' should return a value [-Wreturn-type]
                                return;
                                ^
/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release/peb.c:934:5: error: non-void function '_peb_encode' should return a value [-Wreturn-type]
                                return;                          
                                ^
/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release/peb.c:943:5: error: non-void function '_peb_encode' should return a value [-Wreturn-type]
                                return;
                                ^
/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release/peb.c:1198:8: warning: incompatible pointer to integer conversion assigning to 'int' from 'void *'; 
  intp = NULL;
       ^ ~~~~
1 warning and 5 errors generated.
make: *** [peb.lo] Error 1
make: Leaving directory `/Volumes/work/macports/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release'
Command failed:  cd "/opt/local/var/macports/build/_Volumes_work_mports_dports_php_php-peb/php54-peb/work/peb_release" && /usr/bin/make -j4 -w all 
Exit code: 2
Error: org.macports.build for port php54-peb returned: command execution failed
DEBUG: Error code: NONE
DEBUG: Backtrace: command execution failed
    while executing
"$procedure $targetname"
Warning: targets not executed for php54-peb: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Please see the log file for port php54-peb for details:
    /opt/local/var/macports/logs/_Volumes_work_mports_dports_php_php-peb/php54-peb/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port php54-peb failed

Change History (3)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Garth Gillespie sent me a patch to fix this. Thanks! Committed to php-peb in r98320.

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Committed to php5-peb in r98321.

Note: See TracTickets for help on using tickets.