[Samba] Re: Building Samba 3.2.0 on Solaris with Sun compiler

Douglas E. Engert deengert at anl.gov
Wed Jul 30 14:23:32 GMT 2008

David Eisner wrote:
> On Mon, Jul 28, 2008 at 11:14 AM, David Eisner <deisner at gmail.com> wrote:
>> I've created a bug report:
>>   https://bugzilla.samba.org/show_bug.cgi?id=5639
> Correction: The DSO_EXPORTS_CMD is hardcoded into Makefile.in, but
> DSO_EXPORTS, which is what is used in the make target, comes from
> configure.  If the Solaris ld is found in the PATH before the GNU ld
> at configure time, there won't be any problems because the DSO_EXPORTS
> macro won't be set to the value of DSO_EXPORTS_CMD.
> The linker used is a function of the compiler, not the user's PATH,
> but I'm not sure what the best fix is.  Maybe a --without-gnu-ld
> option ?

Solaris 10 comes with gcc in /usr/sfw/bin

% gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with: /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld 
--enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

The configure could grep for --without-gnu-ld`

> -David


  Douglas E. Engert  <DEEngert at anl.gov>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444

More information about the samba mailing list