| View previous topic :: View next topic |
| Author |
Message |
teqdruid n00b

Joined: 02 Oct 2004 Posts: 7
|
Posted: Mon Aug 22, 2005 11:34 pm Post subject: [Solved] Samba Won't Build |
|
|
What's with this samba build error? Happens with multiple versions of samba.
| Code: | Building plugin bin/CP437.so
PYTHON_OBJS="dynconfig.po param/loadparm.po param/params.po lib/version.po lib/charcnv.po lib/debug.po lib/fault.po lib/getsmbpass.po lib/interface.po lib/md4.po lib/interfaces.po lib/pidfile.po lib/replace.po lib/replace1.po lib/signal.po lib/system.po lib/sendfile.po lib/time.po lib/ufc.po lib/genrand.po lib/username.po lib/util_getent.po lib/util_pw.po lib/access.po lib/smbrun.po lib/bitmap.po lib/crc32.po lib/snprintf.po lib/dprintf.po lib/xfile.po lib/wins_srv.po lib/util_str.po lib/clobber.po lib/util_sid.po lib/util_uuid.po lib/util_unistr.po lib/util_file.po lib/data_blob.po lib/util.po lib/util_sock.po lib/sock_exec.po lib/util_sec.po lib/talloc.po lib/substitute.po lib/fsusage.po lib/ms_fnmatch.po lib/select.po lib/messages.po lib/tallocmsg.po lib/dmallocmsg.po libsmb/smb_signing.po lib/md5.po lib/hmacmd5.po lib/iconv.po nsswitch/wb_client.po nsswitch/wb_common.po lib/pam_errors.po intl/lang_tdb.po lib/account_pol.po lib/adt_tree.po lib/gencache.po tdb/tdb.po tdb/spinlock.po tdb/tdbutil.po tdb/tdbback.po lib/module.po lib/ldap_escape.po lib/privileges.po lib/secdesc.po lib/secace.po lib/secacl.po lib/dummyroot.po lib/dummysmbd.po libsmb/clientgen.po libsmb/cliconnect.po libsmb/clifile.po libsmb/clikrb5.po libsmb/clispnego.po libsmb/asn1.po libsmb/clirap.po libsmb/clierror.po libsmb/climessage.po libsmb/clireadwrite.po libsmb/clilist.po libsmb/cliprint.po libsmb/clitrans.po libsmb/clisecdesc.po libsmb/clidgram.po libsmb/clistr.po lib/util_seaccess.po libsmb/cliquota.po libsmb/clifsinfo.po libsmb/clidfs.po libsmb/smberr.po libsmb/credentials.po libsmb/pwd_cache.po libsmb/clioplock.po libsmb/errormap.po libsmb/clirap2.po libsmb/doserr.po rpc_parse/parse_prs.po rpc_parse/parse_misc.po rpc_parse/parse_sec.po libsmb/nterr.po libsmb/smbdes.po libsmb/smbencrypt.po libsmb/ntlm_check.po libsmb/ntlmssp.po libsmb/ntlmssp_parse.po libsmb/ntlmssp_sign.po libsmb/unexpected.po libsmb/namecache.po libsmb/nmblib.po libsmb/namequery.po libsmb/conncache.po rpc_parse/parse_lsa.po rpc_parse/parse_net.po rpc_parse/parse_reg.po rpc_parse/parse_rpc.po rpc_parse/parse_samr.po rpc_parse/parse_srv.po rpc_parse/parse_wks.po rpc_parse/parse_ds.po rpc_parse/parse_spoolss.po rpc_parse/parse_dfs.po rpc_parse/parse_echo.po rpc_parse/parse_shutdown.po registry/reg_objects.po rpc_client/cli_lsarpc.po rpc_client/cli_samr.po rpc_client/cli_netlogon.po rpc_client/cli_srvsvc.po rpc_client/cli_wkssvc.po rpc_client/cli_dfs.po rpc_client/cli_reg.po rpc_client/cli_pipe.po rpc_client/cli_spoolss.po rpc_client/cli_spoolss_notify.po rpc_client/cli_ds.po rpc_client/cli_echo.po rpc_client/cli_shutdown.po passdb/pdb_get_set.po passdb/passdb.po passdb/pdb_interface.po passdb/util_sam_sid.po passdb/pdb_compat.po passdb/lookup_sid.po passdb/login_cache.po passdb/pdb_ldap.po passdb/pdb_nds.po passdb/pdb_smbpasswd.po passdb/pdb_tdb.po passdb/pdb_guest.po passdb/pdb_sql.po lib/system_smbd.po groupdb/mapping.po passdb/secrets.po passdb/machine_sid.po libads/kerberos.po libads/ads_status.po lib/smbldap.po" \
PYTHON_CFLAGS="-I/usr/include/heimdal -march=athlon-xp -O3 -pipe -fomit-frame-pointer -m3dnow -msse -mmmx -I/usr/include/mysql -mcpu=i686 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -DUSE_OLD_FUNCTIONS -I/usr/include/libxml2 -I/usr/include/heimdal -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/usr/include/heimdal -march=athlon-xp -O3 -pipe -fomit-frame-pointer -m3dnow -msse -mmmx -I/usr/include/mysql -mcpu=i686 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -DUSE_OLD_FUNCTIONS -I/usr/include/libxml2 -Iinclude -I/var/tmp/portage/samba-3.0.14a-r2/work/samba-3.0.14a/source/include -I/var/tmp/portage/samba-3.0.14a-r2/work/samba-3.0.14a/source/ubiqx -I/var/tmp/portage/samba-3.0.14a-r2/work/samba-3.0.14a/source/smbwrapper -I. -I/usr/include/heimdal -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/var/tmp/portage/samba-3.0.14a-r2/work/samba-3.0.14a/source " \
LIBS="-Wl,-rpath,/usr/lib -lcrypt -lresolv -lnsl -ldl -lldap -llber -L/usr/lib -L/usr/lib -lgssapi -lkrb5 -lasn1 -lcom_err -lcrypto -lroken -lcrypt -lresolv -pthread -lldap -llber " \
python python/setup.py build
Unknown entry '-pthread' in $LIBS variable passed to setup.py
make: *** [python_ext] Error 1
make: *** Waiting for unfinished jobs....
!!! ERROR: net-fs/samba-3.0.14a-r2 failed.
!!! Function src_compile, Line 118, Exitcode 2
!!! SAMBA make everything error
!!! If you need support, post the topmost build error, NOT this status message.
|
| Code: | speedo portage # emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.5-r1, 2.6.12-gentoo-r6CADCode i686)
=================================================================
System uname: 2.6.12-gentoo-r6CADCode i686 AMD Athlon(tm) XP
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python: 2.3.5
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils: 2.15.92.0.2-r10
sys-devel/libtool: 1.5.18-r1
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -m3dnow -msse -mmmx"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -m3dnow -msse -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X acl acpi aim alsa apache2 apm arts asterisk avi bash-completion berkdb bitmap-fonts bri bzip2 caps cpdflib crypt cups dbus dio eds emacs emboss encode esd ethereal fam florz foomaticdb fortran gdbm geoip ggi gif gmp gnome gpm gstreamer gtk gtk2 hal imagemagick imap imlib iodbc ipv6 ithreads jabber java javascript jikes jpeg kde kerberos ldap libg++ libgda libwww lm_sensors mad maildir memlimit mikmod mime mmap mmx mng motif mp3 mpeg mysql nas ncurses netboot nls ogg oggvorbis opengl oss pam pcntl pcre pdflib perl php png posix postgres postgresql pri python qt quicktime readline resperl rtc samba sasl sdl slang snmp soap sockets socks5 sox speex spell sse ssl svg tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis wddx wmf x86 xml2 xmlrpc xmms xsl xtruetype xv zaptel zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
|
I suspect it's related to kerberos and heimdal, or possibly openldap since I was playing with that before this stopped working.
Any suggestions? Please?
Last edited by teqdruid on Tue Aug 23, 2005 1:34 pm; edited 1 time in total |
|
| Back to top |
|
 |
