Bug 5770 - -z text not supported on solaris
-z text not supported on solaris
Product: Samba 3.2
Classification: Unclassified
Component: Build environment
x86 Solaris
: P3 normal
: ---
Assigned To: Michael Adam
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2008-09-17 15:52 UTC by mchugh19@yahoo.com
Modified: 2012-04-20 19:04 UTC (History)
1 user (show)

See Also:

Makefile and config.log (158.31 KB, application/gzip)
2008-10-27 08:34 UTC, mchugh19@yahoo.com
no flags Details
unedited Makefile (20.60 KB, application/gzip)
2008-10-27 08:38 UTC, mchugh19@yahoo.com
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description mchugh19@yahoo.com 2008-09-17 15:52:03 UTC
On samba builds on solaris I've found that I have to remove entries for "-z text" in the Makefile after running configure. I'm not a build tools expert, so I'm not exactly sure what that means, but it allows me to compile samba.
Comment 1 Michael Adam 2008-10-27 07:59:09 UTC
Hi Christian,

Could you please provide more information about your build?
I can't find instances of "-z" in the Makefile on my Solaris machine.

* What Version of Solaris are you running
* What C Compiler are you using
* What is your command line of calling ./configure
* config.log
* Makefile

Cheers - Michael
Comment 2 mchugh19@yahoo.com 2008-10-27 08:31:18 UTC
Here you go:

root@egr214-01:/$ uname -a
SunOS egr214-01 5.10 Generic_120012-14 i86pc i386 i86pc
root@egr214-01:/$ cat /etc/release
                        Solaris 10 8/07 s10x_u4wos_12b X86
           Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 16 August 2007

compiler is gcc from blastwave
and configure line:
export CPPFLAGS='-I/opt/csw/include' ; export LDFLAGS='-L/opt/csw/lib'; 
./configure --prefix=/usr/local/samba --with-shared-modules=idmap_ad,idmap_adex --with-pam --with-ads --with-krb5=/opt/csw

Comment 3 mchugh19@yahoo.com 2008-10-27 08:34:00 UTC
Created attachment 3693 [details]
Makefile and config.log

I've already removed the "-z text" lines from this Makefile. So I'm running ./configure again and will upload when done.
Comment 4 mchugh19@yahoo.com 2008-10-27 08:38:30 UTC
Created attachment 3694 [details]
unedited Makefile
Comment 5 mchugh19@yahoo.com 2009-03-06 16:21:10 UTC
Still have the -z text removal necessity on 3.3.1. Any ideas?
Comment 6 Björn Jacke 2012-04-20 19:04:50 UTC
this works for me with recent samba releases. if it doesn't for you, please reopen with configure log. Thanks!