Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 22003

Summary: mp3kult-0.7 fails build with mysql-4.0.13 due to missing function declaration
Product: Gentoo Linux Reporter: J.C. Wren <jcwren>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED DUPLICATE    
Severity: normal CC: mysql-bugs
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description J.C. Wren 2003-05-31 10:51:28 UTC
mp3kult build fails because mysql_connect() is not defined.  The prototype
actually appears in the /usr/include/mysql/mysql.h file, but it's #ifdef'ed by
"USE_OLD_FUNCTIONS".  I didn't explore this much further, but defining
USE_OLD_FUNCTIONS in mp3kult/mydb.cpp (as a hack test) did not solve the
problem.  There are also a lot of deprecated header warnings thrown by this compile.

Reproducible: Always
Steps to Reproduce:
emerge mp3kult

Actual Results:  
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated
header. Please consider using one of the 32 headers found in section 17.4.1.2 of
the C++ standard. Examples include substituting the <X> header for the <X.h>
header for C++ includes, or <sstream> instead of the deprecated header
<strstream.h>. To disable this warning use -Wno-deprecated.
mydb.cpp: In member function `bool MyDb::dbConnect(const char*, const char*,
   const char*, const char*)':
mydb.cpp:59: `mysql_connect' undeclared (first use this function)
mydb.cpp:59: (Each undeclared identifier is reported only once for each
   function it appears in.)
make[3]: *** [mydb.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/mp3kult-0.7/work/mp3kult-0.7/mp3kult'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/mp3kult-0.7/work/mp3kult-0.7/mp3kult'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mp3kult-0.7/work/mp3kult-0.7'
make: *** [all] Error 2

!!! ERROR: media-sound/mp3kult-0.7 failed.
!!! Function src_compile, Line 23, Exitcode 2
!!! (no error message)



Expected Results:  
A correct build

Portage 2.0.48 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.5.69-i2c_mod i686 AMD Athlon(tm) processor
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg gnome libg++ mikmod mmx
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm
berkdb slang readline arts tetex bonobo svga tcltk java guile mysql X sdl gpm
tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl mozilla"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O3 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 J.C. Wren 2003-05-31 10:54:08 UTC
This should go in front of 'Actual Results' section (missed a little when cutting and pasting)

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.1/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -O2 -O2 -mcpu=i686 -pipe -fno-exceptions -fno-check-new  -c -o mp3info.o `test -f mp3info.cpp || echo './'`mp3info.cpp
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/backward/iostream.h:31,
                 from mp3info.cpp:20:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/backward/iostream.h:31,
                 from mydb.cpp:21:
Comment 2 J.C. Wren 2003-05-31 23:51:41 UTC
Hrm.  Well, seeing as I can't compile it because of the mislocated header file, I was going on the error message that claimed it required modules.
Comment 3 J.C. Wren 2003-06-01 09:17:48 UTC
Please disregard my last comment (2003-05-31 23:51 EST ), it is in regard to a different bug.
Comment 4 J. Ellis (RETIRED) gentoo-dev 2003-06-21 00:35:06 UTC
It compiles with:

env "CXXFLAGS="-DUSE_OLD_FUNCTIONS=1" emerge mp3kult-0.7.ebuild

I'll commit something to fix this shortly.
Comment 5 J. Ellis (RETIRED) gentoo-dev 2003-06-21 04:30:14 UTC
Commited -r1. Let me know if there are further issues.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2007-08-04 07:11:07 UTC
Where did the fix go?
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2007-08-04 07:11:40 UTC

*** This bug has been marked as a duplicate of bug 131111 ***