Bug 118074 - GAMMU 1.02.0 fails to build - problems with mysql in smsd/s_mysql.o
|
Bug#:
118074
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: mobile-phone@gentoo.org
|
Reported By: riklaunim@gmail.com
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: GAMMU 1.02.0 fails to build - problems with mysql in smsd/s_mysql.o
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2006-01-06 11:16 0000
|
GAMMU fails to build against MySQL 5.0.17. Also, even when -mysql is in use
flags GAMMU wants to use MySQL
###################################
app-mobilephone/gammu-1.02.0 USE="bluetooth irda -mysql nls ssl"
###################################
G A M M U (GNU All Mobiles Management Utilities)
(c) 2002 - 2005 by Marcin Wiacek (www.mwiacek.com) and others
Version 1.02.00
Directories
-----------
Prefix - /usr
Executable prefix - ${prefix}
Man pages - /usr/share/man/man1
Shared .so library - ${exec_prefix}/lib
Docs and examples - /usr/share/doc/gammu
Localisation files - /usr/share/gammu
Include files - ${prefix}/include/gammu
Binaries - ${exec_prefix}/bin
RPM making directory - /usr/src/RPM
Temporary directory - /tmp
Bluez library path - /usr/lib
General options
---------------
Debug - no
CB messages - yes
Backup functions - yes
Searching phones (requires pthread) - yes
MySQL SMS plugin (requires mysql) - yes
Bluetooth stack - Bluez
Search for RF channel during each connection - yes
Phone protocols
---------------
AT - yes
Alcatel - yes
Nokia MBUS2 - yes
Nokia FBUS2 - yes
Nokia FBUS2 for DLR3 cable - yes
Nokia FBUS2 for PL2303 based USB cable - yes
Nokia FBUS2 for Bluetooth legacy device - yes
Nokia FBUS2 for direct infrared device - yes
Nokia PHONET for DKU2 cable - yes
Nokia PHONET FBUS for Bluetooth legacy device - yes
Phone protocols with infrared stack
-----------------------------------
AT commands - yes
Nokia PHONET FBUS - yes
OBEX - yes
Phone protocols with Bluetooth stack
------------------------------------------
AT commands - yes
Nokia FBUS2 - yes
Nokia PHONET FBUS - yes
OBEX - yes
Phone modules
-------------
Alcatel (OT 501, 701, 715, 535, 735, other) - yes
AT (Siemens, Alcatel, Nokia, WaveCom, other) - yes
Nokia 3320 - yes
Nokia 650 - yes
Nokia 3210/33xx/3410/51xx/5210/5510/61xx/82xx - yes
Nokia 35xx/5100/6100/63xx/65xx/6610/72x0/83xx - yes
Use always 6210 frames for calendar - yes
Nokia 62xx/71xx - yes
Incoming call/SMS info - yes
Nokia 92xx - yes
Incoming call/SMS info - yes
Nokia 3650 - yes
OBEX (Nokia, SonyEricsson, other) - yes
#########################################
Making gammu/sniff.c
Making gammu/gammu.c
Linking gammu
>>> Source compiled.
>>> Test phase [not enabled]: app-mobilephone/gammu-1.02.0
>>> Install gammu-1.02.0 into /var/tmp/portage/gammu-1.02.0/image/ category app-mobilephone
Uninstalling Gammu
Linking libGammu.so.0.0
Linking libGammu.a
Linking gammu-shared
./gammu/smsd/s_mysql.o: In function `SMSDMySQL_Init':
s_mysql.c:(.text+0x22): undefined reference to `mysql_init'
s_mysql.c:(.text+0x3d): undefined reference to `mysql_real_connect'
s_mysql.c:(.text+0x4a): undefined reference to `mysql_error'
s_mysql.c:(.text+0x93): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0xa0): undefined reference to `mysql_error'
s_mysql.c:(.text+0xba): undefined reference to `mysql_store_result'
s_mysql.c:(.text+0xc7): undefined reference to `mysql_free_result'
s_mysql.c:(.text+0xf9): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0x106): undefined reference to `mysql_store_result'
s_mysql.c:(.text+0x113): undefined reference to `mysql_free_result'
s_mysql.c:(.text+0x145): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0x152): undefined reference to `mysql_store_result'
s_mysql.c:(.text+0x15f): undefined reference to `mysql_error'
s_mysql.c:(.text+0x173): undefined reference to `mysql_free_result'
s_mysql.c:(.text+0x1a5): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0x1b2): undefined reference to `mysql_store_result'
s_mysql.c:(.text+0x1bf): undefined reference to `mysql_error'
s_mysql.c:(.text+0x1d3): undefined reference to `mysql_free_result'
s_mysql.c:(.text+0x205): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0x223): undefined reference to `mysql_store_result'
s_mysql.c:(.text+0x235): undefined reference to `mysql_error'
s_mysql.c:(.text+0x249): undefined reference to `mysql_fetch_row'
s_mysql.c:(.text+0x256): undefined reference to `mysql_free_result'
s_mysql.c:(.text+0x261): undefined reference to `mysql_error'
s_mysql.c:(.text+0x288): undefined reference to `mysql_free_result'
s_mysql.c:(.text+0x2b3): undefined reference to `mysql_free_result'
s_mysql.c:(.text+0x2d8): undefined reference to `mysql_free_result'
./gammu/smsd/s_mysql.o: In function `SMSDMySQL_InitAfterConnect':
s_mysql.c:(.text+0x356): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0x368): undefined reference to `mysql_error'
s_mysql.c:(.text+0x376): undefined reference to `mysql_errno'
s_mysql.c:(.text+0x472): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0x489): undefined reference to `mysql_error'
s_mysql.c:(.text+0x497): undefined reference to `mysql_errno'
./gammu/smsd/s_mysql.o: In function `SMSDMySQL_SaveInboxSMS':
s_mysql.c:(.text+0x5d0): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0x5dd): undefined reference to `mysql_error'
s_mysql.c:(.text+0x5f7): undefined reference to `mysql_store_result'
s_mysql.c:(.text+0x60c): undefined reference to `mysql_error'
s_mysql.c:(.text+0x836): undefined reference to `mysql_fetch_row'
s_mysql.c:(.text+0xa67): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0xa74): undefined reference to `mysql_error'
s_mysql.c:(.text+0xa7d): undefined reference to `mysql_errno'
s_mysql.c:(.text+0xa96): undefined reference to `mysql_free_result'
s_mysql.c:(.text+0xe46): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0xe53): undefined reference to `mysql_error'
s_mysql.c:(.text+0xe5c): undefined reference to `mysql_errno'
./gammu/smsd/s_mysql.o: In function `SMSDMySQL_RefreshSendStatus':
s_mysql.c:(.text+0xefe): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0xf0b): undefined reference to `mysql_error'
s_mysql.c:(.text+0xf14): undefined reference to `mysql_errno'
s_mysql.c:(.text+0xf30): undefined reference to `mysql_affected_rows'
./gammu/smsd/s_mysql.o: In function `SMSDMySQL_FindOutboxSMS':
s_mysql.c:(.text+0xfa2): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0xfb3): undefined reference to `mysql_store_result'
s_mysql.c:(.text+0x1028): undefined reference to `mysql_fetch_row'
s_mysql.c:(.text+0x103e): undefined reference to `mysql_free_result'
s_mysql.c:(.text+0x104e): undefined reference to `mysql_error'
s_mysql.c:(.text+0x1072): undefined reference to `mysql_free_result'
s_mysql.c:(.text+0x1121): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0x1132): undefined reference to `mysql_store_result'
s_mysql.c:(.text+0x1147): undefined reference to `mysql_fetch_row'
s_mysql.c:(.text+0x14d7): undefined reference to `mysql_free_result'
./gammu/smsd/s_mysql.o: In function `SMSDMySQL_MoveSMS':
s_mysql.c:(.text+0x153e): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0x1578): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0x158a): undefined reference to `mysql_error'
s_mysql.c:(.text+0x1593): undefined reference to `mysql_errno'
./gammu/smsd/s_mysql.o: In function `SMSDMySQL_CreateOutboxSMS':
s_mysql.c:(.text+0x160f): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0x161c): undefined reference to `mysql_store_result'
s_mysql.c:(.text+0x1632): undefined reference to `mysql_fetch_row'
s_mysql.c:(.text+0x166a): undefined reference to `mysql_error'
s_mysql.c:(.text+0x1684): undefined reference to `mysql_error'
s_mysql.c:(.text+0x168d): undefined reference to `mysql_errno'
s_mysql.c:(.text+0x16ac): undefined reference to `mysql_free_result'
s_mysql.c:(.text+0x1c73): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0x1c84): undefined reference to `mysql_store_result'
s_mysql.c:(.text+0x1c99): undefined reference to `mysql_fetch_row'
s_mysql.c:(.text+0x1d09): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0x1d16): undefined reference to `mysql_errno'
s_mysql.c:(.text+0x1d38): undefined reference to `mysql_error'
s_mysql.c:(.text+0x1d41): undefined reference to `mysql_errno'
s_mysql.c:(.text+0x1d65): undefined reference to `mysql_free_result'
s_mysql.c:(.text+0x1d76): undefined reference to `mysql_free_result'
s_mysql.c:(.text+0x1de4): undefined reference to `mysql_real_query'
./gammu/smsd/s_mysql.o: In function `SMSDMySQL_AddSentSMSInfo':
s_mysql.c:(.text+0x22bb): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0x22cd): undefined reference to `mysql_error'
s_mysql.c:(.text+0x22d6): undefined reference to `mysql_errno'
./gammu/smsd/s_mysql.o: In function `SMSDMySQL_RefreshPhoneStatus':
s_mysql.c:(.text+0x2383): undefined reference to `mysql_real_query'
s_mysql.c:(.text+0x2395): undefined reference to `mysql_error'
s_mysql.c:(.text+0x239e): undefined reference to `mysql_errno'
collect2: ld returned 1 exit status
make: *** [gammu/gammu-shared] Error 1
##########################################################
Portage 2.1_pre2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3,
2.6.14-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.14-gentoo-r1 x86_64 unknown
Gentoo Base System version 1.12.0_pre12
dev-lang/python: 2.4.2
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1-r1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -Os -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl
ftp://gentoo.po.opole.pl"
LANG="pl_PL.utf8"
LC_ALL="pl_PL.utf8"
LDFLAGS="-Wl,-O1,--enable-new-dtags,--sort-common,--as-needed -Bdirect -s"
LINGUAS="pl"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa apm arts atm audiofile bcmath berkdb bitmap-fonts
bluetooth browserplugin bzip2 cdparanoia cdr cdrom crypt cups curl dbus dhcp
dvd dvdr dvdread eds emboss exif expat fam ffmpeg flac flash foomaticdb fortran
gd gdbm gif glut gmp gphoto2 gpm gstreamer hal idn imagemagick imlib imlib2
ipv6 irda jpeg kde kdeenablefinal kqemu lcms libg++ libwww mad mikmod mng motif
mp3 mpeg ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis opengl pam
pcmcia pcre pdflib pear perl png python qemu-fast qt quicktime rar readline
scanner sdl slang sms sockets softmmu spell ssl subversion svg symlink tcpd
theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales
utf8 vcd vorbis wifi win32codecs wmf xine xml2 xscreensaver xv zip zlib
elibc_glibc kernel_linux linguas_pl userland_GNU"
Unset: ASFLAGS, CTARGET, MAKEOPTS
[ebuild U ] app-mobilephone/gammu-1.04.0 [1.02.0] -bluetooth +irda +mysql
+nls +ssl
[ebuild R ] dev-db/mysql-5.0.18 +berkdb -big-tables -cluster -debug
-extraengine -max-idx-128 -minimal +perl (-selinux) +ssl -static +utf8
Portage 2.0.54 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r2,
2.6.14-susp
end2-r9 i686)
=================================================================
System uname: 2.6.14-suspend2-r9 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.0_pre12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disable
d]
ccache version 2.4 [enabled]
dev-lang/python: 2.4.2
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1-r1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X1
1/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/initng /etc/terminfo
/etc/env.d
"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distclean distlocks sandbox sfperm sfperms strict
us
erpriv usersandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ftp.
uni-erlangen.de/pub/mirrors/gentoo
http://ftp-stud.fht-esslingen.de/pub/Mirrors
/gentoo/ http://gentoo.ITDNet.net/gentoo"
LANG="pl_PL"
LC_ALL="pl_PL"
LDFLAGS="-s"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/nysander/gentoo_svn"
SYNC="rsync://ftp.belnet.be/gentoo-portage/"
USE="x86 X aalib acpi alsa apache2 audiofile avi berkdb bitmap-fonts bzip2
bzlib
cdb crypt cups curl dba dbase divx4linux dlz eds emboss encode esd exif expat
f
am foomaticdb fortran ftp gd gdbm gif gimpprint glut gmp gpm gstreamer gtk gtk2
iconv idn imagemagick imlib irda java jpeg lcms ldap libg++ libwww local mad
mha
sh mikmod mime mmx mmx2 mng motif mozsvg mp3 mpeg mpm-worker mysql ncurses nls
o
gg oggvorbis openal opengl openssh pam pcntl pcre pdflib perl php pic png posix
python qt quicktime readline sdl session simplexml slang sndfile soap sockets
sp
eex spell spl sqlite sse sse2 ssl svg svga tcltk tcpd threads tiff tokenizer
tru
etype truetype-fonts type1-fonts udev unicode usb utf8 vhosts vorbis wmf
xchatte
xt xine xml xml2 xmlrpc xpm xsl xv xvid zlib linguas_pl userland_GNU
kernel_linu
x elibc_glibc"
Unset: ASFLAGS, CTARGET
This worked for me fine. And i got now upgraded gammu/wammu
Unfortunately, there is no way of disabling mysql support through ./configure
options. If you have mysql installed, it wouldn't matter if you have -mysql in
your USE.
Please try to use gammu-1.04.0 and post here the results.
the new gammu-1.04 supports --disable-mysql option.
this change along with many others (for example ssl useflag isn't needed
anymore, nor the gammu depends in any way on openssl) force me to rewrite the
entire ebuild. the new version is gammu-1.04.0-r1.
@Pawel : please apply the devfunc-sock.patch to your current source code.
also, a double check of the ebuild's code couldn't hurt ;)
(In reply to comment #3)
> @Pawel : please apply the devfunc-sock.patch to your current source code.
> also, a double check of the ebuild's code couldn't hurt ;)
>
I don't understand for what should i do so?
I stated before that actual version of gammu compiled without any error and
works ok now. Configuration was posted before.
Right now, gammu compiles ok, but I can't get python-gammu 0.9 to compile.
Gammu is installed and works. pkg-config is installed and outputs a long list
of applications, so I assume it works.
Here's the output.
notebook-igor gammu # emerge -av python-gammu
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] dev-python/python-gammu-0.9 USE="-doc" 0 kB
Total size of downloads: 0 kB
Do you want me to merge these packages? [Yes/No] y
>>> emerge (1 of 1) dev-python/python-gammu-0.9 to /
>>> checksums files ;-) python-gammu-0.7.ebuild
>>> checksums files ;-) python-gammu-0.9.ebuild
>>> checksums files ;-) python-gammu-0.8.ebuild
>>> checksums files ;-) files/digest-python-gammu-0.7
>>> checksums files ;-) files/digest-python-gammu-0.8
>>> checksums files ;-) files/digest-python-gammu-0.9
>>> checksums src_uri ;-) python-gammu-0.9.tar.bz2
>>> Unpacking source...
>>> Unpacking python-gammu-0.9.tar.bz2 to /var/tmp/portage/python-gammu-0.9/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/python-gammu-0.9/work/python-gammu-0.9 ...
ERROR: Could not find Gammu
Trying to search in prefix /usr/local
ERROR: Could not find Gammu
You need installed gammu as shared library and enable pkg-config to find it.
This is done by invoking make installshared in gammu sources.
!!! ERROR: dev-python/python-gammu-0.9 failed.
!!! Function distutils_src_compile, Line 35, Exitcode 1
!!! compilation failed
!!! If you need support, post the topmost build error, NOT this status message.
I've fixed the missing shared library problem in -r2.
@Pawel: sorry, I've thought you are one of the gammu's authors.