Using the -fpic option might help. I have usually build Q4M on CentOS
5 (x86_64) with the following options.
./configure --prefix=... --with-mysql=... CFLAGS='-O2 -g -Wall -fpic'
CXXFLAGS='-O2 -g -Wall -fpic'
2008/8/26 L.INA <tara...@gmail.com>:
--
Kazuho Oku
Thank you for the details. Would you please try the patch attached?
I hope it fixes the problem.
Q4M consists of two source files that require different compile
options. However, it is impossible with automake to set different
compile option per compile unit. So we are first compiling one source
file as a static library and then trying to link it against the core
code of Q4M.
And that is the cause of the problem. I thought it would only
generate a warning, but your libtool seems to be giving error for the
usage.
So I have tweaked src/Makefile.am a little, and on my servers, the
warning has gone away, and the test suite runs fine, but I am not sure
whether it would build fine on other environments. Would you mind
testing a patch?
2008/8/27 L.INA <tara...@gmail.com>:
--
Kazuho Oku