Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318001 - net-fs/samba fails to install with -client -server
Summary: net-fs/samba fails to install with -client -server
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
: 319135 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-01 14:10 UTC by Bartek 'Paczesiowa' Cwiklowski
Modified: 2010-05-11 14:52 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bartek 'Paczesiowa' Cwiklowski 2010-05-01 14:10:50 UTC
I have all flags disabled for samba, only smbclient is enabled (usedep for fusesmb) and samba fails to install with:

dobin: at least one argument needed

looking at the ebuild I see this:

BINPROGS=""
...
dobin ${BINPROGS} || die "installing binaries failed"

and BINPROGS is never assigned anything when all the flags are disabled

Reproducible: Always
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2010-05-10 21:05:21 UTC
*** Bug 319135 has been marked as a duplicate of this bug. ***
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2010-05-10 21:06:22 UTC
Adjusting summary since 3.4.6 fails just as well as 3.5.2 (see #319135)
Comment 3 Etaoin Shrdlu 2010-05-11 10:00:52 UTC
I was getting the same error with 3.4.6, I changed the USE flags and added "client", but now I'm getting this:

...
Compiling rpcclient/cmd_dssetup.c                                                                                                                           
Compiling rpcclient/cmd_echo.c                                                                                                                              
Compiling rpcclient/cmd_shutdown.c                                                                                                                          
Compiling rpcclient/cmd_test.c
Compiling rpcclient/cmd_wkssvc.c
Compiling rpcclient/cmd_ntsvcs.c
Compiling rpcclient/cmd_drsuapi.c
Compiling rpcclient/cmd_eventlog.c
Compiling utils/smbcacls.c
Compiling utils/smbcquotas.c
Compiling utils/ntlm_auth.c
Compiling utils/ntlm_auth_diagnostics.c
Linking bin/smbclient
Linking bin/net
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lnetapi
collect2: ld returned 1 exit status
make: *** [bin/net] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: net-fs/samba-3.4.6 failed:
 *   emake binprogs failed
 *
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 3130:  Called die
 * The specific snippet of code:
 *           emake ${BINPROGS} || die "emake binprogs failed";
 *
 * If you need support, post the output of 'emerge --info =net-fs/samba-3.4.6',
 * the complete build log and the output of 'emerge -pqv =net-fs/samba-3.4.6'.
 * The complete build log is located at '/var/tmp/portage/net-fs/samba-3.4.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-fs/samba-3.4.6/temp/environment'.
 * S: '/var/tmp/portage/net-fs/samba-3.4.6/work/samba-3.4.6/source3'

My USE flags for samba are as follows:

[ebuild     U ]    net-fs/samba-3.4.6 [3.0.37] USE="caps client%* ldap pam readline smbclient%* syslog -acl -addns% -ads -aio% -avahi% -cluster% -cups -debug -doc -examples -fam -ldb% -netapi% -quota% -server% -smbsharemodes% -swat -winbind (-async%) (-automount%) (-ipv6%*) (-oav%) (-python%*) (-quotas%) (-selinux%)" 0 kB
Comment 4 Etaoin Shrdlu 2010-05-11 10:10:09 UTC
Ok, adding netapi to the USE flags did the trick. It still fails with -client and -server though.
Comment 5 Patrick Lauer gentoo-dev 2010-05-11 11:27:32 UTC
+  11 May 2010; Patrick Lauer <patrick@gentoo.org> samba-3.4.6.ebuild,
+  samba-3.4.8.ebuild, samba-3.5.2-r1.ebuild:
+  Removing stray dobin call that triggered #318001
Comment 6 Etaoin Shrdlu 2010-05-11 14:52:52 UTC
Thanks, it works fine now. However, with USE="smbclient -client -server" the smbclient program is not installed. I take now one MUST enable either "client", "server" or both?