Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190316 - net-ftp/proftpd-1.3.1_rc3 fails to compile with USE=mysql
Summary: net-ftp/proftpd-1.3.1_rc3 fails to compile with USE=mysql
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Luca Longinotti (RETIRED)
URL:
Whiteboard:
Keywords:
: 190417 192020 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-26 16:41 UTC by Heiko Baums
Modified: 2007-09-23 10:12 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild that includes the patch from upstream (proftpd-1.3.1_rc3.ebuild,5.99 KB, text/plain)
2007-08-31 07:56 UTC, Torsten Kurbad
Details
The actual patch (proftpd-1.3.1_rc3-mod_mysql.patch,690 bytes, patch)
2007-08-31 07:56 UTC, Torsten Kurbad
Details | Diff
Build log from failed emerge after patch from comment #6 (build.log,31.10 KB, text/plain)
2007-09-05 11:12 UTC, Willard Dawson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Baums 2007-08-26 16:41:07 UTC
net-ftp/proftpd-1.3.1_rc3 fails to compile at mod_sql_mysql.c:

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include -I/usr/include/mysql -march=athlon-xp -O3 -pipe -fomit-frame-pointer -Wall -c mod_sql_mysql.c
mod_sql_mysql.c: In function cmd_defineconnection:
mod_sql_mysql.c:598: error: missing terminating " character
make[1]: *** [mod_sql_mysql.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-ftp/proftpd-1.3.1_rc3/work/proftpd-1.3.1rc3/modules'
make: *** [modules] Error 2
 *
 * ERROR: net-ftp/proftpd-1.3.1_rc3 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   proftpd-1.3.1_rc3.ebuild, line 166:   Called die
 *
 * emake failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-ftp/proftpd-1.3.1_rc3/temp/build.log'.
 *


emerge --info:

Portage 2.1.3.7 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r4 i686)
=================================================================
System uname: 2.6.22-gentoo-r4 i686 AMD Athlon(tm) XP 1600+
Gentoo Base System release 1.12.10
Timestamp of tree: Sun, 26 Aug 2007 13:30:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.4.0-r1
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/applications/kde /usr/kde/3.5/share/config /usr/kde/3.5/share/services/searchproviders /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/applications /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ http://ftp.heanet.ie/pub/gentoo/"
LANG="de_DE.UTF-8"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/private"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib accessibility acl alsa amr amrnb amrwb apache2 apm arts asf audiofile authfile avi berkdb bitmap-fonts bluetooth bzip2 cairo caps cdda cddb cdparanoia cdr chardet clamav cli cracklib crypt ctype cups curl d dbus dga directfb divx dri dv dvb dvd dvdnav dvdr dvdread eds emboss emerald encode expat extrafilters fam fame fbcon ffmpeg firefox flac fltk foomaticdb fortran ftp gcj gd gdbm gif gimp glib glitz gmedia gmp gnutls gpm graphviz gs gstreamer gtk gtk2 gtkhtml hddtemp iconv idn ilbc imagemagick imlib inkjar ipv6 irmc isdnlog jack jack-tmpfs jackmidi jce jpeg kde kdepim kerberos ladspa lame lcms ldap libnotify libsamplerate lirc live lm_sensors logrotate lzo mad mbox mbrola md5sum midi mikmod mjpeg mmx mmxext mng modplug motif mozilla mp2 mp3 mp4 mpeg mplayer mudflap musepack musicbrainz mysql mysqli nas ncurses network nls noamazon nptl nptlonly nsplugin objc objc++ objc-gc offensive ofx ogg opengl openmp osc oss pam pcre pdf perl php plugin png ppds pppd print python qt3 qt3support qt4 quicktime quotes rar readline real realmedia reflection reiserfs rtc rtsp scanner sdl session sndfile speex spell spl sse ssl svg tcl tcltk tcpd tetex themes theora threads threadsafe tidy tiff tk tokenizer tools truetype truetype-fonts type1-fonts unicode usb utempter v4l v4l2 vdr vidix visualization vlm vorbis win32codecs wma wmf wmp x264 x86 xcomposite xine xml xorg xpm xv xvid xvmc yv12 zip zlib" ALSA_CARDS="ice1712" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nvidia v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Patrizio Bassi 2007-08-26 19:04:01 UTC
same issue here in amd64 profile
Comment 2 Norberto Bensa 2007-08-27 14:04:43 UTC
Yes. It will bomb every arch since it's a typo in the source (a missing ")

Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-08-27 16:53:02 UTC
*** Bug 190417 has been marked as a duplicate of this bug. ***
Comment 4 Joakim 2007-08-29 14:30:33 UTC
This bug has appearently been fixed (patch) upstreams 3 weeks ago, 
http://bugs.proftpd.org/show_bug.cgi?id=2944

