Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net-fs/samba-4.20.7 compilazione fallita
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
NaicSLoS
n00b
n00b


Joined: 05 May 2025
Posts: 1

PostPosted: Mon May 05, 2025 4:35 pm    Post subject: net-fs/samba-4.20.7 compilazione fallita Reply with quote

Salve

Ho provato ad aggiornare samba nella versione 4.20.7 e sto ricevendo errori che fino ad ora non sono riuscito a capire:
Code:

b', '-ltalloc', '-Wl,-O1', '-Wl,--as-needed', '-Wl,-z,pack-relative-relocs', '-Wl,-z,relro,-z,now', '-Wl,-no-undefined', '-Wl,--export-dynamic']
[1706/2615] Compiling libcli/smbreadline/smbreadline.c
18:03:15 runner ['x86_64-pc-linux-gnu-gcc', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-O2', '-march=native', '-fno-stack-protector', '-pipe', '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-DHAVE_CONFIG_H=1', '-fPIC', '-D__STDC
_WANT_LIB_EXT1__=1', '-D_REENTRANT', '-fstack-protector-strong', '-fstack-clash-protection', '-DSTATIC_SMBREADLINE_MODULES=NULL', '-DSTATIC_SMBREADLINE_MODULES_PROTO=extern void __SMBREADLINE_dummy_module_proto(void)', '-Ilibcli/smbreadlin
e', '-I../../libcli/smbreadline', '-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../..', '../../libcli/smbreadline/smbreadline.c', '-c', '-o/var/tmp/portage/net-fs/samba-4.20.7/work/samba-4.20.7-abi_x86_64.amd64/bin/default/libcli/smbreadline/smbreadlin
e.c.1.o', '-I/usr/include/et']
../../libcli/smbreadline/smbreadline.c: In function ‘smb_readline’:
../../libcli/smbreadline/smbreadline.c:139:17: warning: ‘CPPFunction’ is deprecated [-Wdeprecated-declarations]
  139 |                 rl_attempted_completion_function = RL_COMPLETION_CAST completion_fn;
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../libcli/smbreadline/smbreadline.c:139:50: error: assignment to ‘char ** (*)(const char *, int,  int)’ from incompatible pointer type ‘char ** (*)(void)’ [-Wincompatible-pointer-types]
  139 |                 rl_attempted_completion_function = RL_COMPLETION_CAST completion_fn;
      |                                                  ^

Waf: Leaving directory `/var/tmp/portage/net-fs/samba-4.20.7/work/samba-4.20.7-abi_x86_64.amd64/bin/default'
Build failed
 -> task in 'SMBREADLINE' failed with exit status 1:
        {task 140398802124064: c smbreadline.c -> smbreadline.c.1.o}
['x86_64-pc-linux-gnu-gcc', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-O2', '-march=native', '-fno-stack-protector', '-pipe', '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-DHAVE_CONFIG_H=1', '-fPIC', '-D__STDC_WANT_LIB_EXT1__
=1', '-D_REENTRANT', '-fstack-protector-strong', '-fstack-clash-protection', '-DSTATIC_SMBREADLINE_MODULES=NULL', '-DSTATIC_SMBREADLINE_MODULES_PROTO=extern void __SMBREADLINE_dummy_module_proto(void)', '-Ilibcli/smbreadline', '-I../../lib
cli/smbreadline', '-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../..', '../../libcli/smbreadline/smbreadline.c', '-c', '-o/var/tmp/portage/net-fs/samba-4.20.7/work/samba-4.20.7-abi_x86_64.amd64/bin/default/libcli/smbreadline/smbreadline.c.1.o', '-I/us
r/include/et']
 * ERROR: net-fs/samba-4.20.7::gentoo failed (compile phase):
 *   build failed


Di seguito le info:
Code:

Portage 3.0.67 (python 3.13.3-final-0, default/linux/amd64/23.0/desktop, gcc-15, glibc-2.40-r8, 6.12.21-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.12.21-gentoo-x86_64-12th_Gen_Intel-R-_Core-TM-_i7-1260P-with-glibc2.40
KiB Mem:    16379220 total,  10876056 free
KiB Swap:    8387560 total,   8387560 free
Timestamp of repository bombo82: Fri, 02 May 2025 04:42:10 +0000
Head commit of repository bombo82: 7c1f2ab2a764d619456702817e33516b37e5ede1
sh bash 5.2_p37
ld GNU ld (Gentoo 2.44 p1) 2.44.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.17-r1::gentoo
dev-build/cmake:           3.31.5::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.8.0::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.2::gentoo
dev-lang/python:           3.12.10::gentoo, 3.13.3::gentoo
dev-lang/rust-bin:         1.85.1::gentoo
llvm-core/clang:           18.1.8-r6::gentoo, 19.1.7::gentoo, 20.1.4::gentoo
llvm-core/llvm:            18.1.8-r6::gentoo, 19.1.7::gentoo, 20.1.4::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.56::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             15.1.0::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.12::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r8::gentoo
Repositories:
gentoo
    location: /var/db/repos/gentoo
    sync-type: webrsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-webrsync-verify-signature: yes

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

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -fno-stack-protector -pipe"
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/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf
/web2c"
CXXFLAGS="-O2 -march=native -fno-stack-protector -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOM
E"
FCFLAGS="-O2 -march=native -fno-stack-protector -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox
news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=native -fno-stack-protector -pipe"
GENTOO_MIRRORS="https://mirrors.dotsrc.org/gentoo/ http://mirrors.dotsrc.org/gentoo/ https://gentoo.mirror.garr.it/ http://gentoo.mirror.garr.it/"
LANG="C.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en it"
MAKEOPTS="--jobs 14 --load-average 14"
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"
RUSTFLAGS="-C target-cpu=native -C link-arg=-Wl,-z,pack-relative-relocs -C opt-level=2"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 branding bzip2 cairo cdda cdr cet clang crypt cups dbus dga dri dts dvd dvdr elogind encode exif flac flatpak fontconfig freerdp gdbm gif gnome-keyring gpm gtk gui iconv icu ipv6 java jpeg lcms libnotify
libtirpc lvm lzma mad mng mp3 mp4 mpeg multilib ncurses nls nsplugin offensive ogg opengl openmp pam pango pcre pdf perl png policykit ppds pulseaudio python python_single_targets_python3_13 qml qt5 qt6 readline samba screencast sdl seccom
p sound spell ssl startup-notification svg syslog test-rust tiff tk tools truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib zsh-completions" ABI_X86="64" ADA_TARGET="gcc_14" APACHE2
_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires e
xt_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words stage" COLLECTD_PLUGINS="df inter
face irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gps
clock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US it" LCD_DEVICES="bayra
d cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_1
3" PYTHON_TARGETS="python3_13 python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="vmware" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos accou
nt"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM
, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS


Qualcuno potrebbe darmi una mano?

Vi ringrazio in anticipo
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31648
Location: here

PostPosted: Mon May 05, 2025 6:15 pm    Post subject: Reply with quote

Benvenuto nel forum gentoo!

Vedo che stai usando la versione 15 di gcc (non stabile) in un sistema stabile e questo è la causa del tuo errore.
Infatti le versioni instabili di samba a partire dalla versione 4.21.3 non riportano il problema perché sono già state corrette.
Quindi la soluzione è quella di smascherare una nuova versione di samba o installare gcc-14 che è la versione stabile.
Il pacchetto gcc è 'slottato' e quindi possono coesistere più versioni allo stesso momento ma dovrai selezionare gcc con eselect.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum