Skip to contentSkip to conversation

New: QT MYSQL Module does not build

Buildroot bugzilla at busybox.net 1 participant 12 messages Aug 9, 2010 – Dec 22, 2010

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=2371

Summary: QT MYSQL Module does not build
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: paul at pauljones.id.au
CC: buildroot at uclibc.org
Estimated Hours: 0.0

This is the output I get when trying to build QT for ARM with the mysql module enabled.

InterBase auto-detection... ()
gmake[1]: Entering directory `/media/dev/buildroot-arm/output/build/qt-everywhere-opensource-src-4.6.2/config.tests/unix/ibase' compiling ibase.cpp
ibase.cpp:42:19: error: ibase.h: No such file or directory
gmake[1]: *** [ibase.o] Error 1
gmake[1]: Leaving directory `/media/dev/buildroot-arm/output/build/qt-everywhere-opensource-src-4.6.2/config.tests/unix/ibase' InterBase disabled.
MySQL (thread-safe) auto-detection... ()
gmake[1]: Entering directory `/media/dev/buildroot-arm/output/build/qt-everywhere-opensource-src-4.6.2/config.tests/unix/mysql_r' compiling ../mysql/mysql.cpp
linking mysql_r
/usr/lib64/mysql/libmysqlclient_r.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
gmake[1]: *** [mysql_r] Error 1
gmake[1]: Leaving directory `/media/dev/buildroot-arm/output/build/qt-everywhere-opensource-src-4.6.2/config.tests/unix/mysql_r' MySQL (thread-safe) disabled.
MySQL (thread-unsafe) auto-detection... ()
gmake[1]: Entering directory `/media/dev/buildroot-arm/output/build/qt-everywhere-opensource-src-4.6.2/config.tests/unix/mysql' compiling mysql.cpp
linking mysql
/usr/lib64/mysql/libmysqlclient.so: file not recognized: File format not
recognized
collect2: ld returned 1 exit status
gmake[1]: *** [mysql] Error 1
gmake[1]: Leaving directory `/media/dev/buildroot-arm/output/build/qt-everywhere-opensource-src-4.6.2/config.tests/unix/mysql' MySQL (thread-unsafe) disabled.
MySQL support cannot be enabled due to functionality tests!
Turn on verbose messaging (-v) to ./configure to see the final report.
If you believe this message is in error you may use the continue
switch (-continue) to ./configure to continue.
make: *** [/media/dev/buildroot-arm/output/build/qt-everywhere-opensource-src-4.6.2/.configured] Error 101

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 2371] QT MYSQL Module does not build

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2371

--- Comment #3 from Thomas Petazzoni <[email protected]> --- Ok, strange, when MySQL is enabled we give Qt a set of custom CFLAGS/LDFLAGS so it shouldn't be looking at the host versions.

What distro are you using ? Which MySQL-related packages are installed on your host ? (here on my Ubuntu system, the libmysqlclient.so file is not in the same directory as you).

Can you turn on the -v switch for Qt configure step ? I.e, something like:

package/qt/qt.mk +0 -0
index baf6539..8ab70ac 100644
@@ -503,7 +503,7 @@ endif
                PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
               
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig:$(PKG_CONFIG_PATH)" \
                ./configure \
-               $(if $(VERBOSE),-verbose,-silent) \
+               -verbose \
                -force-pkg-config \
                -embedded $(BR2_PACKAGE_QT_EMB_PLATFORM) \
                $(QT_QCONFIG_COMMAND) \
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 2371] QT MYSQL Module does not build

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2371

--- Comment #4 from Paul Jones <[email protected]> --- The output from before was with the -v option enabled.

I just tried compiling on another near identical machine also running Gentoo and I didn't get the error, so I assume it must just be something amiss on this machine. I'll keep looking, everything else compiles fine.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 2371] QT MYSQL Module does not build

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2371

--- Comment #5 from Paul Jones <[email protected]> ---
I had the MYSQL server installed on the host, uninstalling that fixed the problem. I also had it installed on the other computer but it still worked. Seems like a path search order issue or something?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#6 lore raw

