Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

net-fs/samba-4.11.11 fails to build

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
kos
n00b
n00b
Posts: 74
Joined: Wed May 28, 2003 2:16 pm
Location: Mountain View, CA

net-fs/samba-4.11.11 fails to build

  • Quote

Post by kos » Wed Sep 16, 2020 12:38 am

got to rebuild net-fs/samba-4.11.11 due to use flag changes. Emerge fails with this:

Code: Select all

[1757/2718] Compiling nsswitch/nsstest.c
12:51:38 runner ['x86_64-pc-linux-gnu-gcc', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-march=native', '-O3', '-fgraphite-identity', '-floop-nest-optimize', '-fdevirtualize-at-ltrans', '-fipa-pta', '-fno-semantic-interposition', '-fuse-linker-plugin', '-pipe', '-falign-functions=32', '-Wl,-O1', '-Wl,--as-needed', '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-DHAVE_CONFIG_H=1', '-fPIE', '-fPIC', '-D__STDC_WANT_LIB_EXT1__=1', '-D_REENTRANT', '-fstack-protector-strong', '-fstack-clash-protection', '-DSTATIC_nsstest_MODULES=NULL', '-DSTATIC_nsstest_MODULES_PROTO=extern void __nsstest_dummy_module_proto(void)', '-Insswitch', '-I../../nsswitch', '-Iinclude/public', '-I../../include/public', '-Isource4', '-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib', '-I../../source4/lib', '-Isource4/include', '-I../../source4/include', '-Iinclude', '-I../../include', '-Ilib/replace', '-I../../lib/replace', '-I.', '-I../..', '../../nsswitch/nsstest.c', '-c', '-o/var/tmp/portage/net-fs/samba-4.11.11/work/samba-4.11.11-abi_x86_64.amd64/bin/default/nsswitch/nsstest.c.4.o', '-I/usr/include/et']
../../nsswitch/nsstest.c:140:13: error: ‘nss_setpwent’ redeclared as different kind of symbol
  140 | static void nss_setpwent(void)
      |             ^~~~~~~~~~~~
In file included from ../../nsswitch/nsstest.h:53,
                 from ../../nsswitch/nsstest.c:22:
/usr/include/nss.h:186:25: note: previous declaration of ‘nss_setpwent’ was here
  186 | typedef enum nss_status nss_setpwent (int);
      |                         ^~~~~~~~~~~~
../../nsswitch/nsstest.c:155:13: error: ‘nss_endpwent’ redeclared as different kind of symbol
  155 | static void nss_endpwent(void)
      |             ^~~~~~~~~~~~
In file included from ../../nsswitch/nsstest.h:53,
                 from ../../nsswitch/nsstest.c:22:
/usr/include/nss.h:87:25: note: previous declaration of ‘nss_endpwent’ was here
   87 | typedef enum nss_status nss_endpwent (void);
      |                         ^~~~~~~~~~~~
../../nsswitch/nsstest.c:293:13: error: ‘nss_setgrent’ redeclared as different kind of symbol
  293 | static void nss_setgrent(void)
      |             ^~~~~~~~~~~~
In file included from ../../nsswitch/nsstest.h:53,
                 from ../../nsswitch/nsstest.c:22:
/usr/include/nss.h:181:25: note: previous declaration of ‘nss_setgrent’ was here
  181 | typedef enum nss_status nss_setgrent (int);
      |                         ^~~~~~~~~~~~
../../nsswitch/nsstest.c:308:13: error: ‘nss_endgrent’ redeclared as different kind of symbol
  308 | static void nss_endgrent(void)
      |             ^~~~~~~~~~~~
In file included from ../../nsswitch/nsstest.h:53,
                 from ../../nsswitch/nsstest.c:22:
/usr/include/nss.h:82:25: note: previous declaration of ‘nss_endgrent’ was here
   82 | typedef enum nss_status nss_endgrent (void);
      |                         ^~~~~~~~~~~~

Waf: Leaving directory `/var/tmp/portage/net-fs/samba-4.11.11/work/samba-4.11.11-abi_x86_64.amd64/bin/default'
Build failed
 -> task in 'nsstest.objlist' failed with exit status 1: 
        {task 140221071502672: c nsstest.c -> nsstest.c.4.o}

Probably an upstream bug, see https://bugzilla.samba.org/show_bug.cgi?id=14360

And btw bugzilla is down, can't report there.

Code: Select all

precision /etc/portage # emerge --info
Portage 3.0.4 (python 3.7.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.2.0, glibc-2.32-r1, 5.8.0-gentoo-r1-x86_64 x86_64)
=================================================================
System uname: Linux-5.8.0-gentoo-r1-x86_64-x86_64-Intel-R-_Core-TM-_i9-9980HK_CPU_@_2.40GHz-with-gentoo-2.7
KiB Mem:    65087964 total,  19435688 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 15 Sep 2020 03:45:01 +0000
Head commit of repository gentoo: cf0d8b5f5d46b4bca2f2f7f20fe908a84d7567bb
Timestamp of repository jorgicio: Sun, 13 Sep 2020 16:13:12 +0000
Head commit of repository jorgicio: 349d77f9944a4b703b08bd032bfdf459f96fc05f

Head commit of repository sakaki-tools: 5c041bf94dba45bf9375c1a8244b6ac9f73a3b5b

sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
ccache version 3.7.11 [disabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r1::gentoo, 3.6.11-r2::gentoo, 3.7.8-r2::gentoo, 3.8.5::gentoo
dev-util/ccache:          3.7.11::gentoo
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            8.4.0-r1::gentoo, 10.2.0-r1::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

jorgicio
    location: /var/db/repos/jorgicio
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/jorgicio.git
    masters: gentoo

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo

lto-overlay
    location: /var/lib/layman/lto-overlay
    masters: gentoo mv
    priority: 50

mv
    location: /var/lib/layman/mv
    masters: gentoo
    priority: 50

sakaki-tools
    location: /usr/local/portage/sakaki-tools
    sync-type: git
    sync-uri: https://github.com/sakaki-/sakaki-tools.git
    masters: gentoo
    priority: 50

throttled
    location: /var/lib/layman/throttled
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=8 -fuse-linker-plugin -pipe -falign-functions=32"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=8 -fuse-linker-plugin -pipe -falign-functions=32"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=8 -fuse-linker-plugin -pipe -falign-functions=32"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=8 -fuse-linker-plugin -pipe -falign-functions=32"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.gossamerhost.com http://gentoo.mirrors.tds.net/gentoo http://gentoo.modulix.net/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru"
MAKEOPTS="-j8"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cli crypt cups dbus declarative device-mapper djvu dri dts dvd dvdr elogind emboss encode evdev exif ffmpeg flac fontconfig fortran gdbm gif git glamor gpm graphite gtk gtk2 gui iconv icu initramfs inotify ipv6 jpeg kde kdesu kipi kwallet lcms libglvnd libnotify libtirpc lm-sensors lspclient lto lvm mad matroska metalink mng mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl offensive ogg opengl openmp pam pango pcre pdf pgo phonon plasma png policykit postproc ppds pulseaudio python qml qt5 raw readline samba sdl seccomp semantic-desktop sftp spell split-usr ssh ssl sslv2 sslv3 startup-notification svg tcpd terminal tiff touchpad truetype udev udisks unicode upower usb vaapi vdpau vim-syntax vorbis vulkan widgets wifi wxwidgets x264 x265 xattr xcb xinerama xml xscreensaver xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_6 python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
/KoS
Top
turtles
Veteran
Veteran
User avatar
Posts: 1713
Joined: Fri Dec 31, 2004 7:30 am

  • Quote

Post by turtles » Wed Sep 16, 2020 2:23 am

Do you use the winbind USE flag?
What happens if you compile with USE="-winbind"
Donate to Gentoo
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Wed Sep 16, 2020 2:33 am

Code: Select all

CFLAGS="-march=native -O3
Try with -O2. -O3 is not recommended. I'm not sure why it exists.

This flag combo works for me:

Code: Select all

[ebuild   R    ] net-fs/samba-4.11.11::gentoo  USE="client cups fam syslog system-mitkrb5 winbind -abi_riscv_ilp32% -abi_riscv_ilp32d% -abi_riscv_lp64 -abi_riscv_lp64d -acl -addc -addns -ads -ceph -cluster -debug -dmapi -gpg -iprint -json -ldap -pam -profiling-data -python -quota (-selinux) -snapper (-system-heimdal) -systemd -test -zeroconf" ABI_X86="32 (64) (-x32)" PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8" 0 KiB
I use these CFLAGS:

Code: Select all

CFLAGS="-march=native -O2 -pipe "
Top
Ionen
Developer
Developer
User avatar
Posts: 3013
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Wed Sep 16, 2020 2:36 am

It'd be nice to know what USE you used, samba has a lot of options.

Although mix of gcc10 + stable samba + over the top CFLAGS doesn't look so good as-is.
Top
ct85711
Veteran
Veteran
Posts: 1791
Joined: Tue Sep 27, 2005 8:54 pm

  • Quote

Post by ct85711 » Wed Sep 16, 2020 2:37 am

Just wondering, did you by chance happen to update glibc to 2.32 since the time you last successfully compiled samba? The reason I am asking, is I encountered an email (/w patch), in that glibc declares their own version of nss_setpwent and some other methods that samba just so happens to set their own version...

https://www.mail-archive.com/openembedd ... 73200.html

You could possible try making a patch from the email, and see if it solves this problem (it may also help give you a starting point to see if upstream already included it in the current dev version).
Top
Ionen
Developer
Developer
User avatar
Posts: 3013
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Wed Sep 16, 2020 2:44 am

Ionen wrote:It'd be nice to know what USE you used, samba has a lot of options.

Although mix of gcc10 + stable samba + over the top CFLAGS doesn't look so good as-is.
Actually nevermind, I was able to reproduce with gcc9.3.0 and all USE disabled except default USE=system-mitkrb5, will do a few more tests.

Edit: to respond to above post, this system also uses glibc-2.32
Edit2: I was able to reproduce with =samba-4.11.11 + glibc-2.32, but =samba-4.12.6 works fine with it. So happening because mixing stable version with unstable libc.
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Wed Sep 16, 2020 3:01 am

Ionen wrote:Edit2: I was able to reproduce with =samba-4.11.11 + glibc-2.32, but =samba-4.12.6 works fine with it.
Mine uses 2.31-r6 but I think the problem is all those ricing flags.
Try with my boring CFLAGS and my (pretty complete) use flags. Then glibc is the only difference.
Did you recompile glibc using stable gcc 9.3.0 ?
Top
Ionen
Developer
Developer
User avatar
Posts: 3013
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Wed Sep 16, 2020 3:05 am

I was able to reproduce with normal CFLAGS used on the entire system (also all built with gcc 9.3.0) so I don't think it's that. The fix for glibc-2.32 simply needs to be backported, or samba-4.12.6 be stabilized before glibc-2.32 is (2.32 stabilization is likely far in the future still).
Top
kos
n00b
n00b
Posts: 74
Joined: Wed May 28, 2003 2:16 pm
Location: Mountain View, CA

  • Quote

Post by kos » Thu Sep 17, 2020 10:20 pm

Thanks for your analysis. Any workaround for me in the meanwhile?
/KoS
Top
leandrolnh
n00b
n00b
Posts: 22
Joined: Sat Sep 28, 2019 8:41 pm
Location: Brasil

  • Quote

Post by leandrolnh » Mon Sep 28, 2020 8:13 pm

kos wrote:Thanks for your analysis. Any workaround for me in the meanwhile?
As ct85711 pointed, it's a problem with glibc-2.32. You can use this quick dirt patch to rename the colliding functions. Put this into a file into /etc/portage/patches/net-fs/samba-4.11.11:

Code: Select all

--- a/nsswitch/nsstest.c	2019-12-06 06:46:56.000000000 -0300
+++ b/nsswitch/nsstest.c	2020-09-11 18:35:27.199949579 -0300
@@ -137,7 +137,7 @@
 	return &pwd;
 }
 
-static void nss_setpwent(void)
+static void nss_setpwent2(void)
 {
 	NSS_STATUS (*_nss_setpwent)(void) =
 		(NSS_STATUS(*)(void))find_fn("setpwent");
@@ -152,7 +152,7 @@
 	}
 }
 
-static void nss_endpwent(void)
+static void nss_endpwent2(void)
 {
 	NSS_STATUS (*_nss_endpwent)(void) =
 		(NSS_STATUS (*)(void))find_fn("endpwent");
@@ -290,7 +290,7 @@
 	return &grp;
 }
 
-static void nss_setgrent(void)
+static void nss_setgrent2(void)
 {
 	NSS_STATUS (*_nss_setgrent)(void) =
 		(NSS_STATUS (*)(void))find_fn("setgrent");
@@ -305,7 +305,7 @@
 	}
 }
 
-static void nss_endgrent(void)
+static void nss_endgrent2(void)
 {
 	NSS_STATUS (*_nss_endgrent)(void) =
 		(NSS_STATUS (*)(void))find_fn("endgrent");
@@ -402,7 +402,7 @@
 {
 	struct passwd *pwd;
 
-	nss_setpwent();
+	nss_setpwent2();
 	/* loop over all users */
 	while ((pwd = nss_getpwent())) {
 		printf("Testing user %s\n", pwd->pw_name);
@@ -424,14 +424,14 @@
 		printf("initgroups: "); nss_test_initgroups(pwd->pw_name, pwd->pw_gid);
 		printf("\n");
 	}
-	nss_endpwent();
+	nss_endpwent2();
 }
 
 static void nss_test_groups(void)
 {
 	struct group *grp;
 
-	nss_setgrent();
+	nss_setgrent2();
 	/* loop over all groups */
 	while ((grp = nss_getgrent())) {
 		printf("Testing group %s\n", grp->gr_name);
@@ -452,7 +452,7 @@
 		printf("getgrgid: "); print_group(grp);
 		printf("\n");
 	}
-	nss_endgrent();
+	nss_endgrent2();
 }
 
 static void nss_test_errors(void)
Top
lutel
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 110
Joined: Sun Oct 19, 2003 9:31 am
Location: Pomroczna

  • Quote

Post by lutel » Sat Oct 31, 2020 2:31 pm

The problem just reappeared with stable Glibc 2.32-r2 (unable to compile Samba 4.11.13)

Code: Select all

15:27:52 runner ['x86_64-pc-linux-gnu-gcc', '-march=native', '-mtune=native', '-O3', '-pipe', '-Wl,-O1', '-Wl,--as-needed', '-Wl,--version-script=/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/source4/param/shares.vscript', '-shared', 'source4/param/share.c.1.o', 'source4/param/share_ldb.c.5.o', 'source4/param/shares.empty.c.9.o', 'source4/param/share_classic.c.4.o', '-o/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/source4/param/libshares-samba4.so', '-Wl,-rpath,/usr/lib64', '-Wl,-rpath,/usr/lib64', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/source4/cluster', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/source3', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/source4/lib/messaging', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/lib/socket', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/auth', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/libds/common', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/lib', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/lib/dbwrap', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/source4/lib/events', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/lib/tdb_wrap', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/source4/auth/kerberos', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/librpc', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/lib/param', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/libcli/auth', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/lib/krb5_wrap', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/libcli/util', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/libcli/ldap', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/lib/ldb-samba', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/libcli/security', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/auth/credentials', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/lib/util', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/lib/replace', '-L/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/source4/dsdb', '-L/usr/local/lib', '-L/usr/local/lib', '-L/usr/lib64', '-lsamdb', '-lreplace-samba4', '-lsamba-util', '-lsamba-credentials', '-lsamba-security-samba4', '-lsamba-modules-samba4', '-lldbsamba-samba4', '-lcli-ldap-common-samba4', '-lsamba-errors', '-lkrb5samba-samba4', '-lcliauth-samba4', '-lsamba-hostconfig', '-lsamdb-common-samba4', '-lndr-samba-samba4', '-lauthkrb5-samba4', '-lndr', '-lgenrand-samba4', '-ltime-basic-samba4', '-lsocket-blocking-samba4', '-lsamba-debug-samba4', '-lutil-setid-samba4', '-lsys-rw-samba4', '-ltdb-wrap-samba4', '-levents-samba4', '-ldbwrap-samba4', '-lutil-tdb-samba4', '-lasn1util-samba4', '-lndr-nbt', '-lserver-role-samba4', '-lsamba-sockets-samba4', '-lflag-mapping-samba4', '-lndr-standard', '-lndr-krb5pac', '-ltevent-util', '-lcommon-auth-samba4', '-liov-buf-samba4', '-linterfaces-samba4', '-lMESSAGING-SEND-samba4', '-lserver-id-db-samba4', '-lmessages-dgm-samba4', '-lcluster-samba4', '-lmessages-util-samba4', '-lmsghdr-samba4', '-lgssapi_krb5', '-lkrb5', '-lk5crypto', '-lcom_err', '-lz', '-lgnutls', '-ltirpc', '-lnsl', '-lcrypt', '-ltevent', '-ltalloc', '-ltalloc', '-ltdb', '-lkrb5', '-lk5crypto', '-lcom_err', '-lldb', '-ltalloc', '-lbsd', '-ldl', '-lpthread', '-Wl,-O1', '-Wl,--as-needed', '-Wl,-z,relro,-z,now', '-Wl,-no-undefined', '-Wl,--export-dynamic', '-Wl,--as-needed']
../../nsswitch/nsstest.c:140:13: error: ‘nss_setpwent’ redeclared as different kind of symbol
  140 | static void nss_setpwent(void)
      |             ^~~~~~~~~~~~
In file included from ../../nsswitch/nsstest.h:53,
                 from ../../nsswitch/nsstest.c:22:
/usr/include/nss.h:186:25: note: previous declaration of ‘nss_setpwent’ was here
  186 | typedef enum nss_status nss_setpwent (int);
      |                         ^~~~~~~~~~~~
../../nsswitch/nsstest.c:155:13: error: ‘nss_endpwent’ redeclared as different kind of symbol
  155 | static void nss_endpwent(void)
      |             ^~~~~~~~~~~~
In file included from ../../nsswitch/nsstest.h:53,
                 from ../../nsswitch/nsstest.c:22:
/usr/include/nss.h:87:25: note: previous declaration of ‘nss_endpwent’ was here
   87 | typedef enum nss_status nss_endpwent (void);
      |                         ^~~~~~~~~~~~
../../nsswitch/nsstest.c:293:13: error: ‘nss_setgrent’ redeclared as different kind of symbol
  293 | static void nss_setgrent(void)
      |             ^~~~~~~~~~~~
In file included from ../../nsswitch/nsstest.h:53,
                 from ../../nsswitch/nsstest.c:22:
/usr/include/nss.h:181:25: note: previous declaration of ‘nss_setgrent’ was here
  181 | typedef enum nss_status nss_setgrent (int);
      |                         ^~~~~~~~~~~~
../../nsswitch/nsstest.c:308:13: error: ‘nss_endgrent’ redeclared as different kind of symbol
  308 | static void nss_endgrent(void)
      |             ^~~~~~~~~~~~
In file included from ../../nsswitch/nsstest.h:53,
                 from ../../nsswitch/nsstest.c:22:
/usr/include/nss.h:82:25: note: previous declaration of ‘nss_endgrent’ was here
   82 | typedef enum nss_status nss_endgrent (void);
      |                         ^~~~~~~~~~~~

In file included from ../../lib/replace/system/filesys.h:118,
                 from ../../librpc/tools/ndrdump.c:22:
/usr/include/attr/xattr.h:5:2: warning: #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>" [-Wcpp]
    5 | #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>"
      |  ^~~~~~~

In file included from ../../lib/replace/system/filesys.h:118,
                 from ../../lib/replace/tests/testsuite.c:36:
/usr/include/attr/xattr.h:5:2: warning: #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>" [-Wcpp]
    5 | #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>"
      |  ^~~~~~~

Waf: Leaving directory `/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default'
Build failed
 -> task in 'nsstest.objlist' failed with exit status 1:
	{task 140575252596096: c nsstest.c -> nsstest.c.4.o}
['x86_64-pc-linux-gnu-gcc', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-march=native', '-mtune=native', '-O3', '-pipe', '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-DHAVE_CONFIG_H=1', '-fPIE', '-fPIC', '-D__STDC_WANT_LIB_EXT1__=1', '-D_REENTRANT', '-fstack-protector-strong', '-fstack-clash-protection', '-DSTATIC_nsstest_MODULES=NULL', '-DSTATIC_nsstest_MODULES_PROTO=extern void __nsstest_dummy_module_proto(void)', '-Insswitch', '-I../../nsswitch', '-Iinclude/public', '-I../../include/public', '-Isource4', '-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib', '-I../../source4/lib', '-Isource4/include', '-I../../source4/include', '-Iinclude', '-I../../include', '-Ilib/replace', '-I../../lib/replace', '-I.', '-I../..', '../../nsswitch/nsstest.c', '-c', '-o/var/tmp/portage/net-fs/samba-4.11.13-r1/work/samba-4.11.13-abi_x86_64.amd64/bin/default/nsswitch/nsstest.c.4.o', '-I/usr/include/et']
 * ERROR: net-fs/samba-4.11.13-r1::gentoo failed (compile phase):
 *   build failed
Top
leandrolnh
n00b
n00b
Posts: 22
Joined: Sat Sep 28, 2019 8:41 pm
Location: Brasil

  • Quote

Post by leandrolnh » Mon Nov 02, 2020 4:33 am

lutel wrote:The problem just reappeared with stable Glibc 2.32-r2 (unable to compile Samba 4.11.13)
The version 4.12.9 was stabilized for amd64 and I emerged it without problem with glibc 2.32-r2.
Top
ali3nx
l33t
l33t
User avatar
Posts: 732
Joined: Sun Sep 21, 2003 4:28 am
Location: Winnipeg, Canada
Contact:
Contact ali3nx
Website

  • Quote

Post by ali3nx » Mon Nov 02, 2020 4:45 am

Code: Select all

lto-overlay
    location: /var/lib/layman/lto-overlay
    masters: gentoo mv
    priority: 50
This may have a lot to do with the complications
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
Top
Ionen
Developer
Developer
User avatar
Posts: 3013
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Mon Nov 02, 2020 4:51 am

ali3nx wrote:

Code: Select all

lto-overlay
    location: /var/lib/layman/lto-overlay
    masters: gentoo mv
    priority: 50
This may have a lot to do with the complications
I don't approve of it but it didn't, this was a known issue when building against glibc 2.32, see link from earlier post. Note that this is a semi-old thread but the issue briefly re-surfaced because glibc 2.32 was stabilized.

Stabilization of samba 4.12.x came a few hours late so may have affected a few people that sync in-between, as other post above reported should be fine now unless still need 4.11.x for some reason.
Top
Polynomial-C
Retired Dev
Retired Dev
User avatar
Posts: 1432
Joined: Sun Jun 01, 2003 4:19 pm
Location: Germany

  • Quote

Post by Polynomial-C » Tue Nov 03, 2020 9:04 am

FYI, we are about to stabilize samba-4.12.9 in [bug]751724[/bug] so this issue should be gone soon.
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Top
Post Reply

15 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic