Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503580 - =net-fs/samba-4*: ../libcli/smbreadline/smbreadline.c:144:20: error: ‘Function’ undeclared (first use in this function)
Summary: =net-fs/samba-4*: ../libcli/smbreadline/smbreadline.c:144:20: error: ‘Functio...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: readline-6.3
  Show dependency tree
 
Reported: 2014-03-06 08:03 UTC by Cănărău Constantin
Modified: 2014-03-06 10:07 UTC (History)
1 user (show)

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


Attachments
Full build.log (build.log.tar.bz2,60.95 KB, application/x-bzip2)
2014-03-06 08:03 UTC, Cănărău Constantin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cănărău Constantin 2014-03-06 08:03:07 UTC
After update to dev-lang/perl-5.18.2 and running perl-cleaner --all net-fs/samba-4.1.5 (and 4.1.4) failed to compile

Reproducible: Always

Actual Results:  
[1946/3667] Compiling source4/lib/registry/tests/generic.c
09:54:18 runner x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -w -fPIC -fstack-protector -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DSTATIC_torture_registry_MODULES=NULL -DSTATIC_torture_registry_MODULES_PROTO= -MD -I/usr/include/et -Idefault/source4/lib/registry -I../source4/lib/registry -Idefault/include/public -I../include/public -Idefault/source4 -I../source4 -Idefault/lib -I../lib -Idefault/source4/lib -I../source4/lib -Idefault/source4/include -I../source4/include -Idefault/include -I../include -Idefault/lib/replace -I../lib/replace -Idefault -I.. -Idefault/source4/heimdal/lib/roken -I../source4/heimdal/lib/roken -Idefault/source4/heimdal/include -I../source4/heimdal/include -Idefault/source4/heimdal_build -I../source4/heimdal_build -Idefault/librpc -I../librpc -Idefault/source4/heimdal/lib/wind -I../source4/heimdal/lib/wind -Idefault/source4/heimdal/lib/hcrypto/libtommath -I../source4/heimdal/lib/hcrypto/libtommath -Idefault/source4/lib/tls -I../source4/lib/tls -Idefault/libds/common -I../libds/common -Idefault/libcli/ldap -I../libcli/ldap -Idefault/source4/libcli/smb2 -I../source4/libcli/smb2 -Idefault/lib/ccan -I../lib/ccan -Idefault/lib/param -I../lib/param -Idefault/source4/heimdal/lib/asn1 -I../source4/heimdal/lib/asn1 -Idefault/source4/heimdal/lib/hx509 -I../source4/heimdal/lib/hx509 -Idefault/source4/dsdb -I../source4/dsdb -Idefault/source4/heimdal/lib/hcrypto -I../source4/heimdal/lib/hcrypto -Idefault/source4/heimdal/lib -I../source4/heimdal/lib -Idefault/libcli/cldap -I../libcli/cldap -Idefault/source3 -I../source3 -Idefault/source3/include -I../source3/include -Idefault/source3/lib -I../source3/lib -Idefault/lib/tdb_compat -I../lib/tdb_compat -Idefault/source4/heimdal/lib/com_err -I../source4/heimdal/lib/com_err -Idefault/source4/heimdal/lib/krb5 -I../source4/heimdal/lib/krb5 -Idefault/source4/heimdal/lib/gssapi -I../source4/heimdal/lib/gssapi -Idefault/bin/default/source4/heimdal/lib/asn1 -Idefault/source4/heimdal/lib/asn1 -Idefault/source3/librpc -I../source3/librpc -Idefault/lib/addns -I../lib/addns -Idefault/lib/torture -I../lib/torture -Idefault/auth/ntlmssp -I../auth/ntlmssp -Idefault/lib/crypto -I../lib/crypto -Idefault/libcli/auth -I../libcli/auth -Idefault/auth/gensec -I../auth/gensec -Idefault/auth/credentials -I../auth/credentials -Idefault/lib/krb5_wrap -I../lib/krb5_wrap -Idefault/lib/ntdb -I../lib/ntdb -Idefault/source4/heimdal/base -I../source4/heimdal/base -Idefault/libcli/nbt -I../libcli/nbt -Idefault/libcli/dns -I../libcli/dns -Idefault/source4/lib/socket -I../source4/lib/socket -Idefault/libcli/registry -I../libcli/registry -Idefault/auth -I../auth -Idefault/source4/auth/kerberos -I../source4/auth/kerberos -Idefault/libcli/smb -I../libcli/smb -Idefault/libcli/util -I../libcli/util -Idefault/libcli/lsarpc -I../libcli/lsarpc -Idefault/source4/libcli -I../source4/libcli -Idefault/source4/libcli/ldap -I../source4/libcli/ldap -Idefault/lib/socket -I../lib/socket -Idefault/lib/util/charset -I../lib/util/charset -Idefault/source4/lib/events -I../source4/lib/events -Idefault/source4/heimdal/lib/gssapi/gssapi -I../source4/heimdal/lib/gssapi/gssapi -Idefault/source4/heimdal/lib/gssapi/spnego -I../source4/heimdal/lib/gssapi/spnego -Idefault/source4/heimdal/lib/gssapi/krb5 -I../source4/heimdal/lib/gssapi/krb5 -Idefault/source4/heimdal/lib/gssapi/mech -I../source4/heimdal/lib/gssapi/mech -Idefault/lib/async_req -I../lib/async_req -Idefault/source4/auth/gensec -I../source4/auth/gensec -Idefault/dynconfig -I../dynconfig -Idefault/lib/ldb-samba -I../lib/ldb-samba -Idefault/source4/param -I../source4/param -Idefault/auth/kerberos -I../auth/kerberos -Idefault/source4/librpc -I../source4/librpc -Idefault/source4/lib/stream -I../source4/lib/stream -Idefault/lib/dbwrap -I../lib/dbwrap -Idefault/lib/tdr -I../lib/tdr -Idefault/lib/compression -I../lib/compression -Idefault/libcli/netlogon -I../libcli/netlogon -Idefault/libcli/security -I../libcli/security -Idefault/source4/auth -I../source4/auth -Idefault/libcli/drsuapi -I../libcli/drsuapi -Idefault/lib/tsocket -I../lib/tsocket -I/usr/local/include -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../source4/lib/registry/tests/generic.c -c -o default/source4/lib/registry/tests/generic_22.o
../libcli/smbreadline/smbreadline.c: In function ‘smb_readline’:
../libcli/smbreadline/smbreadline.c:144:20: error: ‘Function’ undeclared (first use in this function)
   rl_event_hook = (Function *)callback;
                    ^
