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.
Created attachment 88064 [details, diff] Fix compile errors with SQL-Support and GCC 4.1
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.
Will the 1.3 version work?
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
Someone try w/ 1.3.0-r1?
*** Bug 145876 has been marked as a duplicate of this bug. ***
(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.
Reopen to dupe.
*** This bug has been marked as a duplicate of 146538 ***