如何调试未找到的符号:___ exp10

时间:2015-08-01 09:45:14

标签: php symbols loadmodule

我正在使用以下内容编译自己的Web服务器:

  • 卷曲7.43.0
  • 的httpd-2.4.12
  • jpegsrc.v9
  • 的libpng-1.6.18
  • libxml2-2.9.2
  • PCRE-8.37
  • PHP-43年4月5日

我在MacOS 10.9上没有问题,但我在MacOS 10.8上遇到此错误:

httpd: Syntax error on line 18 of /Webserver/httpd-2.4.12/conf/httpd.conf:  
Cannot load modules/libphp5.so into server: dlopen(/Webserver/httpd/modules/libphp5.so,10): Symbol not found:___exp10  
  Referenced from: /Webserver/libxml2-2.9.2/lib/libxml2.2.dylib  
  Expected in: /usr/lib/libSystem.B.dylib  
in /Webserver/libxml2-2.9.2/lib/libxml2.2.dylib

我想知道如何调试这个?
我已经使用otool -L,但我必须承认我不知道如何解释结果:

> otool -L /Webserver/httpd/modules/libphp5.so
/Webserver/httpd/modules/libphp5.so:
    /Webserver/httpd-2.4.12/lib/libaprutil-1.0.dylib (compatibility version 6.0.0, current version 6.4.0)
    /usr/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 7.2.0)
    /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
    /Webserver/httpd-2.4.12/lib/libapr-1.0.dylib (compatibility version 6.0.0, current version 6.2.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
    /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
    /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 1.0.0)
    /Webserver/libpng-1.6.18/lib/libpng16.16.dylib (compatibility version 35.0.0, current version 35.0.0)
    /Webserver/jpeg-9/lib/libjpeg.9.dylib (compatibility version 10.0.0, current version 10.0.0)
    /Webserver/curl-7.43.0/lib/libcurl.4.dylib (compatibility version 8.0.0, current version 8.0.0)
    /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)
    /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)
    /Webserver/libxml2-2.9.1/lib/libxml2.2.dylib (compatibility version 12.0.0, current version 12.1.0)
    /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP (compatibility version 1.0.0, current version 2.4.0)

> otool -L /Webserver/libxml2-2.9.1/lib/libxml2.2.dylib
/Webserver/libxml2-2.9.1/lib/libxml2.2.dylib:
    /Webserver/libxml2-2.9.1/lib/libxml2.2.dylib (compatibility version 12.0.0, current version 12.1.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
    /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
    /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)

我可以使用哪些工具?

此致 阿诺

0 个答案:

没有答案