This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Kernel hang with latest snapshot
Mike Mason wrote:
The lket-b2a code, and thus the systemtap build, now appears to be
dependent on the mysqlclient library by default. Probably not a good idea.
From a build of the latest systemtap CVS on ppc64:
gcc -g -O2 -o lket-b2a `pkg-config --libs glib-2.0` `mysql_config
--libs` lket_b2a-lket_b2a.o
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[2]: *** [lket-b2a] Error 1
make[2]: Leaving directory
`/home/mmason/systemtap-CVS/src/runtime/lket/b2a'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mmason/systemtap-CVS/src'
make: *** [all] Error 2
- Mike
the dependence on mysqlclient lib is optional, which means if it isn't
installed, configure will just give a warning and skip building
lket-b2a without mysql support.
But one issue is that mysql doesn't afford a pkgconfig .pc file, so I
check the existence of mysqlclient lib in autoconf by checking the
existence of mysql_config. The problem is that if you installed both
mysql-ppc and mysql-ppc64 on your ppc64 box, the mysqlclient build env
will be messed up. One way to deal with it is to uninstall both
mysql-ppc/mysql-ppc64 and install mysql-ppc only. The building of
lket-b2a need a 32-bit mysqlclient lib, while the RHEL defaultely will
first install mysql-ppc, then mysql-ppc64, which breaks the building
of 32-bit app using mysqlclient.
- Guanglei