[Samba] samba-3.0.22 with Heimdal Kerberos - compilation problem
lshaw at emitinc.com
Mon Jun 26 19:18:23 GMT 2006
On Sat, 24 Jun 2006, Doug VanLeuven wrote:
> Nir Barkan wrote:
>> I'm trying to compile samba-3.0.22 with Heimdal Kerberos on Solaris 8
> When I configure & compile from non -standard libs,
> I explicitly set the paths required.
> Some people like to put it on the command line, but
> I created a shell script to invoke configure with my
> required options and compiler flags. These are commented on
> at the end of output from "./configure --help"
> export LIBS="-L/usr/local/ldap/lib -L/usr/local/lib"
> export CFLAGS="-O2 -L/usr/local/ldap/include -I/usr/local/include"
> export CPPFLAGS="-I/usr/local/ldap/include"
> ./configure \
> (flag1=opt) \
On Solaris, you may want to do a "-R" for every "-L" you do
(if using shared libraries); this will embed the path into the
executable so that you don't have to LD_LIBRARY_PATH nonsense.
To the original person with the problem: if you could post your
compiler command line (the gcc or cc that actually generates
that error message), that might help, since it would be nice to
see what -I arguments and so on that the Makefile is passing it.
Also, by the way,
isn't legal Bourne shell syntax. It works in ksh and bash, but
in sh you need
FOO="bar" ; export FOO
or similar. Of course, on a Linux system /bin/sh often is
something other than straight Bourne shell, but if you're
relying on non-Bourne shell features, you should put #!/bin/bash
Not that it matters a whole heck of a lot in a script that is
designed to wrap "configure", though...
More information about the samba