From: jv Date: May 2 2003 9:29am Subject: Building (configure) problems with mysqlcc 0.9.2 List-Archive: http://lists.mysql.com/gui-tools/826 Message-Id: <3EB23A62.8080208@wolmail.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit First I installed the binary of mysqlcc 0.9.2. After starting the application it crashes (segmentation fault) when clicking on tables in a database. It crashes not always at clicking on the first table, but after clicking a few tables it crashes. I decided to build mysqlcc 0.9.2 myself. I have these rpm's installed: rpm -qa | grep MySQL MySQL-shared-4.1.0-0 MySQL-client-4.1.0-0 MySQL-Max-4.1.0-0 MySQL-server-4.1.0-0 MySQL-devel-4.1.0-0 when I run the configure script I get an error (see below) ./configure checking build system type... i686-pc-linux-g++ checking host system type... i686-pc-linux-g++ checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for compress in -lz... no checking for libmysqlclient... checking for "/usr/lib/libmysqlclient.a"... no checking for "/usr/lib/mysql/libmysqlclient.a"... yes checking for mysql_real_connect in -lmysqlclient... no configure: error: Could not find libmysqlclient in ' /usr/lib /usr/lib/mysql /usr/local/lib /usr/local/lib/mysql /usr/local/mysql/lib' This is the last part of config.log configure:2418: result: no configure:2440: checking for libmysqlclient configure:2442: result: configure:2457: checking for "/usr/lib/libmysqlclient.a" configure:2472: result: no configure:2457: checking for "/usr/lib/mysql/libmysqlclient.a" configure:2472: result: yes configure:2485: checking for mysql_real_connect in -lmysqlclient configure:2518: gcc -o conftest -g -O2 conftest.c -lmysqlclient -L/usr/lib/mysql >&5 /usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0xaa): In function `my_uncompress': : undefined reference to `uncompress' /usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x13c): In function `my_compress_alloc': : undefined reference to `compress' collect2: ld returned 1 exit status configure:2521: $? = 1 configure: failed program was: #line 2492 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mysql_real_connect (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { mysql_real_connect (); ; return 0; } configure:2538: result: no configure:2552: error: Could not find libmysqlclient in ' /usr/lib /usr/lib/mysql /usr/local/lib /usr/local/lib/mysql /usr/local/mysql/lib' ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=i686-pc-linux-g++ ac_cv_build_alias=i686-pc-linux-g++ ac_cv_c_compiler_gnu=yes ac_cv_cxx_compiler_gnu=yes ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_exeext= ac_cv_file__usr_lib_libmysqlclient_a=no ac_cv_file__usr_lib_mysql_libmysqlclient_a=yes ac_cv_host=i686-pc-linux-g++ ac_cv_host_alias=i686-pc-linux-g++ ac_cv_lib_mysqlclient_mysql_real_connect=no ac_cv_lib_z_compress=no ac_cv_objext=o ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_CXX=g++ ac_cv_prog_cc_g=yes ac_cv_prog_cxx_g=yes ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #ifdef __cplusplus #include #endif configure: exit 1 Can someone tell me why mysqlcc segfaults, or how to build it myself? TIA Jan Vlug