Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 321483 - net-fs/samba-3.4.x fails to build with USE flags=client -netapi (it was samba 3.4.6 compile fails with "emake binprogs failed" when client useflag enabled)
Summary: net-fs/samba-3.4.x fails to build with USE flags=client -netapi (it was samba...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-25 19:31 UTC by f1a989188a51186834a821708563800a
Modified: 2010-06-04 18:43 UTC (History)
0 users

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


Attachments
emerge info (emerge_info.txt,3.43 KB, text/plain)
2010-05-25 19:34 UTC, f1a989188a51186834a821708563800a
Details
samba 3.4.6 build log (samba_346_build.log,65.29 KB, text/plain)
2010-05-25 19:35 UTC, f1a989188a51186834a821708563800a
Details

Note You need to log in before you can comment on or make changes to this bug.
Description f1a989188a51186834a821708563800a 2010-05-25 19:31:11 UTC
Compiling librpc/gen_ndr/ndr_libnet_join.c
Linking bin/net
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld: canno                                              t find -lnetapi
collect2: ld returned 1 exit status
make: *** [bin/net] Error 1
 * ERROR: net-fs/samba-3.4.6 failed:
 *   emake binprogs failed
 *
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 3042:  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 '/tmp/portage/portage/net-fs/samba-3.4.6                                              /temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/portage/net-fs/samba-                                              3.4.6/temp/environment'.
 * S: '/tmp/portage/portage/net-fs/samba-3.4.6/work/samba-3.4.6/source3'

 * Messages for package net-fs/samba-3.4.6:

 * ERROR: net-fs/samba-3.4.6 failed:
 *   emake binprogs failed
 *
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 3042:  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 '/tmp/portage/portage/net-fs/samba-3.4.6                                              /temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/portage/net-fs/samba-                                              3.4.6/temp/environment'.
 * S: '/tmp/portage/portage/net-fs/samba-3.4.6/work/samba-3.4.6/source3'
Comment 1 f1a989188a51186834a821708563800a 2010-05-25 19:34:54 UTC
Created attachment 232907 [details]
emerge info
Comment 2 f1a989188a51186834a821708563800a 2010-05-25 19:35:12 UTC
gentoo ~ # emerge -avq samba
[ebuild   R   ] net-fs/samba-3.4.6  USE="client* pam server smbclient swat* winbind -acl -addns -ads -aio -avahi -caps -cluster -cups -debug -doc -examples -fam -ldap -ldb -netapi -quota -readline -smbsharemodes -syslog"
Comment 3 f1a989188a51186834a821708563800a 2010-05-25 19:35:38 UTC
Created attachment 232909 [details]
samba 3.4.6 build log
Comment 4 Víctor Ostorga (RETIRED) gentoo-dev 2010-05-28 19:36:33 UTC
Your CFLAGS and CXXFLAGS are a bit agressive. Can you sanitize them and test again please?
Comment 5 f1a989188a51186834a821708563800a 2010-05-28 20:16:58 UTC
(In reply to comment #4)
> Your CFLAGS and CXXFLAGS are a bit agressive. Can you sanitize them and test
> again please?
> 

Sure. It will take some time. Please be patient!
Comment 6 f1a989188a51186834a821708563800a 2010-05-28 23:13:13 UTC
(In reply to comment #4)
> Your CFLAGS and CXXFLAGS are a bit agressive. Can you sanitize them and test
> again please?
> 

Same error with sme useflags after these changes:

CFLAGS=""
CXXFLAGS="${CFLAGS}"
##LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"

Looking forward to any idea.
Comment 7 Víctor Ostorga (RETIRED) gentoo-dev 2010-06-03 19:24:17 UTC
The build error happens because the USE flag combination you are using needs netapi USE flag to be activated.

Specifically client USE flag forcibly needs netapi, this affects samba 3.4.6 and 3.4.8, so that restriction has been added to both ebuilds.

Thanks for the report.
Comment 8 f1a989188a51186834a821708563800a 2010-06-04 18:43:43 UTC
(In reply to comment #7)
> The build error happens because the USE flag combination you are using needs
> netapi USE flag to be activated.
> 
> Specifically client USE flag forcibly needs netapi, this affects samba 3.4.6
> and 3.4.8, so that restriction has been added to both ebuilds.
> 
> Thanks for the report.
> 

Checked. Works fine. Thank you so much!