#14795: BUG: php4 fails if sablotron was built with javascript variant -----------------------------------------+---------------------------------- Reporter: marcuscalhounlopez@mac.com | Owner: jwa@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: -----------------------------------------+---------------------------------- Comment (by marcuscalhounlopez@mac.com): Basically, php4 needs to know about the javascript library spidermonkey.[[BR]] The specific error is below. I agree that the fix is ugly, but I do not know of a better fix within the MacPorts API.[[BR]] To my knowledge, there is no "variant_isset" command for previously installed ports.[[BR]] The only solutions I have thought of are to: * Use the ugly fix. * Cease making javascript a variant in sablotron and simply have it be part of the port (thus ensuring "--with-sablot-js=${prefix}" is always correct). * Have php4 +xlst depend on spidermonkey and always use "--with-sablot- js=${prefix}." * Have php4 test if the file ${prefix}/lib/libjs.dylib exists and use "--with-sablot-js=${prefix}" if it does. If "--with-sablot-js=${prefix}" is used and spidermonkey is not installed, the error is: {{{ checking for JS_GetRuntime in -ljs... no configure: error: libjs not found. Please check config.log for more information. }}} If "--with-sablot-js=${prefix}" is not used, and sablotron links against it, the error is: {{{ DEBUG: Executing org.macports.destroot (php4) DEBUG: Environment: DEBUG: Assembled command: 'cd "/Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/php-4.4.8" && make install-cli install-pear install-build install-headers install- programs INSTALL_ROOT=/Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot PHP_PEAR_INSTALL_DIR=/Users/mcalhoun/opt/local/lib/php DESTDIR=/Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot' Installing PHP CLI binary: /Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot/Users/mcalhoun/opt/local/bin/ Installing PHP CLI man page: /Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot/Users/mcalhoun/opt/local/share/man/man1/ Installing PEAR environment: /Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot/Users/mcalhoun/opt/local/lib/php4/ dyld: Symbol not found: _JS_ConvertStub Referenced from: /Users/mcalhoun/opt/local/lib/libsablot.0.dylib Expected in: flat namespace make[1]: *** [install-pear-packages] Trace/BPT trap make: *** [install-pear] Error 2 Error: Target org.macports.destroot returned: shell command " cd "/Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/php-4.4.8" && make install-cli install-pear install-build install-headers install- programs INSTALL_ROOT=/Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot PHP_PEAR_INSTALL_DIR=/Users/mcalhoun/opt/local/lib/php DESTDIR=/Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot " returned error 2 Command output: Installing PHP CLI binary: /Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot/Users/mcalhoun/opt/local/bin/ Installing PHP CLI man page: /Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot/Users/mcalhoun/opt/local/share/man/man1/ Installing PEAR environment: /Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot/Users/mcalhoun/opt/local/lib/php4/ dyld: Symbol not found: _JS_ConvertStub Referenced from: /Users/mcalhoun/opt/local/lib/libsablot.0.dylib Expected in: flat namespace make[1]: *** [install-pear-packages] Trace/BPT trap make: *** [install-pear] Error 2 Warning: the following items did not execute (for php4): org.macports.activate org.macports.destroot org.macports.install Error: Status 1 encountered during processing. }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14795#comment:3> MacPorts </projects/macports> Ports system for Mac OS