Alex Povolotsky
2013-Jul-31 08:45 UTC
/usr/bin/ld: warning: creating a DT_TEXTREL in a shared object after freebsd-update
Hello I've updated (with freebsd-update) an old 7.3 to 9.1-RELEASE and now I cannot build at least one port. ports-mgmt/pkg ===> Building for pkg-1.1.4_1 sed -e 's,%%PKGVERSION%%,1.1.4,' Doxyfile.in > Doxyfile ===> external (all) ===> external/sqlite (all) Warning: Object directory not changed from original /usr/ports/ports-mgmt/pkg/work/pkg-1.1.4/external/sqlite cc -O2 -pipe -fno-strict-aliasing -fPIC -DHAVE_READLINE=1 -I/usr/include/edit -DHAVE_POSIX_FALLOCATE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USLEEP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DSQLITE_OMIT_AUTOVACUUM -DSQLITE_OMIT_BLOB_LITERAL -DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_EXPLAIN -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_TCL_VARIABLE -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_CAT -DSQLITE_OMIT_CHECK -DSQLITE_OMIT_AUTOINIT -DSQLITE_OMIT_COMPILEOPTION_DIAGS -DSQLITE_OMIT_INTEGRITY_CHECK -DSQLITE_OMIT_BUILTIN_TEST -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -DUSE_PREAD -DSQLITE_THREADSAFE=1 -DSQLITE_TEMP_STORE=3 -Dmain=sqlite3_shell -DNDEBUG -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args -Werror -c sqlite3.c -o sqlite3.o ... cc -fpic -DPIC -O2 -pipe -fno-strict-aliasing -DDEFAULT_MIRROR_TYPE=1 -std=c99 -I/usr/ports/ports-mgmt/pkg/work/pkg-1.1.4/libpkg -I/usr/ports/ports-mgmt/pkg/work/pkg-1.1.4/libpkg/../external/sqlite -I/usr/ports/ports-mgmt/pkg/work/pkg-1.1.4/libpkg/../external/uthash -DBUNDLED_YAML -I /usr/ports/ports-mgmt/pkg/work/pkg-1.1.4/libpkg/../external/libyaml/include -DPREFIX=\"/usr/local\" -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c plugins.c -o plugins.So cc -fpic -DPIC -O2 -pipe -fno-strict-aliasing -DDEFAULT_MIRROR_TYPE=1 -std=c99 -I/usr/ports/ports-mgmt/pkg/work/pkg-1.1.4/libpkg -I/usr/ports/ports-mgmt/pkg/work/pkg-1.1.4/libpkg/../external/sqlite -I/usr/ports/ports-mgmt/pkg/work/pkg-1.1.4/libpkg/../external/uthash -DBUNDLED_YAML -I /usr/ports/ports-mgmt/pkg/work/pkg-1.1.4/libpkg/../external/libyaml/include -DPREFIX=\"/usr/local\" -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c pkg_old.c -o pkg_old.So building static pkg library ranlib libpkg.a building shared library libpkg.so.1 /usr/bin/ld: warning: creating a DT_TEXTREL in a shared object. *** [libpkg.so.1] Error code 1 1 error *** [all] Error code 2 1 error ===> Compilation failed unexpectedly. Googling did not yield anything useful. What should I check and fix? Alex
Fabian Wenk
2013-Aug-03 19:12 UTC
/usr/bin/ld: warning: creating a DT_TEXTREL in a shared object after freebsd-update
Hello Alex On 31.07.2013 10:45, Alex Povolotsky wrote:> Hello > > I've updated (with freebsd-update) an old 7.3 to 9.1-RELEASE and now I > cannot build at least one port.> ===> Compilation failed unexpectedly. > > Googling did not yield anything useful. What should I check and fix?Did you install the compat7x package for 9.1? If not, then download it from [1] (for an amd64 system) and use the following command to install: pkg_add compat7x-amd64-7.3.703000.201008_1.tbz [1] ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release/misc/compat7x-amd64-7.3.703000.201008_1.tbz Then you should also rebuild all installed Ports, as it is noted in the documentation. bye Fabian