Issue with Samba CVS HEAD configure on Solaris

Kris Van Hees aedil at
Wed Nov 6 01:39:00 GMT 2002

I ran into an issue running the configure script on a Solaris box with the
Sun C compiler (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08 2002/05/09).
Here is what happens (when trying to get a shared library):

The problem is apparantly that the SUNWspro C compiler does not allow the
output file of a compilation to have an arbitrary extension (.po in this case).
With GCC it works perfectly.

During the configure execution, the following message is displayed:

---> START
checking ability to build shared libraries... true
checking linker flags for shared libraries... -G ${CFLAGS}
checking compiler flags for position-independent code... 
checking whether building shared libraries actually works... cc: illegal suffix
of output filename
---> END

The commands that are executed during the test whether building shared
libraries actually works are:

---> START
<install location>/SUNWspro/bin/cc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -g -KPIC -c -o shlib.po ./tests/shlib.c
<install location>/SUNWspro/6.2.0p7/exec/SUNWspro/bin/cc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -g -G -O -g -o shlib.po
---> END

Has anyone else ran into this problem, and is this just an option I overlooked
or is the indeed an issue where configuring and compiling Samba CVS HEAD is not
at all possible with the Sun Workshop C compiler because of the above problem?
I guess it would be possible to simply rewrite the logic for handling shared
libraries to work around this silly issue?


More information about the samba-technical mailing list