[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Building back-perl -- link errors



I've built it statically with perl 5.6.1, no problems. I think your build
tree is inconsistent, as there would be no perl objects in libbackends.a when
the backend is built as a dynamic module.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Alan Sparks
> Sent: Monday, March 10, 2003 3:56 PM
> To: openldap-software@OpenLDAP.org
> Subject: Building back-perl -- link errors
>
>
> Is it possible to build back-perl with OpenLDAP 2.1.15 or so?  Tried
> building against Perl 5.6.1 (and tried Perl 5.00503), would
> up with the
> following link failure... looks like the make isn;t including the Perl
> libraries.
>
> Building with --enable-perl --with-perl-module=dynamic
>
> gcc -g -I/usr/local/BerkeleyDB/4.1/include -I/usr/local/include
> -I/usr/local/ssl/include -g -o slapd main.o daemon.o connection.o
> search.o filter.o add.o cr.o attr.o entry.o config.o
> backend.o result.o
> operation.o dn.o compare.o modify.o delete.o modrdn.o ch_malloc.o
> value.o ava.o bind.o unbind.o abandon.o filterentry.o phonetic.o acl.o
> str2filter.o aclparse.o init.o user.o repl.o lock.o controls.o
> extended.o kerberos.o passwd.o schema.o schema_check.o schema_init.o
> schema_prep.o schemaparse.o ad.o at.o mr.o syntax.o oc.o saslauthz.o
> oidm.o starttls.o index.o sets.o referral.o root_dse.o sasl.o module.o
> mra.o mods.o limits.o backglue.o operational.o
> matchedValues.o cancel.o
> version.o -pthreads  -L/usr/local/BerkeleyDB/4.1/slib -L/usr/local/lib
> -L/usr/local/ssl/lib libbackends.a ../../libraries/libavl/libavl.a
> ../../libraries/libldbm/libldbm.a
> ../../libraries/liblunicode/liblunicode.a
> ../../libraries/librewrite/librewrite.a
> ../../libraries/libldif/libldif.a ../../libraries/liblutil/liblutil.a
> ../../libraries/libldap_r/.libs/libldap_r.a
> /home/depot/build/openldap-2.1.15/libraries/liblber/.libs/liblber.a
> ../../libraries/liblber/.libs/liblber.a -ldb-4.1 -lssl
> -lcrypto -lresolv
> -lgen -lnsl -lsocket -ldl -lgnuregex -lwrap
>  Undefined
>    first referenced
>  symbol                             in file
> PL_tmps_ix                          libbackends.a(perlinit.o)
> PL_markstack_max                    libbackends.a(perlinit.o)
> Perl_pop_scope                      libbackends.a(perlinit.o)
> Perl_call_method                    libbackends.a(perlinit.o)
> Perl_newXS                          libbackends.a(perlinit.o)
> boot_DynaLoader                     libbackends.a(perlinit.o)
> Perl_sv_2mortal                     libbackends.a(perlmodify.o)
> PL_tmps_floor                       libbackends.a(perlinit.o)
> perl_destruct                       libbackends.a(perlclose.o)
> perl_construct                      libbackends.a(perlinit.o)
> Perl_eval_pv                        libbackends.a(perlconfig.o)
> PL_stack_max                        libbackends.a(perlinit.o)
> Perl_sv_2iv                         libbackends.a(perlinit.o)
> perl_alloc                          libbackends.a(perlinit.o)
> perl_parse                          libbackends.a(perlinit.o)
> perl_free                           libbackends.a(perlclose.o)
> PL_na                               libbackends.a(perlsearch.o)
> Perl_stack_grow                     libbackends.a(perlinit.o)
> PL_stack_sp                         libbackends.a(perlinit.o)
> PL_errgv                            libbackends.a(perlconfig.o)
> Perl_newSVpv                        libbackends.a(perlmodify.o)
> PL_stack_base                       libbackends.a(perlinit.o)
> Perl_newSViv                        libbackends.a(perlmodrdn.o)
> Perl_push_scope                     libbackends.a(perlinit.o)
> Perl_free_tmps                      libbackends.a(perlinit.o)
> perl_run                            libbackends.a(perlinit.o)
> Perl_save_int                       libbackends.a(perlinit.o)
> Perl_newSVsv                        libbackends.a(perlconfig.o)
> Perl_sv_2bool                       libbackends.a(perlconfig.o)
> Perl_croak                          libbackends.a(perlinit.o)
> Perl_markstack_grow                 libbackends.a(perlinit.o)
> PL_markstack_ptr                    libbackends.a(perlinit.o)
> Perl_sv_2pv                         libbackends.a(perlsearch.o)
> ld: fatal: Symbol referencing errors. No output written to slapd
>
>
> ===========
> Alan Sparks, UNIX/Linux Systems Administrator
> <asparks@doublesparks.net>
>
>
>
>