Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Apr 2016 08:52:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 208767] net/samba43: error, linker failure : smbspool_krb5_wrapper.c:198: undefined reference to `clearenv'
Message-ID:  <bug-208767-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208767

            Bug ID: 208767
           Summary: net/samba43: error, linker failure :
                    smbspool_krb5_wrapper.c:198: undefined reference to
                    `clearenv'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: timur@FreeBSD.org
          Reporter: ohartman@zedat.fu-berlin.de
          Assignee: timur@FreeBSD.org
             Flags: maintainer-feedback?(timur@FreeBSD.org)

The recent update of net/samba43 fails to build due to a linker error:

smbspool_krb5_wrapper.c:198: undefined reference to `clearenv',

see below.


[...]

cc: warning: argument unused during compilation: '-undefined dynamic_lookup'
[3340/3873] Linking default/source3/lib/pthreadpool/pthreadpooltest
runner cc default/source3/utils/log2pcaphex_214.o -o
/usr/ports/net/samba43/work/samba-4.3.8/bin/default/source3/log2pcap
-L/usr/local/lib -fstack-protector -pie -Wl,-z,relro,-z,now -lpthread
-Wl,-no-undefined -Wl,--export-dynamic -Wl,--as-needed
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.8/bin/shared
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.8/bin/shared/private
-Ldefault/lib/replace -Wl,-Bdynamic -lreplace-samba4 -lrt -lcrypt -ltalloc
-lpopt
runner cc default/source3/utils/debug2html_218.o
default/source3/utils/debugparse_218.o -o
/usr/ports/net/samba43/work/samba-4.3.8/bin/default/source3/debug2html
-L/usr/local/lib -fstack-protector -pie -Wl,-z,relro,-z,now -lpthread
-Wl,-no-undefined -Wl,--export-dynamic -Wl,--as-needed
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.8/bin/shared
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.8/bin/shared/private
-Ldefault/lib/replace -Wl,-Bdynamic -lreplace-samba4 -lrt -lcrypt -ltalloc
-lpopt
[3341/3873] Linking default/source3/lib/asys/asystest
[3342/3873] Linking default/lib/util/libgenrand-samba4.so
[3343/3873] Linking default/lib/util/libsamba-debug-samba4.so
[3344/3873] Linking default/source3/libmsghdr-samba4.so
runner cc default/source3/script/tests/timelimit_226.o -o
/usr/ports/net/samba43/work/samba-4.3.8/bin/default/source3/timelimit
-L/usr/local/lib -fstack-protector -pie -Wl,-z,relro,-z,now -lpthread
-Wl,-no-undefined -Wl,--export-dynamic -Wl,--as-needed
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.8/bin/shared
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.8/bin/shared/private
runner cc default/source3/lib/pthreadpool/pthreadpool_1.o
default/source3/lib/pthreadpool/tests_2.o -o
/usr/ports/net/samba43/work/samba-4.3.8/bin/default/source3/lib/pthreadpool=
/pthreadpooltest
-L/usr/local/lib -fstack-protector -pie -Wl,-z,relro,-z,now -lpthread
-Wl,-no-undefined -Wl,--export-dynamic -Wl,--as-needed
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.8/bin/shared
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.8/bin/shared/private
-Ldefault/lib/replace -Wl,-Bdynamic -lreplace-samba4 -lrt -lcrypt
default/source3/client/smbspool_krb5_wrapper_170.o: In function `main':
/usr/ports/net/samba43/work/samba-4.3.8/bin/../source3/client/smbspool_krb5=
_wrapper.c:198:
undefined reference to `clearenv'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
runner cc default/source3/lib/asys/tests_2.o default/source3/lib/asys/asys_=
1.o
default/source3/lib/pthreadpool/pthreadpool_1.o -o
/usr/ports/net/samba43/work/samba-4.3.8/bin/default/source3/lib/asys/asyste=
st
-L/usr/local/lib -fstack-protector -pie -Wl,-z,relro,-z,now -lpthread
-Wl,-no-undefined -Wl,--export-dynamic -Wl,--as-needed
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.8/bin/shared
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.8/bin/shared/private
-Ldefault/lib/replace -Wl,-Bdynamic -lreplace-samba4 -lrt -lcrypt
runner cc default/lib/crypto/crc32_1.o default/lib/crypto/hmacmd5_1.o
default/lib/crypto/md4_1.o default/lib/crypto/arcfour_1.o
default/lib/crypto/sha256_1.o default/lib/crypto/sha512_1.o
default/lib/crypto/hmacsha256_1.o default/lib/crypto/aes_1.o
default/lib/crypto/rijndael-alg-fst_1.o default/lib/crypto/aes_cmac_128_1.o
default/lib/crypto/aes_ccm_128_1.o default/lib/crypto/aes_gcm_128_1.o
default/lib/util/genrand_15.o -o
/usr/ports/net/samba43/work/samba-4.3.8/bin/default/lib/util/libgenrand-sam=
ba4.so
-L/usr/local/lib -fstack-protector -Wl,-z,relro,-z,now -lpthread
-Wl,-no-undefined -Wl,--export-dynamic -Wl,--as-needed -shared
-Wl,--version-script=3D/usr/ports/net/samba43/work/samba-4.3.8/bin/default/=
lib/util/genrand.vscript
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.8/bin/shared
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.8/bin/shared/private
-Ldefault/lib/replace -Ldefault/lib/util -Wl,-Bdynamic -ltime-basic-samba4
-lsocket-blocking-samba4 -lreplace-samba4 -lrt -lmd -ltalloc -lcrypt
runner cc default/source3/lib/msghdr_123.o -o
/usr/ports/net/samba43/work/samba-4.3.8/bin/default/source3/libmsghdr-samba=
4.so
-L/usr/local/lib -fstack-protector -Wl,-z,relro,-z,now -lpthread
-Wl,-no-undefined -Wl,--export-dynamic -Wl,--as-needed -shared
-Wl,--version-script=3D/usr/ports/net/samba43/work/samba-4.3.8/bin/default/=
source3/msghdr.vscript
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.8/bin/shared
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.8/bin/shared/private
-Ldefault/lib/replace -Ldefault/lib/util -Wl,-Bdynamic -liov-buf-samba4
-lreplace-samba4 -lrt -lcrypt
runner cc default/lib/util/close_low_fd_7.o default/lib/util/debug_8.o -o
/usr/ports/net/samba43/work/samba-4.3.8/bin/default/lib/util/libsamba-debug=
-samba4.so
-L/usr/local/lib -fstack-protector -Wl,-z,relro,-z,now -lpthread
-Wl,-no-undefined -Wl,--export-dynamic -Wl,--as-needed -shared
-Wl,--version-script=3D/usr/ports/net/samba43/work/samba-4.3.8/bin/default/=
lib/util/samba-debug.vscript
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.8/bin/shared
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.8/bin/shared/private
-Ldefault/lib/replace -Ldefault/lib/util -Wl,-Bdynamic -ltime-basic-samba4
-lsocket-blocking-samba4 -lreplace-samba4 -lrt -lcrypt -ltalloc
Waf: Leaving directory `/usr/ports/net/samba43/work/samba-4.3.8/bin'
Build failed:  -> task failed (err #1):=20
        {task: cc_link dynconfig_1.o,smbspool_krb5_wrapper_170.o ->
smbspool_krb5_wrapper}
=3D=3D=3D> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure =
to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/net/samba43
*** Error code 1

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208767-13>