Olivia Nelson
2018-May-24 05:40 UTC
[Samba] build rpcclient only and static link everything but libc
Hi there, I'm using 4.8.2 and trying to build rpcclient statically. ``` ./configure --disable-python --without-ad-dc --without-acl-support --without-ldap --without-ntvfs-fileserver --without-ads --without-pam --bundled-libraries=talloc,tdb,pytdb,ldb,pyldb,tevent,pytevent --with-static-modules=ALL make ``` Then I got ``` WAF_MAKE=1 python ./buildtools/bin/waf build Waf: Entering directory `/samba-4.8.2/bin' Selected embedded Heimdal build Checking project rules ... Project rules pass [3008/3078] Linking default/source3/rpcclient/rpcclient default/source3/rpcclient/cmd_spoolss_1.o: In function `cmd_spoolss_open_printer_ex': cmd_spoolss.c:(.text+0x2ad): undefined reference to `rpccli_spoolss_openprinter_ex' default/source3/rpcclient/cmd_spoolss_1.o: In function `cmd_spoolss_enum_printers': cmd_spoolss.c:(.text+0xccb): undefined reference to `rpccli_spoolss_enumprinters' default/source3/rpcclient/cmd_spoolss_1.o: In function `cmd_spoolss_enum_ports': cmd_spoolss.c:(.text+0x110e): undefined reference to `rpccli_spoolss_enumports' default/source3/rpcclient/cmd_spoolss_1.o: In function `cmd_spoolss_setprinter': cmd_spoolss.c:(.text+0x12d0): undefined reference to `rpccli_spoolss_openprinter_ex' ... ``` Any ideas?