On 02/28/2012 09:07 AM, David C. Rankin wrote:
On 02/28/2012 08:44 AM, Jay wrote:
*Even closer yet again! I am building version 1.0.7 from the tarball.* Just to be clear. Where are you sourcing the v1.0.7 tarball? Directly from the kdelook.org http://kdelook.org site?
I am building under tqt3 and my prefix is /usr and i am still stuck at the 'not finding headers and libraries' issue. After applying your patch there was no change for me.
Jay
Yes, I'm building from the 1.0.7 tarball from kdelook.org. The patches allowed me to get past previous errors. As another fix, try linking
ln -s ${TDEDIR}/lib/trinity ${TDEDIR}/lib/kde3
Then apply the patch. The use the configure string:
cd ${srcdir}/crystal-$pkgver ./configure --prefix=${TDEDIR} \ --with-qt-dir=${QTDIR} \ --with-extra-includes=${TDEDIR}/include/tqt
I have tried adding:
--with-extra-libs=${TDEDIR}/lib/trinity
but it made no difference for me. I'm still stuck with the libtool error:
/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -o embedtool -L/opt/trinity/lib -L/opt/qt3/lib -L/opt/trinity/lib/trinity embedtool.o -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread g++: error: unrecognized option '--sort-common' g++: error: unrecognized option '--as-needed' g++: error: unrecognized option '--hash-style=gnu' make[2]: *** [embedtool] Error 1 make[2]: Leaving directory `/build/src/crystal-1.0.7/pics' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/build/src/crystal-1.0.7' make: *** [all] Error 2
AARGH!! I think this is may be due to my version of gcc. I just found a link that allows you to sed out the offending options from the configure file itself. I'll give it a go and report back.
GRRR!
Even though I completely removed the '--as-needed' flags from the entire crystal source, some magic tool puts it back in the Makefile:
grep -r 'as-needed' * client/Makefile:LDFLAGS = -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu client/config/Makefile:LDFLAGS = -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu <snip log files> config.status:ac_cs_config="'--prefix=/opt/trinity' '--with-qt-dir=/opt/qt3' '--with-extra-includes=/opt/trinity/include/tqt' '--with-extra-libs=/opt/trinity/lib/trinity' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu' 'CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'" config.status: set X '/bin/sh' './configure' '--prefix=/opt/trinity' '--with-qt-dir=/opt/qt3' '--with-extra-includes=/opt/trinity/include/tqt' '--with-extra-libs=/opt/trinity/lib/trinity' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu' 'CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' $ac_configure_extra_args --no-create --no-recursion config.status:S["LDFLAGS"]="-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu" Makefile:LDFLAGS = -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu pics/Makefile:LDFLAGS = -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu
I have attached to new patch that gets rid of the --as-needed stuff. Where in the heck do these entries come from:
--sort-common,--as-needed,<snip>,--hash-style=gnu
The error I am stuck at remains:
/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -o embedtool -L/opt/trinity/lib -L/opt/qt3/lib -L/opt/trinity/lib/trinity embedtool.o -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread g++: error: unrecognized option '--sort-common' g++: error: unrecognized option '--as-needed' g++: error: unrecognized option '--hash-style=gnu' make[2]: *** [embedtool] Error 1 make[2]: Leaving directory `/build/src/crystal-1.0.7/pics' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/build/src/crystal-1.0.7' make: *** [all] Error 2