[Samba] Problems building Samba 4.x on Solaris 9 and 10 - libintl (again)
Thomas Schulz
schulz at adi.com
Wed Jul 23 08:50:45 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.
I have built Samba 4.1.8 on a Solaris 10 box. It looks like it is using
Sun's libintl. But I have other stuff in odd places. I made a small
script to do the configure. You should be able to do something like it.
Here is what I used:
#! /bin/sh
CFLAGS="-O3 -I/opt/local/include" \
LDFLAGS="-R/opt/local/samba4/lib:/opt/local/samba4/lib/private -L/opt/local/lib" \
./configure configure --prefix=/opt/local/samba4
Note that configure does not correctly set the run path on a Solaris
system, so that is why I had to give it the -R option.
Also, go to bugzilla.samba.org and look at bug 10492 and the last part
of the last comment for bug 10261. Your gcc may not have problems with
that option, but ours sure did.
If you should ever want to compile with Sun's cc compiler, see bug 10315.
Also use no optimization with Sun's cc compiler.
> 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
> *************************************************************************
Tom Schulz
Applied Dynamics Intl.
schulz at adi.com
More information about the samba
mailing list