Bug 200358 - net/samba41: Compilation of 4.1.18 fails: libsamba-util.so: undefined reference to ...
Summary: net/samba41: Compilation of 4.1.18 fails: libsamba-util.so: undefined referen...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: O. Hartmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-21 05:54 UTC by O. Hartmann
Modified: 2016-10-18 14:05 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (timur)


Attachments
/etc/make.conf (11.27 KB, text/plain)
2015-05-27 04:27 UTC, O. Hartmann
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2015-05-21 05:54:29 UTC
The recent update of net/samba41 from version 4.1.17 to 4.1.18 fails with the below shown error message.

[...]
[3290/3736] Linking default/source4/heimdal_build/libkdc-samba4.so
07:38:07 runner cc default/source4/heimdal/kdc/default_config_16.o default/source4/heimdal/kdc/kerberos5_16.o default/source4/heimdal/kdc/krb5tgs_16.o default/source4/heimdal/kdc/pkinit_16.o default/source4/heimdal/kdc/log_16.o default/source4/heimdal/kdc/misc_16.o default/source4/heimdal/kdc/digest_16.o default/source4/heimdal/kdc/process_16.o default/source4/heimdal/kdc/windc_16.o default/source4/heimdal/kdc/kx509_16.o default/source4/heimdal/lib/asn1/asn1_digest_asn1_15.o default/source4/heimdal/lib/asn1/asn1_kx509_asn1_10.o -o /usr/ports/net/samba41/work/samba-4.1.18/bin/default/source4/heimdal_build/libkdc-samba4.so -L/usr/local/lib -fstack-protector -Wl,-no-undefined -Wl,--export-dynamic -pthread -Wl,--as-needed -shared -Wl,--version-script=/usr/ports/net/samba41/work/samba-4.1.18/source4/heimdal/kdc/version-script.map -Wl,-h,libkdc-samba4.so.2 -Wl,-rpath,/usr/ports/net/samba41/work/samba-4.1.18/bin/shared -Wl,-rpath,/usr/ports/net/samba41/work/samba-4.1.18/bin/shared/private -Ldefault/lib/replace -Ldefault/source4/heimdal_build -Wl,-Bdynamic -lkrb5-samba4 -lheimbase-samba4 -lroken-samba4 -lasn1-samba4 -lhcrypto-samba4 -lhdb-samba4 -lcom_err-samba4 -lreplace -lheimntlm-samba4 -lwind-samba4 -lhx509-samba4 -lutil -lrt -lexecinfo -lcrypt
/usr/local/lib/libndr.so: undefined reference to `nt_errstr@SAMBA_4.1.17'
/usr/local/lib/libsamba-util.so: undefined reference to `rep_memalign@SAMBA_4.1.17'
/usr/local/lib/libndr.so: undefined reference to `win_errstr@SAMBA_4.1.17'
/usr/local/lib/libndr-nbt.so: undefined reference to `ndr_push_dom_sid0@SAMBA_4.1.17'
/usr/local/lib/libtevent-util.so: undefined reference to `ntstatus_to_werror@SAMBA_4.1.17'
/usr/local/lib/libsamba-util.so: undefined reference to `rep_strtoull@SAMBA_4.1.17'
/usr/local/lib/libsamba-hostconfig.so: undefined reference to `lp_find_server_role@SAMBA_4.1.17'
/usr/local/lib/libsamba-hostconfig.so: undefined reference to `lp_find_security@SAMBA_4.1.17'
/usr/local/lib/libndr-nbt.so: undefined reference to `ndr_size_dom_sid0@SAMBA_4.1.17'
/usr/local/lib/libtevent-util.so: undefined reference to `map_nt_error_from_unix_common@SAMBA_4.1.17'
/usr/local/lib/libndr-nbt.so: undefined reference to `ndr_pull_dom_sid0@SAMBA_4.1.17'
/usr/local/lib/libndr-nbt.so: undefined reference to `ndr_print_dom_sid0@SAMBA_4.1.17'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
Waf: Leaving directory `/usr/ports/net/samba41/work/samba-4.1.18/bin'
Build failed:  -> task failed (err #1): 
        {task: cc_link popt_common_5.o,nmblookup_7.o -> nmblookup4}
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Comment 1 Timur I. Bakeyev freebsd_committer freebsd_triage 2015-05-22 12:22:16 UTC
Hi!

I see you keep posting those errors with almost every new version of the port, but whenever I ask for additional info I get nothing back.

You shouldn't get such an error with the default system settings.

Please, provide the content of /etc/make.conf and actual selection of the configuration options for the start.

Somehow extra -L/usr/local/lib sneaks into the compilation line, we should find the source of it.
Comment 2 O. Hartmann 2015-05-27 04:27:57 UTC
Created attachment 157193 [details]
/etc/make.conf
Comment 3 O. Hartmann 2015-05-27 04:28:42 UTC
here are /etc/make.conf and /etc/src.conf. I can not see where /usr/local/lib is slipped in an additional  search path.

/etc/src.conf:

#
CPUTYPE?=               native
#
CFLAGS+=                -O3 -pipe
COPTFLAGS+=             -O3 -pipe
#
CXXFLAGS+=              -std=c++11
#
WITH_CLANG_FULL=        YES
WITH_CLANG_EXTRAS=      YES
WITH_LLDB=              YES
#
WITH_IDEA=              YES
#
#WITH_BSD_GREP=         YES
#
#WITH_OFED=             YES
WITH_NAND=              YES
#WITH_CTF=              YES
#
WITH_SVN=               YES
#
MALLOC_PRODUCTION=      YES
#
#WITHOUT_DEBUG_FILES=   YES
#
KERNCONF=               AMGOHOM
#
#
#
FORCE_PKG_REGISTER=     YES
#
PORTS_MODULES=
PORTS_MODULES+=         x11/nvidia-driver
PORTS_MODULES+=         emulators/virtualbox-ose-kmod
Comment 4 VK 2016-05-23 18:06:19 UTC
net/samba41 has been removed from ports with r415323. Maintainer, can this bug report be closed, overcome by events?
Comment 5 O. Hartmann 2016-05-23 19:19:11 UTC
Can be closed.
Comment 6 VK 2016-10-18 14:05:17 UTC
Assign to person who closed.