Undefined symbol fmemopen when compiling on OpenIndiana

Rouven WEILER Rouven_Weiler at gmx.net
Wed Mar 20 09:27:23 UTC 2019


Compiling samba-4.10.0 on OpenIndiana/Illumos I get the following shortened output when compiling verbose (whole output see below):

[3167/3865] Linking bin/default/libcli/dns/resolvconftest
Undefined                       first referenced
 symbol                             in file
fmemopen                            libcli/dns/resolvconftest.c.3.o
ld: fatal: symbol referencing errors. No output written to /samba/build/samba/bin/default/libcli/dns/resolvconftest
collect2: error: ld returned 1 exit status

Waf: Leaving directory `/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default'
Build failed
 -> task in 'resolvconftest' failed with exit status 1:
        {task 4233998772L: cprogram resolvconftest.c.3.o -> resolvconftest}


Maybe this helps: As far as I know there is no fmemopen function on OpenIndiana as well as on Oracle Solaris.






WHOLE OUTPUT:
[3167/3865] Linking bin/default/libcli/dns/resolvconftest
09:15:53 runner ['/usr/gcc/6/bin/gcc', '-R/usr/lib/samba', '-R/usr/lib/samba/private', '-lrt', '-lsec', '-lcrypt', '-lmd5', '-lsocket', '-lnsl', '-lsendfile', '-lavahi-common', '-lavahi-core', '-R/usr/gnu/lib', '-L/usr/lib/gnutls-3', '-R/usr/lib/gnutls-3', 'libcli/dns/resolvconftest.c.3.o', '-o/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/libcli/dns/resolvconftest', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/lib/replace', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/source4/lib/events', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/libcli/util', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/lib/tevent', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/lib/socket', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/source4/heimdal_build', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/libcli/security', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/lib/talloc', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/lib/util', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/lib', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/librpc', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/libcli/dns', '-L/usr/local/lib', '-L/usr/local/lib', '-lclidns-samba4', '-lndr-standard', '-lsamba-sockets-samba4', '-ltevent-util', '-lndr-nbt', '-lndr', '-ltalloc', '-lsamba-security-samba4', '-lsamba-util', '-liov-buf-samba4', '-lroken-samba4', '-lsocket-blocking-samba4', '-linterfaces-samba4', '-ltevent', '-lsamba-errors', '-levents-samba4', '-lreplace-samba4', '-ltime-basic-samba4', '-lutil-setid-samba4', '-lsamba-debug-samba4', '-lgenrand-samba4', '-lsys-rw-samba4', '-lcrypt', '-lsocket', '-lrt', '-lpthread', '-lresolv', '-lpthread']
Undefined                       first referenced
 symbol                             in file
fmemopen                            libcli/dns/resolvconftest.c.3.o
ld: fatal: symbol referencing errors. No output written to /export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/libcli/dns/resolvconftest
collect2: error: ld returned 1 exit status

Waf: Leaving directory `/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default'
Build failed
 -> task in 'resolvconftest' failed with exit status 1:
        {task 4233998772L: cprogram resolvconftest.c.3.o -> resolvconftest}
['/usr/gcc/6/bin/gcc', '-R/usr/lib/samba', '-R/usr/lib/samba/private', '-lrt', '-lsec', '-lcrypt', '-lmd5', '-lsocket', '-lnsl', '-lsendfile', '-lavahi-common', '-lavahi-core', '-R/usr/gnu/lib', '-L/usr/lib/gnutls-3', '-R/usr/lib/gnutls-3', 'libcli/dns/resolvconftest.c.3.o', '-o/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/libcli/dns/resolvconftest', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/lib/replace', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/source4/lib/events', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/libcli/util', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/lib/tevent', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/lib/socket', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/source4/heimdal_build', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/libcli/security', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/lib/talloc', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/lib/util', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/lib', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/librpc', '-L/export/home/github.com/oi-userland.git/components/network/samba/build/samba/bin/default/libcli/dns', '-L/usr/local/lib', '-L/usr/local/lib', '-lclidns-samba4', '-lndr-standard', '-lsamba-sockets-samba4', '-ltevent-util', '-lndr-nbt', '-lndr', '-ltalloc', '-lsamba-security-samba4', '-lsamba-util', '-liov-buf-samba4', '-lroken-samba4', '-lsocket-blocking-samba4', '-linterfaces-samba4', '-ltevent', '-lsamba-errors', '-levents-samba4', '-lreplace-samba4', '-ltime-basic-samba4', '-lutil-setid-samba4', '-lsamba-debug-samba4', '-lgenrand-samba4', '-lsys-rw-samba4', '-lcrypt', '-lsocket', '-lrt', '-lpthread', '-lresolv', '-lpthread']
gmake: *** [Makefile:185: /export/home/github.com/oi-userland.git/components/network/samba/build/samba/.built] Error 1




(should be the same issue on Oracle Solaris) I



More information about the samba-technical mailing list