Opened 15 years ago

Closed 15 years ago

#21160 closed defect (invalid)

10.6 php 5.3 - php5-tidy dies at runtime

Reported by: ben.lake@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: php5 tidy php5.3 Cc:
Port: php5-tidy

Description (last modified by ryandesign (Ryan Carsten Schmidt))

php5-tidy (Portfile) in 10.6 alongside php5 @5.3.0 compiles and installs fine, but when loaded into php at runtime it dies with the following:

dyld: lazy symbol binding failed: Symbol not found: _tidyReleaseDate
 Referenced from:
/opt/local/lib/php/extensions/no-debug-non-zts-20090626/tidy.so
 Expected in: flat namespace

dyld: Symbol not found: _tidyReleaseDate
 Referenced from:
/opt/local/lib/php/extensions/no-debug-non-zts-20090626/tidy.so
 Expected in: flat namespace 

Environment

System Version:	Mac OS X 10.6 (10A432)
Kernel Version:	Darwin 10.0.0
Model Identifier: MacBookPro5,1
MacPorts 1.8.0
PHP 5.3.0 (cli) (built: Sep  6 2009 14:30:15) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
    with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans
gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5646~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5646)

Change History (5)

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

Description: modified (diff)

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

Description: modified (diff)

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

Hmm, it works for me, using the example from the manual:

$ cat tidy.php
<?php
ob_start();
?>
<html>a html document</html>
<?php
$html = ob_get_clean();

// Specify configuration
$config = array(
           'indent'         => true,
           'output-xhtml'   => true,
           'wrap'           => 200);

// Tidy
$tidy = new tidy;
$tidy->parseString($html, $config, 'utf8');
$tidy->cleanRepair();

// Output
echo $tidy;
$ php tidy.php 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title></title>
  </head>
  <body>
    a html document
  </body>
</html>$

Did you upgrade from Leopard? If so, did you follow the Migration page and rebuild all your ports? I have a feeling your tidy may be 32-bit while your php5-tidy is 64-bit.

comment:4 Changed 15 years ago by ben.lake@…

Yes I did upgrade and yes I have been recompiling everything all day, but since you say it works. I tried it again and... sigh, you are correct! I swear I forcibly recompiled tidy before I bothered with php5-tidy, but *shrug* is all I can say. Sorry to of bothered.

comment:5 Changed 15 years ago by jmroot (Joshua Root)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.