Sorin Panca
2009-Jan-24 14:01 UTC
Installing packages using ports after freebsd-update doesn't work on amd64
After upgrading the system using freebsd-update from 6.3-RELEASE to 7.0-RELEASE and after that, from 7.0 to 7.1 trying to install ports-mgmt/portupgrade fails at ruby18 with the following message: cc -shared -Wl,-soname,libruby18.so.18 array.o bignum.o class.o compar.o dir.o dln.o enum.o error.o eval.o file.o gc.o hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o parse.o process.o prec.o random.o range.o re.o regex.o ruby.o signal.o sprintf.o st.o string.o struct.o time.o util.o variable.o version.o dmyext.o -lcrypt -lm -rpath=/usr/lib:/usr/local/lib -pthread -o libruby18.so.18 /usr/bin/ld: /usr/lib/libpthread.a(thr_syscalls.o): relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC /usr/lib/libpthread.a: could not read symbols: Bad value *** Error code 1 I added CFLAGS?= -O2 -fPIC -pipe to /etc/make.conf but the problem persists. I didn't activate pthread support for ruby18. Any ideas on what's going wrong here? Thank you! Sorin.
Doug Barton
2009-Jan-24 15:12 UTC
Installing packages using ports after freebsd-update doesn't work on amd64
Sorin Panca wrote:> After upgrading the system using freebsd-update from 6.3-RELEASE to > 7.0-RELEASE and after that, from 7.0 to 7.1 trying to install > ports-mgmt/portupgrade fails at ruby18 with the following message:If you haven't already you have to remove and reinstall _all_ of your ports after doing a major version upgrade (6.x -> 7.x). -- This .signature sanitized for your protection
Tore Lund
2009-Jan-25 11:44 UTC
Installing packages using ports after freebsd-update doesn't work on amd64
Sorin Panca wrote:> Prior to starting the upgrade I did a pkg_delete -a. I wanted a clean > system (just like a reinstallation). How do I ensure that all packages > were removed by pkg_delete -a ?I cannot help wonder why you try to do a binary update. Saving some configuration files and doing a reinstall might have been easier IMO. -- Tore
Sorin Panca
2009-Jan-25 23:42 UTC
Installing packages using ports after freebsd-update doesn't work on amd64
Tore Lund wrote:> Sorin Panca wrote: >> Prior to starting the upgrade I did a pkg_delete -a. I wanted a clean >> system (just like a reinstallation). How do I ensure that all packages >> were removed by pkg_delete -a ? > > I cannot help wonder why you try to do a binary update. Saving some > configuration files and doing a reinstall might have been easier IMO.I'm located in Europe, while the server is in the US. I also think that a serious OS should be upgradable both from source and binaries without booting it from other media, at runtime. Asking people near that server to do something I should be able to do is never a good option. Regards, Sorin.