Opened 9 years ago

Closed 9 years ago

#45934 closed defect (worksforme)

php53-suhosin fails to build with: "error: use of undeclared identifier 'S_GETCALLER'"

Reported by: kasperligaard+macports@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Low Milestone:
Component: ports Version: 2.3.2
Keywords: Cc:
Port: php53-suhosin

Description

For a couple of weeks now, the php53-suhosin port has failed to compile. I get the following error:

Error: org.macports.build for port php53-suhosin returned: command execution failed
Please see the log file for port php53-suhosin for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php-suhosin/php53-suhosin/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Looking at the end of the log file show several "error: use of undeclared identifier 'S_GETCALLER'", as seen in the following:

~$ tail -40 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php-suhosin/php53-suhosin/main.log
:info:build                                               ^
:info:build make: *** [log.lo] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php-suhosin/php53-suhosin/work/suhosin-0.9.36/execute.c:602:37: error: use of undeclared identifier 'S_GETCALLER'
:info:build                         suhosin_log(S_INCLUDE|S_GETCALLER, "Include filename ('%s') is writable by PHP process", op_array->filename);
:info:build                                               ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php-suhosin/php53-suhosin/work/suhosin-0.9.36/execute.c:607:26: error: use of undeclared identifier 'S_GETCALLER'
:info:build                         suhosin_log(S_INCLUDE|S_GETCALLER, "Include filename ('%s') is an URL that is forbidden by the blacklist", op_array->filename);
:info:build                                               ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php-suhosin/php53-suhosin/work/suhosin-0.9.36/execute.c:612:26: error: use of undeclared identifier 'S_GETCALLER'
:info:build                         suhosin_log(S_INCLUDE|S_GETCALLER, "Include filename ('%s') is an URL that is not allowed", op_array->filename);
:info:build                                               ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php-suhosin/php53-suhosin/work/suhosin-0.9.36/execute.c:1687:28: error: use of undeclared identifier 'S_GETCALLER'
:info:build                                 suhosin_log(S_EXECUTOR|S_GETCALLER, "function outside of eval whitelist called: %s()", lcname);
:info:build                                                        ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php-suhosin/php53-suhosin/work/suhosin-0.9.36/execute.c:1696:28: error: use of undeclared identifier 'S_GETCALLER'
:info:build                                 suhosin_log(S_EXECUTOR|S_GETCALLER, "function within eval blacklist called: %s()", lcname);
:info:build                                                        ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php-suhosin/php53-suhosin/work/suhosin-0.9.36/execute.c:1708:27: error: use of undeclared identifier 'S_GETCALLER'
:info:build                         suhosin_log(S_EXECUTOR|S_GETCALLER, "function outside of whitelist called: %s()", lcname);
:info:build                                                ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php-suhosin/php53-suhosin/work/suhosin-0.9.36/execute.c:1717:27: error: use of undeclared identifier 'S_GETCALLER'
:info:build                         suhosin_log(S_EXECUTOR|S_GETCALLER, "function within blacklist called: %s()", lcname);
:info:build                                                ^
:info:build 14 errors generated.
:info:build make: *** [execute.lo] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php-suhosin/php53-suhosin/work/suhosin-0.9.36'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php-suhosin/php53-suhosin/work/suhosin-0.9.36" && /usr/bin/make -j8 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port php53-suhosin returned: command execution failed
:debug:build Error code: NONE
:debug:build Backtrace: command execution failed
    while executing
"proc-org.macports.build-build-0 org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for php53-suhosin: org.macports.destroot org.macports.build
:notice:build Please see the log file for port php53-suhosin for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_php_php-suhosin/php53-suhosin/main.log

PS: I set this tickets 'Priority' to 'Low'.

Attachments (1)

main.log (57.8 KB) - added by kasperligaard+macports@… 9 years ago.
php53-suhosin main.log file.

Download all attachments as: .zip

Change History (7)

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

Owner: changed from macports-tickets@… to ryandesign@…

What versions of OS X, Xcode, and clang? Could you attach the main.log file?

comment:2 Changed 9 years ago by kasperligaard+macports@…

System description:

  • OS X Yosemite, 10.10.1
  • Xcode version 6.1 (6A1052d)
$ clang --version
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix

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

That log isn't from a clean build. Could you clean, try again, and attach the new log? It builds fine for me on the same OS X / Xcode / clang version.

Changed 9 years ago by kasperligaard+macports@…

Attachment: main.log added

php53-suhosin main.log file.

comment:4 Changed 9 years ago by kasperligaard+macports@…

Uploaded main.log file from clean build.

Note: MacPorts version this time is 2.3.3 (previously it was 2.3.2); the build still fails, though.

comment:5 Changed 9 years ago by kasperligaard+macports@…

A few days ago it started compiling php53-suhosin without problems. This issue can be closed.

For comparison with the system description provided earlier, this is the data for my machine today:

  • OS X Yosemite, 10.10.1
  • Version 6.1.1 (6A2008a)
$ clang --version
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix

comment:6 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: worksforme
Status: newclosed

Hmm, I wish we had figured out why it wasn't working for you, but I'm glad it's working now.

Note: See TracTickets for help on using tickets.