[Buildroot] [Bug 2371] QT MYSQL Module does not build

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2371

--- Comment #6 from Thomas Petazzoni <[email protected]> --- Ok. However, even if MySQL is installed on the host, we should be able to work properly. The Qt configure output is not verbose enough to understand what's going on, we'd need the full link command line. Could you have a look at Qt ./configure and config.tests/unix/compile.test to see how more information could be shown ?

For the record, on which distro (and version) and with which packages installed exactly the problem was happening ?

Thanks!

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#7 lore raw

[Buildroot] [Bug 2371] QT MYSQL Module does not build when MySQL installed on the host

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2371

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|QT MYSQL Module does not    |QT MYSQL Module does not
                   |build                       |build when MySQL installed
                   |                            |on the host
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#8 lore raw

[Buildroot] [Bug 2371] QT MYSQL Module does not build when MySQL installed on the host

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2371

--- Comment #7 from Thomas Petazzoni <[email protected]> --- Paul, could you provide some details about which distro, version and install set of packages was causing problems ? I'd like to reproduce the problem here. Thanks!

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#9 lore raw

[Buildroot] [Bug 2371] QT MYSQL Module does not build when MySQL installed on the host

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2371

--- Comment #8 from Paul Jones <[email protected]> --- Sorry for the delay.

Distro is Gentoo on x86_64 with mysql server + client installed. Buildroot is latest git, using both internal or external crosstool-ng uClibc toolchain (one at a time though...)
Problem occurs with QTe version 4.6.2 and 4.6.3

This is the output from config.tests/mysql

peejay at desktop /media/dev/buildroot-arm/output/build/qt-everywhere-opensource-src-4.6.3/config.tests/unix/mysql

$ make -n
echo compiling mysql.cpp &&
/media/dev/buildroot-arm/output/staging/usr/bin/arm-unknown-linux-uclibcgnueabi-g++
--sysroot=/media/dev/buildroot-arm/output/staging -c -pipe -O2 -mtune=arm920t
-march=armv4t -mabi=aapcs-linux -msoft-float -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-I/media/dev/buildroot-arm/output/staging/usr/include
-I/media/dev/buildroot-arm/output/staging/include -O2 -Wall -W 
-I../../../mkspecs/qws/linux-arm-g++ -I. -I/usr/include/mysql
-I/media/dev/buildroot-arm/output/staging/usr/include/mysql -o mysql.o
mysql.cpp
echo linking mysql &&
/media/dev/buildroot-arm/output/staging/usr/bin/arm-unknown-linux-uclibcgnueabi-g++
--sysroot=/media/dev/buildroot-arm/output/staging
-L/media/dev/buildroot-arm/output/staging/lib
-L/media/dev/buildroot-arm/output/staging/usr/lib -Wl,-O1 -o mysql mysql.o    
-L/usr/lib64/mysql -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto
-L/media/dev/buildroot-arm/output/staging/usr/lib/mysql -lmysqlclient 
peejay at desktop
/media/dev/buildroot-arm/output/build/qt-everywhere-opensource-src-4.6.3/config.tests/unix/mysql
$ make
compiling mysql.cpp
linking mysql
/usr/lib64/mysql/libmysqlclient.so: file not recognized: File format not
recognized
collect2: ld returned 1 exit status
make: *** [mysql] Error 1
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#10 lore raw

[Buildroot] [Bug 2371] QT MYSQL Module does not build when MySQL installed on the host

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2371

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at buildroot.uclibc |thomas.petazzoni at free-elect
|.org |rons.com

--- Comment #9 from Thomas Petazzoni <[email protected]> --- Fix sent to the Buildroot list.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#11 lore raw

[Buildroot] [Bug 2371] QT MYSQL Module does not build when MySQL installed on the host

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=2371

Peter Korsgaard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #10 from Peter Korsgaard <[email protected]> --- Fixed by Thomas in git, thanks.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.