[Samba] Problems building Samba 4.x on Solaris 9 and 10 - libintl (again)

Robert Martel r.martel at csuohio.edu
Mon Jul 21 12:00:56 MDT 2014


Greetings,

Trying to get current, but having problems building samba 4.x on Solaris 
9/10.

I've Been trying to build either samba 4.0.19 or 4.1.9 on Sparc boxes 
running both Solaris 9 and Solaris 10.  I am using gcc 3.4.6 from the 
old www.sunfreeware.com site.  I also have libintl 3.4.0 from them as well.

My machines are domain member servers in an Active Directory environment 
run by folks that are not keen on Samba - yay for me.  Currently running 
Samba 3.6.24 and one box still on 3.5.8.

I have had issues in the past with Samba 3.5 and 3.6 building and have 
had to add "-lintl" to the Makefile by hand in several locations in 
order to get Samba to build.  With samba 4's new build system my old 
tricks no longer work.


With 4.x I am again seeing problems centered on libintl.  I see either 
of the following errors upon running make:


[3326/3808] Linking default/source4/heimdal_build/samba4kinit
Undefined			first referenced
  symbol  			    in file
libintl_gettext 
default/source4/heimdal/kuser/kinit_138.o
libintl_textdomain 
default/source4/heimdal/kuser/kinit_138.o
libintl_bindtextdomain 
default/source4/heimdal/kuser/kinit_138.o
libintl_dgettext 
default/source4/heimdal_build/libkrb5-samba4.so
ld: fatal: Symbol referencing errors. No output written to 
/usr/local/src/samba-4.1.9/bin/default/source4/heimdal_build/samba4kinit
collect2: ld returned 1 exit status
Waf: Leaving directory `/usr/local/src/samba-4.1.9/bin'
Build failed:  -> task failed (err #1):
	{task: cc_link print_version_133.o,version_133.o,kinit_138.o -> 
samba4kinit}
make: *** [all] Error 1


If I re-run configure adding "--without-ad-dc --without-gettext" I see 
the following:

[1698/3357] Compiling source4/heimdal/lib/krb5/log.c
In file included from /usr/include/locale.h:50,
                  from ../lib/replace/system/locale.h:35,
                  from ../source4/heimdal_build/vis.h:4,
                  from ../source4/heimdal/lib/krb5/log.c:37:
/usr/local/include/libintl.h:279: error: syntax error before "asm"
Waf: Leaving directory `/usr/local/src/samba-4.0.19/bin'
Build failed:  -> task failed (err #1):
	{task: cc log.c -> log_57.o}
make: *** [all] Error 1


Would anyone that has built current versions of Samba on Solaris/Sparc 
have any guidance to offer?

Thank you
-- 
*************************************************************************
Robert M. Martel              They think it will make their lives easier
System Administrator           For God knows up till now it's been hard
Levin College of Urban Affairs But the game never ends
Cleveland State University     When your whole world depends
(216) 687-2214                 On the turn of a friendly card.
r.martel at csuohio.edu
*************************************************************************


More information about the samba mailing list