[Samba] Problems building Samba 4.x on Solaris 9 and 10 - libintl (again)
Gaiseric Vandal
gaiseric.vandal at gmail.com
Mon Jul 21 14:57:25 MDT 2014
I can't speak to compiling Samba 4.x on solaris I found compiling Samba
3.x was a real chore . The make version is really old. The bundled gcc
(from the companion CD) is really old. The sunfreeware ver of gcc was
built with the Sun provided make, not the sunfreeware make. The
x86_64 version of sunfreeware gcc may compile 32-bit by default.
One option may be to recompile GCC first
I ended up downloading Sun Composer Studio compilers, and using dmake ,
not make. It became a non-issue on Solaris 10 since solaris 10
started providing updated versions of samba. (for a long time they
bundled 3.0.x even when 3.2.x or 3.4.x ws about.) Those versions
should work as members of an AD demand.
Solaris 10 is bundled with MIT kerberos not heimdal. I don't think it
matters for AD clients.
On 07/21/14 14:00, Robert Martel wrote:
> 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
More information about the samba
mailing list