Installing packages using ports after freebsd-update doesn't
work on amd64
Sorin Pânca
sorin.panca at psrk.com
Mon Jan 26 11:55:13 PST 2009
Massimo Fusaro wrote:
> 2009/1/26 Sorin Panca <sorin.panca at psrk.com>:
>> 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.
>> _______________________________________________
>> freebsd-stable at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
>> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
>>
>
> Please remove the directory /var/db/ports/ruby and stick to default
> CFLAGS by removing all CFLAGS definitions from /etc/make.conf (you can
> add your options later)
>
> It seems that ruby always uses "-pthread" even if threading is not
> enabled, -fPIC in NOT needed.
>
> Check that libpthread.* is a symlink to libthr.* and that libthr.so ->
> /lib/libthr.so.3
The libthr symlinks are as you described them.
(As I said in my latest post, I think that not only ruby is affected by
this 'bug', but all ports that try to link against libpthread. I
installed ruby using pkg_add, but I continue to experiment with python.
Using make config, I selected THREADING and deselected IPV6.)
I commented out the CFLAGS line in /etc/make.conf, then:
# cd /usr/ports/lang/python25
# rm -rf /var/db/ports/python25
# make clean
===> Cleaning for python25-2.5.2_3
# make install clean
[...]
cc -c -fno-strict-aliasing -DNDEBUG -O2 -fno-strict-aliasing -pipe
-D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -I. -IInclude
-I./../Include -fPIC -DPy_BUILD_CORE -DSVNVERSION=\"`LC_ALL=C echo
exported`\" -o Modules/getbuildinfo.o ./../Modules/getbuildinfo.c
if test libpython2.5.so != libpython2.5.so; then cc -shared -pthread
-Wl,-hlibpython2.5.so -o libpython2.5.so Modules/_typesmodule.o
Modules/getbuildinfo.o Parser/acceler.o Parser/grammar1.o
Parser/listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o
Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o
Parser/grammar.o Parser/pgen.o Parser/myreadline.o Parser/tokenizer.o
Objects/abstract.o Objects/boolobject.o Objects/bufferobject.o
Objects/cellobject.o Objects/classobject.o Objects/cobject.o
Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o
Objects/enumobject.o Objects/exceptions.o Objects/genobject.o
Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o
Objects/funcobject.o Objects/intobject.o Objects/iterobject.o
Objects/listobject.o Objects/longobject.o Objects/dictobject.o
Objects/methodobject.o Objects/moduleobject.o Objects/object.o
Objects/obmalloc.o Objects/rangeobject.o Objects/setobject.o
Objects/sliceobject.o Objects/stringobject.o Objects/structseq.o
Objects/tupleobject.o Objects/typeobject.o Objects/weakrefobject.o
Objects/unicodeobject.o Objects/unicodectype.o Python/Python-ast.o
Python/asdl.o Python/ast.o Python/bltinmodule.o Python/ceval.o
Python/compile.o Python/codecs.o Python/errors.o Python/frozen.o
Python/frozenmain.o Python/future.o Python/getargs.o
Python/getcompiler.o Python/getcopyright.o Python/getmtime.o
Python/getplatform.o Python/getversion.o Python/graminit.o
Python/import.o Python/importdl.o Python/marshal.o
Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o
Python/pyarena.o Python/pyfpe.o Python/pystate.o Python/pythonrun.o
Python/structmember.o Python/symtable.o Python/sysmodule.o
Python/traceback.o Python/getopt.o Python/pystrtod.o
Python/dynload_shlib.o Python/thread.o Modules/config.o
Modules/getpath.o Modules/main.o Modules/gcmodule.o
Modules/threadmodule.o Modules/signalmodule.o Modules/posixmodule.o
Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o
Modules/_codecsmodule.o Modules/zipimport.o Modules/symtablemodule.o
Modules/xxsubtype.o -lutil -lm; ln -f libpython2.5.so libpython2.5.so;
else cc -shared -pthread -o libpython2.5.so Modules/_typesmodule.o
Modules/getbuildinfo.o Parser/acceler.o Parser/grammar1.o
Parser/listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o
Parser/bitset.o Parser/metagrammar.o
Parser/firstsets.oParser/grammar.o Parser/pgen.o Parser/myreadline.o
Parser/tokenizer.o Objects/abstract.o Objects/boolobject.o
Objects/bufferobject.o Objects/cellobject.o Objects/classobject.o
Objects/cobject.o Objects/codeobject.o Objects/complexobject.o
Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o
Objects/genobject.o Objects/fileobject.o Objects/floatobject.o
Objects/frameobject.o Objects/funcobject.o Objects/intobject.o
Objects/iterobject.o Objects/listobject.o Objects/longobject.o
Objects/dictobject.o Objects/methodobject.o Objects/moduleobject.o
Objects/object.o Objects/obmalloc.o Objects/rangeobject.o
Objects/setobject.o Objects/sliceobject.o Objects/stringobject.o
Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o
Objects/weakrefobject.o Objects/unicodeobject.o Objects/unicodectype.o
Python/Python-ast.o Python/asdl.o Python/ast.o Python/bltinmodule.o
Python/ceval.o Python/compile.o Python/codecs.o Python/errors.o
Python/frozen.o Python/frozenmain.o Python/future.o Python/getargs.o
Python/getcompiler.o Python/getcopyright.o Python/getmtime.o
Python/getplatform.o Python/getversion.o Python/graminit.o
Python/import.o Python/importdl.o Python/marshal.o
Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o
Python/pyarena.o Python/pyfpe.o Python/pystate.o Python/pythonrun.o
Python/structmember.o Python/symtable.o Python/sysmodule.o
Python/traceback.o Python/getopt.o Python/pystrtod.o
Python/dynload_shlib.o Python/thread.o Modules/config.o
Modules/getpath.o Modules/main.o Modules/gcmodule.o
Modules/threadmodule.o Modules/signalmodule.o Modules/posixmodule.o
Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o
Modules/_codecsmodule.o Modules/zipimport.o Modules/symtablemodule.o
Modules/xxsubtype.o -lutil -lm; fi
/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
*If I disable THREADING however, it compiles successfully.*
Compiling ruby18 (not python25) with THREADING enabled or disabled, I
get the same error, so I guess you are right about the -pthread flag.
Sorin
More information about the freebsd-stable
mailing list