关闭

FreeBSD 6.0-RELEASE 下使用prots安装 jdk15遇到的一个问题

标签: freebsdjdkreferencexmlsearchpath
1709人阅读 评论(1) 收藏 举报
# cd /usr/ports/java/jdk15/
# make install
...
/bin/sh /usr/ports/graphics/cairo/work/gnome-libtool --tag=CC --mode=link cc  -O2 -fno-strict-aliasing -pipe -march=pentiumpro   -pthread -o imagediff  imagediff.o libcairotest.la ../src/libcairo.la  -pthread -lm
cc -O2 -fno-strict-aliasing -pipe -march=pentiumpro -pthread -o .libs/imagediff imagediff.o -pthread  ./.libs/libcairotest.a ../src/.libs/libcairo.so -L/usr/X11R6/lib -lXrender -lX11 -lXext -L/usr/local/lib -lpng /usr/local/lib/libglitz.so -lfontconfig -lfreetype -lz -pthread -lm -Wl,--rpath -Wl,/usr/local/lib
/usr/bin/ld: warning: libexpat.so.5, needed by /usr/X11R6/lib/libfontconfig.so, not found (try using -rpath or -rpath-link)
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_SetElementHandler'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_SetDoctypeDeclHandler'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_ParserFree'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_SetCharacterDataHandler'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_ErrorString'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_ParseBuffer'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_ParserCreate'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_SetUserData'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_GetErrorCode'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_GetBuffer'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_GetCurrentLineNumber'
*** Error code 1

Stop in /usr/ports/graphics/cairo/work/cairo-1.0.4/test.
*** Error code 1

Stop in /usr/ports/graphics/cairo/work/cairo-1.0.4.
*** Error code 1

Stop in /usr/ports/graphics/cairo/work/cairo-1.0.4.
*** Error code 1

Stop in /usr/ports/graphics/cairo.
*** Error code 1

Stop in /usr/ports/x11-toolkits/pango.
*** Error code 1

Stop in /usr/ports/x11-toolkits/gtk20.
*** Error code 1

Stop in /usr/ports/devel/gconf2.
*** Error code 1

Stop in /usr/ports/www/mozilla.
*** Error code 1

Stop in /usr/ports/java/jdk15.


原因:
看看你的/usr/lib/;/usr/X11R6/lib;/usr/local/lib/下面有没有“libexpat.so*”的文件,可能是你用ports安装软件将expat的库文件升级了。
做个名为"libexpat.so.5"的符号连接到那个文件即可。
如果没有,用ports安装expat(到/usr/ports下面make search一下),然后再做符号连接。
如果你的系统有"libexpat.so.5",运行下面的命令试试:
ldconfig -m PATH(文件所在路径)
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:338103次
    • 积分:6332
    • 等级:
    • 排名:第3853名
    • 原创:254篇
    • 转载:13篇
    • 译文:1篇
    • 评论:354条
    最新评论