Bug #51706 | Cannot compile my C project whith latest MySQL Version | ||
---|---|---|---|
Submitted: | 4 Mar 2010 1:12 | Modified: | 26 May 2010 6:44 |
Reporter: | Hernando Gonzalez | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | MySQL 5.1.44 & 5.5.2 | OS: | Linux (RHEL 5.4 x64) |
Assigned to: | CPU Architecture: | Any | |
Tags: | MySQL 5.1.44 & 5.5.2 |
[4 Mar 2010 1:12]
Hernando Gonzalez
[4 Mar 2010 4:26]
Valeriy Kravchuk
Thank you for the problem report. Please, send gcc command line used to compile. Had you installed from RPMs (then send the results of rpm -q -a | grep -i mysql) or from .tar.gz package?
[4 Mar 2010 4:44]
Hernando Gonzalez
rpm -q -a | grep -i mysql MySQL-server-community-5.5.2_m2-1.rhel5 MySQL-devel-community-5.5.2_m2-1.rhel5 MySQL-client-community-5.5.2_m2-1.rhel5 MySQL-community-debuginfo-5.5.2_m2-1.rhel5 MySQL-shared-community-5.5.2_m2-1.rhel5 MySQL-test-community-5.5.2_m2-1.rhel5 My C project is compile in this way: autoreconf --install --force automake --add-missing mkdir objdir cd objdir export CXXFLAGS="-O3" export CFLAGS="-O3" ../configure make make install (I need really clarify that with MySQL 5, and MySQL 5.4.3 i can compile without any problem)
[4 Mar 2010 4:59]
Valeriy Kravchuk
When make runs it executes gcc commands for each .cpp file. So, please, either upload Makefile generated or just last gcc command line that produced errors.
[4 Mar 2010 5:32]
Hernando Gonzalez
* This is the makefile.am where the compiler produce the error: http://paste2.org/p/700252 and this is the makefile.in generate for the compilation: http://paste2.org/p/700254 * This is the mysql part from configure.ac: # here mysql AC_MSG_CHECKING(whether to build/link MYSQL) if test "x$DO_MYSQL" = "xyes"; then AC_MSG_RESULT($DO_MYSQL) AC_PATH_PROGS(MYSQL_CONFIG, mysql_config, mysql_config, $PATH) if test -x "$MYSQL_CONFIG" then # MySQL v4 uses --include while v3 uses --cflags MYSQL_INCLUDES="`$MYSQL_CONFIG --include`" || \ MYSQL_INCLUDES="`$MYSQL_CONFIG --cflags`" MYSQL_LIBS="`$MYSQL_CONFIG --libs_r`" CXXFLAGS="-DDO_MYSQL $CXXFLAGS" # Workaround for --as-needed linker flag that comes sometimes from mysql if echo $MYSQL_LIBS|grep "\-Wl,--as-needed" > /dev/null; then MYSQL_LIBS=`echo $MYSQL_LIBS|sed -e "s/-Wl,--as-needed//"`; AC_MSG_WARN([Your mysql libs contains -Wl,--as-needed, this is not good, problem fixed in more recent mysql versions]) fi fi else AC_MSG_RESULT($DO_MYSQL) fi * This is all configure.ac http://paste2.org/p/700246
[26 Apr 2010 6:44]
Sveta Smirnova
Thank you for the feedback. All links expired now. Please send us last gcc command line that produced errors.
[26 May 2010 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".