So it should be fairly easy to include the patch in the ebuild.
Comment 5 Torsten Kurbad 2007-08-31 07:56:17 UTC
Created attachment 129671 [details]
Ebuild that includes the patch from upstream

I created a fixed ebuild for my local overlay - enjoy!
Comment 6 Torsten Kurbad 2007-08-31 07:56:47 UTC
Created attachment 129672 [details, diff]
The actual patch
Comment 7 Willard Dawson 2007-09-05 11:11:28 UTC
I applied the patch in comment #6 in a portage overlay, but the build bombs.  Here is the relevant error:

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include -I/usr/include/mysql -march=i686 -O2 -pipe -ggdb -Wall -c mod_ldap.c
mod_ldap.c: In function 'pr_ldap_connect':
mod_ldap.c:248: warning: implicit declaration of function 'ldap_init'
mod_ldap.c:248: warning: assignment makes pointer from integer without a cast
mod_ldap.c: In function 'handle_ldap_check':
mod_ldap.c:1393: warning: pointer targets in passing argument 3 of 'EVP_DigestFinal' differ in signedness
mod_ldap.c:1397: warning: pointer targets in passing argument 1 of 'EVP_EncodeBlock' differ in signedness
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include -I/usr/include/mysql -march=i686 -O2 -pipe -ggdb -Wall -c mod_sql.c
mod_sql.c: In function 'check_auth_openssl':
mod_sql.c:672: warning: pointer targets in passing argument 3 of 'EVP_DigestFinal' differ in signedness
mod_sql.c:675: warning: pointer targets in passing argument 1 of 'EVP_EncodeBlock' differ in signedness
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include -I/usr/include/mysql -march=i686 -O2 -pipe -ggdb -Wall -c mod_sql_mysql.c
mod_sql_mysql.c:598:32: warning: missing terminating " character
mod_sql_mysql.c: In function 'cmd_defineconnection':
mod_sql_mysql.c:598: error: missing terminating " character
make[1]: *** [mod_sql_mysql.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-ftp/proftpd-1.3.1_rc3/work/proftpd-1.3.1rc3/modules'
make: *** [modules] Error 2
 *
 * ERROR: net-ftp/proftpd-1.3.1_rc3 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   proftpd-1.3.1_rc3.ebuild, line 166:   Called die
 *
 * emake failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-ftp/proftpd-1.3.1_rc3/temp/build.log'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 *

 * Messages for package net-ftp/proftpd-1.3.1_rc3:

 *
 * ERROR: net-ftp/proftpd-1.3.1_rc3 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   proftpd-1.3.1_rc3.ebuild, line 166:   Called die
 *
 * emake failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-ftp/proftpd-1.3.1_rc3/temp/build.log'.
 * This ebuild is from an overlay: '/usr/local/portage/'
Comment 8 Willard Dawson 2007-09-05 11:12:32 UTC
Created attachment 130074 [details]
Build log from failed emerge after patch from comment #6
Comment 9 Willard Dawson 2007-09-05 11:28:23 UTC
Sorry, please disregard comments #7-8. It seems I patched the wrong version... the patch works as expected in my local portage overlay.
Comment 10 Patrizio Bassi 2007-09-05 12:14:52 UTC
can we fix this issue please?
i mean, this is a release candidate and should not have gone in portage like this, but now it is, so, please apply the patch to portage as it's working

thanks
Comment 11 Ceiphas 2007-09-10 18:47:25 UTC
*** Bug 192020 has been marked as a duplicate of this bug. ***
Comment 12 Stefaan De Roeck (RETIRED) gentoo-dev 2007-09-23 10:06:21 UTC
The assignee for this bug is on "Military service from 02.07.2007 to 04.04.2008. I'll sometimes be around on saturday evenings CET".  

This is the most obvious patch I've ever seen, so it'd be silly for me not to fix this.  
Comment 13 Stefaan De Roeck (RETIRED) gentoo-dev 2007-09-23 10:12:23 UTC
Fixed in net-ftp/proftpd-1.3.1_rc3, no new revision necessary.