I have a script to run the config with that I set env variables in.
-----
#!/bin/ksh
export CFLAGS="-I/appl/openldap/include"
export LDFLAGS="-L/appl/openldap/lib -L/apps/gcc-3.3/lib
-R/appl/openldap/lib -R/apps/gcc-3.3/lib"
#export LDFLAGS="-L/appl/openldap/lib -L/apps/gcc-3.3/lib"
export CPPFLAGS=$CFLAGS
./configure --prefix=/appl/samba --with-ldap --with-included-popt
-----------
I added in the -R options for ldflags you suggested, had to leave the -L
ones there or configure aborted saying it couldn't find the ldap libs.
Everything compiles fine but I still have the problem where I can't run the
binaries unless I set LD_LIBRARY_PATH which is a problem for things like
swat.
aragorn% net --version
ld.so.1: ./net: fatal: libgcc_s.so.1: open failed: No such file or directory
Killed
aragorn% setenv LD_LIBRARY_PATH /apps/gcc-3.3/lib:/appl/openldap/lib
aragorn% net --version
Version 3.0.0
Can you think of anything else I might be missing?
Thanks,
Bill
-----Original Message-----
From: Derek T. Yarnell [mailto:derek@cs.umd.edu]
Sent: Sunday, October 26, 2003 4:09 PM
To: Schwartz, William H
Cc: 'samba@lists.samba.org'
Subject: Re: [Samba] Compile Problem with libs
You need to compile with LDFLAGS,
for example if your ldap libs are in /usr/local/openldap/lib you would
type the following, tcsh syntax,
setenv LDFLAGS "$LDFLAGS -R/usr/local/openldap/lib"
What this does is append "-R/usr/local/openldap/lib" to the LDFLAGS
environment variable. Then you need to recompile the whole samba source.
make distclean; ./configure --withyouroptions; make
On Fri, Oct 24, 2003 at 04:35:29PM -0600, Schwartz, William H
wrote:> I'm trying to build samba 3 for Solaris 9 and I'm having trouble
with the
> libraries.
>
>
>
> Everything seems to build fine but when I try to run one of the binaries I
> get:
>
> ld.so.1: /appl/samba/bin/net: fatal: liblber.so.2: open failed: No such
file> or directory
>
>
>
> If I add the path for my ldap and gcc libs to my LD_LIBRARY_PATH
environment> then I can run the commands and they seem fine but I can't figure out
how
to> build them so I don't have to set my environment variables up first.
>
>
>
> I could probably just set these in my samba startup script but that
won't
> help for swat which runs from inetd.conf
>
>
>
> I've tried messing with the --enable-shared and --enable-static flags
for
> the configure script but either I'm not setting those right or
that's not
my> problem.
>
>
>
> Can anyone point me in the right direction?
>
>
>
> thanks,
>
> Bill
>
>
>
>
>
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
--
---
Derek T. Yarnell
University of Maryland
Computer Science Department Unix Staff
derek@cs.umd.edu