Date: Mon, 19 Nov 2012 11:58:23 +0200 From: Volodymyr Kostyrko <c.kworr@gmail.com> To: Takeshi Taguchi <taguchi@ff.iij4u.or.jp> Cc: freebsd-ports@freebsd.org Subject: Re: [patch] databases/db42 clang -fPIC issue Message-ID: <50AA02BF.5020306@gmail.com> In-Reply-To: <50A4D79E.8090906@ff.iij4u.or.jp> References: <50A4D79E.8090906@ff.iij4u.or.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
15.11.2012 13:53, Takeshi Taguchi wrote: > Hi, > In CURRENT, clang can not compile database/db42. > here is a error message: > > BEGIN>---8<ERROR MESSAGE>8--- > /usr/bin/ld: .libs/cxx_db.o: relocation R_X86_64_32S against `_ZTV2Db' > can not be used when making a shared object; recompile with -fPIC > ..libs/cxx_db.o: could not read symbols: Bad value > c++: error: linker command failed with exit code 1 (use -v to see > invocation) > *** [libdb_cxx-4.2.la] Error code 1 > > Stop in /usr/ports/databases/db42/work/db-4.2.52/build_unix. > *** [do-build] Error code 1 > > Stop in /usr/ports/databases/db42. > END>---8<ERROR MESSAGE>8--- > > linker said 'recompile with -fPIC'. > Actualy, > BEGIN>---8<COMPILE LOG>8--- > c++ -c -I. -I./../dist/.. -D_THREAD_SAFE -O2 -fno-strict-aliasing > -pipe -fconserve-space ./../dist/../cxx/cxx_txn.cpp -DPIC > END>---8<COMPILE LOG>8--- > > there is a -DPIC flag, but not -fPIC. > Why not? The only problem with libtool about missing flags I recall was the one when ccache was used. Are you using ccache? If so, can you rebuild everything db42 depends on (especially libtool) with CCACHE_CPP2? -- Sphinx of black quartz, judge my vow.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50AA02BF.5020306>