[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Compiling on Solaris 2.9 with Blastwave GCC
Hi,
I'm trying to compile OpenLDAP 2.1.17 stable on solaris 2.8 using the
compiler/development packages from blastwave.org. I'm continually running
into a linker problem during the build related to liblber.so. The last
few lines of output follow.
gcc -shared assert.lo decode.lo encode.lo io.lo bprint.lo debug.lo
memory.lo options.lo sockbuf.lo stdio.lo version.lo -L/opt/csw/bdb4/lib
-lc -Wl,-soname -Wl,liblber.so.2 -o .libs/liblber.so.2.0.117
ld: warning: option -o appears more than once, first setting taken
ld: fatal: file liblber.so.2: open failed: No such file or directory
ld: fatal: File processing errors. No output written to
.libs/liblber.so.2.0.117
collect2: ld returned 1 exit status
gmake[2]: *** [liblber.la] Error 1
gmake[2]: Leaving directory
`/export/home/buildmgr/src/openldap-2.1.17/libraries/liblber'
gmake[1]: *** [all-common] Error 1
gmake[1]: Leaving directory
`/export/home/buildmgr/src/openldap-2.1.17/libraries'
gmake: *** [all-common] Error 1
The above output occurs when I try to build dynamic libraries. If I
change to building static libraries the build progresses further but then
fails later when ld can't determine the file type for libldbm.a. I can
get past this error by also building ldbm along with bdb, but then I get
an error about an invalid "--" argument to ld during the linking of slapd.
I can get around that by running the link manually from server/slapd and
fixing the invalid --rpath argument to -R. This results in a built slapd.
The basic configure line is as follows.
CFLAGS=-I/opt/csw/bdb4/include CPPFLAGS=-I/opt/csw/bdb4/include
LDFLAGS=-L/opt/csw/bdb4/lib MAKE=gmake ./configure --enable-bdb=yes
--enable-ldap --enable-meta=yes --enable-rewrite --enable-shared=no
--enable-ldbm --with-ldbm-api=berkeley --with-ldbm-module=static
--with-ldbm-type=hash
I'd prefer to build just the ldap and meta backends since this will just
be a metadir. I've included bdb and ldbm because I can't seem to get
through the compile otherwise.
My general question is, are there any known problems with trying to build
openldap 2.1.17 with the Blastwave packages. The GCC version 2.95.3,
could this be a problem?
Thanks,
~jpr