Around a month ago, after upgrading my ports tree, most of my X-related applications were broken. I soon learned that I should have read /usr/ports/UPDATING before doing all the recompilation, because the old Xorg version (7) was decided to not be supported. Back then I was using FreeBSD 9.1 RELEASE (on a i386 platform).
I soon decided that the best to solve my problem was to upgrade my base to 10.0-RELEASE. In the process of upgrading, after using
But after that I found that all the port-building was unsuccessful. Some sort of library linking problem I supposed.
Recently I upgraded from 10.0-RELEASE to 10.1-RELEASE again. But the problem of ports not building persists. I wonder if anyone here knows how to fix it.
Let me describe the problem I have a little bit further:
After deleting all the third-party packages on 10.0-RELEASE, I did
And for many of the other ports, I had got library linking problems too. For example, for mail/mutt, the relevant part of the message was:
And for another example, for graphics/mupdf, I got:
Could someone help? Thanks!
I soon decided that the best to solve my problem was to upgrade my base to 10.0-RELEASE. In the process of upgrading, after using
freebsd-update upgrade -r 10.0-RELEASE
I did freebsd-update install
and then reboot to do it again; and as usual I was instructed to rebulid all the ports. I somehow decided to delete all the third-party packages on my system first, and then I did freebsd-update install
again to finish.But after that I found that all the port-building was unsuccessful. Some sort of library linking problem I supposed.
Recently I upgraded from 10.0-RELEASE to 10.1-RELEASE again. But the problem of ports not building persists. I wonder if anyone here knows how to fix it.
Let me describe the problem I have a little bit further:
After deleting all the third-party packages on 10.0-RELEASE, I did
freebsd-update upgrade -r 10.1-RELEASE
followed by three times of freebsd-update install
Then to starting building all the ports I wanted, I tried to build ports-mgmt/pkg, and the relevant part of the message I got was
Code:
checking for gmtime_r... yes
checking for strerror_r... (cached) yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for git... no
checking for library containing lzma_version_string... no
configure: error: unable to find the liblzma
And for many of the other ports, I had got library linking problems too. For example, for mail/mutt, the relevant part of the message was:
Code:
libtool: link: c++ -shared -nostdlib ....(some codes here)..... -Wl,-soname -Wl,libaspell.so.15 -o .libs/libaspell.so.15.1.5
/usr/bin/ld: .libs/libaspell.so.15.1.5: version node not found for symbol _malloc_op
tions@FBSD_1.0
/usr/bin/ld: failed to set dynamic section sizes: Bad value
c++: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:1014: recipe for target 'libaspell.la' failed
gmake[5]: *** [libaspell.la] Error 1
gmake[5]: *** Waiting for unfinished jobs....
And for another example, for graphics/mupdf, I got:
Code:
libtool: link: cc -shared .libs/jbig2.o .libs/jbig2_arith.o .libs/jbig2_arith_int.o
.libs/jbig2_arith_iaid.o .libs/jbig2_huffman.o .libs/jbig2_segment.o .libs/jbig2_pa
ge.o .libs/jbig2_symbol_dict.o .libs/jbig2_text.o .libs/jbig2_generic.o .libs/jbig2_
refinement.o .libs/jbig2_mmr.o .libs/jbig2_halftone.o .libs/jbig2_image.o .libs/jbig
2_image_pbm.o .libs/jbig2_metadata.o -L/usr/local/lib -lpng -lz -Wl,-soname -Wl
,libjbig2dec.so.0 -o .libs/libjbig2dec.so.0.0.0
/usr/bin/ld: .libs/libjbig2dec.so.0.0.0: version node not found for symbol _malloc_o
ptions@FBSD_1.0
/usr/bin/ld: failed to set dynamic section sizes: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [libjbig2dec.la] Error code 1
Could someone help? Thanks!