../libcli/smbreadline/smbreadline.c:144:20: note: each undeclared identifier is reported only once for each function it appears in
../libcli/smbreadline/smbreadline.c:144:30: error: expected expression before ‘)’ token
   rl_event_hook = (Function *)callback;
                              ^
Waf: Leaving directory `/var/tmp/portage/net-fs/samba-4.1.5/work/samba-4.1.5/bin'
Build failed:  -> task failed (err #1): 
	{task: cc smbreadline.c -> smbreadline_1.o}



Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.2, glibc-2.19, 3.13.5-aufs-costel x86_64)
=================================================================
System uname: Linux-3.13.5-aufs-costel-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.2
KiB Mem:    16427944 total,  11212848 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Thu, 06 Mar 2014 06:45:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.4
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo added
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -w"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -w"
DISTDIR="/mnt/linux/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=11 --keep-going --with-bdeps=y --complete-graph --quiet-build=n --autounmask-write"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy cgroup collision-protect config-protect-if-modified distlocks fail-clean fixlafiles ipc-sandbox merge-sync news nodoc noinfo parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-filter unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.romnet.org/gentoo/ http://mirrors.xservers.ro/gentoo/ ftp://ftp.romnet.org/gentoo/ http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://distfiles.gentoo.org/"
LANG="ro_RO.UTF-8"
LC_ALL="ro_RO.UTF-8"
LDFLAGS="-Wl,-O1,--sort-common,--hash-style=gnu,--as-needed,-z,now"
MAKEOPTS="-j9 --load-average=11"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--human-readable --delete-before --progress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/added"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac gdbm gif gmp gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 iconv introspection ipv6 ithreads jpeg lcms ldap libnotify libsecret logrotate mad mmx mng modules mp3 mp4 mpeg multilib mysql nautilus ncurses networkmanager nls nptl ogg opengl openmp opus pam pango pch pcre pdf png policykit postgres ppds pulseaudio qt3support qt4 readline sdl session socialweb spell sse sse2 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb vdpau vhosts vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="virtuoso hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ro en" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gunzip gzip limit_conn limit_req map memcached naxsi proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi addition cache_purge dav fancyindex flv geoip gzip_static headers_more image_filter mp4 perl push random_index realip secure_link spdy stub_status sub upload_progress xslt" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="nv nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC, USE_PYTHON
Comment 1 Cănărău Constantin 2014-03-06 08:03:54 UTC
Created attachment 371838 [details]
Full build.log
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-03-06 08:33:19 UTC
In case you have =sys-libs/readline-6.3 installed, please downgrade to =sys-libs/readline-6.2_p5-r1, try compiling samba again and report your results here...
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-03-06 09:35:32 UTC
+*samba-4.1.5-r1 (06 Mar 2014)
+*samba-4.0.15-r1 (06 Mar 2014)
+
+  06 Mar 2014; Lars Wendler <polynomial-c@gentoo.org> -samba-4.0.14.ebuild,
+  -samba-4.0.15.ebuild, +samba-4.0.15-r1.ebuild, -samba-4.1.4.ebuild,
+  -samba-4.1.5.ebuild, +samba-4.1.5-r1.ebuild,
+  +files/samba-4.x-readline63_typedef_fix.patch:
+  Fixed compilation with sys-libs/readline-6.3 (bug #503580). Removed broken
+  versions.
+

Was a readline problem. Fixed versions are in the tree now.
Comment 4 Cănărău Constantin 2014-03-06 10:07:08 UTC
samba compile was succesful with =sys-libs/readline-6.2_p5-r1.
I will wait few hours to let changes to propagate to mirrors.

Thank you!