Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133403 - net-ftp/proftpd-1.2.10-r7 fails with gcc 4.1
Summary: net-ftp/proftpd-1.2.10-r7 fails with gcc 4.1
Status: RESOLVED DUPLICATE of bug 146538
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gustavo Felisberto (RETIRED)
URL:
Whiteboard:
Keywords:
: 145876 (view as bug list)
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-05-15 11:22 UTC by Patrizio Bassi
Modified: 2006-09-06 10:07 UTC (History)
3 users (show)

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


Attachments
Fix compile errors with SQL-Support and GCC 4.1 (proftpd-fixsql.patch,714 bytes, patch)
2006-05-31 23:18 UTC, Manuel Bernhardt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrizio Bassi 2006-05-15 11:22:56 UTC
i686-pc-linux-gnu-gcc  -DLINUX  -I.. -I../include -I/usr/include/mysql -O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -Wall -c mod_quotatab_sql.c
i686-pc-linux-gnu-gcc  -DLINUX  -I.. -I../include -I/usr/include/mysql -O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -Wall -c mod_quotatab_file.c
mod_quotatab_sql.c: In function ‘sqltab_open’:
mod_quotatab_sql.c:688: error: invalid lvalue in assignment
make[1]: *** [mod_quotatab_sql.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/mnt/Dati/Gentoo/tmp/portage/proftpd-1.2.10-r7/work/proftpd-1.2.10/modules'
make: *** [modules] Error 2

!!! ERROR: net-ftp/proftpd-1.2.10-r7 failed.
Call stack:
  ebuild.sh, line 1527:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  proftpd-1.2.10-r7.ebuild, line 131:   Called die

!!! compile problem
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Manuel Bernhardt 2006-05-31 23:18:46 UTC
Created attachment 88064 [details, diff]
Fix compile errors with SQL-Support and GCC 4.1
Comment 2 Manuel Bernhardt 2006-05-31 23:19:22 UTC
Comment on attachment 88064 [details, diff]
Fix compile errors with SQL-Support and GCC 4.1

I've the same error after upgrade to gcc 4.1 and solved it with the following attached patch. Part 1 of the patch can be found on http://forums.proftpd.org/phpBB2/viewtopic.php?t=1113&, Part 2 on http://groups.google.de/group/linux.debian.bugs.dist/browse_thread/thread/100059ae69fd14f8/bbde1a89f0086d75?lnk=st&q=mod_quotatab_sql.c%3A688%3A+error%3A+invalid+lvalue+in+assignment&rnum=1&hl=de#bbde1a89f0086d75.
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2006-07-26 05:21:16 UTC
Will the 1.3 version work?
Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2006-07-31 04:34:26 UTC
No problems here with GCC 4.1 and MySQL:
[ebuild   R   ] net-ftp/proftpd-1.2.10-r7  USE="ipv6 ldap mysql ncurses pam ssl tcpd -authfile -hardened -noauthunix -postgres -sendfile -shaper -softquota -xinetd"

Portage 2.1-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r4, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.15
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  0.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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d a52 alsa artworkextra asf audiofile avi bash-completion beagle berkdb bidi bitmap-fonts bootsplash branding bzip2 cairo ccache cdda cddb cdparanoia cdr cli cracklib crypt css cups curl custom-cflags dbus dga directfb divx4linux dlloader dri dts dvd dvdr dvdread dvi eds emacs emboss encode esd evo exif fam fat fbcon fdftk ffmpeg firefox foomaticdb fortran ftp gb gcj gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml hal howl icq idn imagemagick imap imlib ipv6 isdnlog java javascript jikes jpeg jpeg2k ldap leim libg++ libwww lm_sensors mad maildir matroska mbox mikmod mime mmx mmxext mng mono motif mp3 mpeg mpeg2 mule nautilus ncurses nforce2 nls nocardbus nosendmail nowebdav nptl nptlonly nsplugin nvidia objc objc++ objc-gc offensive ogg opengl pam pcre pdf pdflib perl plotutils pmu png ppds pppd preview-latex print python qt qt3 qt4 quicktime readline reflection reiserfs samba sdk session slang spell spl sse ssl svg svga t1lib tcltk tcpd theora thunderbird tiff truetype truetype-fonts type1-fonts udev usb vcd videos vorbis win32codecs wmf wxwindows xine xml xorg xosd xv xvid zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_de userland_GNU video_cards_radeon video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-08-01 03:10:48 UTC
Someone try w/ 1.3.0-r1?
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-09-01 10:38:26 UTC
*** Bug 145876 has been marked as a duplicate of this bug. ***
Comment 7 R!tman 2006-09-06 09:46:59 UTC
(In reply to comment #5)
> Someone try w/ 1.3.0-r1?

1.2.10-r7 fails for me too, but 1.3.0-r1 works with gcc-4.1.1. 

Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-09-06 10:06:04 UTC
Reopen to dupe.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-09-06 10:07:03 UTC

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