fctk Veteran

Joined: 28 Jan 2004 Posts: 1424 Location: Milan, Italy, EU
|
|
| Back to top |
|
 |
chtephan Apprentice


Joined: 03 Feb 2004 Posts: 266 Location: Offenburg, Germany
|
Posted: Tue Aug 23, 2005 1:08 pm Post subject: |
|
|
Samba fails if krb5-config tells it to use -pthread on the command line. Used by heimdal.
Edit /usr/bin/krb5-config and replace the occurence of -pthread with -lpthread and then it will build.
It's a hack though, somebody should fix samba. |
|
| Back to top |
|
 |
teqdruid n00b

Joined: 02 Oct 2004 Posts: 7
|
Posted: Tue Aug 23, 2005 1:33 pm Post subject: |
|
|
| Great. Thanks. I will report the bug. I wasn't sure whether or not it was operator error. |
|
| Back to top |
|
 |
satya Retired Dev


Joined: 14 Sep 2004 Posts: 8
|
Posted: Wed Aug 24, 2005 8:59 am Post subject: |
|
|
The '-pthread' instead of '-lphtread' is a syntax error in LIBS variable passing standard. The error will occur for every package you try to link to: it's not a samba flaw.
https://bugs.gentoo.org/show_bug.cgi?id=103447 (bug addressing this issue) _________________ Unanswered questions |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|