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

compile failure due to bad sed foo in configure.in (ITS#2764)



Full_Name: Robin Johnson
Version: 2.1.22 and 2.1.21
OS: Gentoo Linux
URL: http://www.orbis-terrarum.net/~robbat2/robbat2-openldap-2.1.22-perlsedfoo-031012.patch
Submission from: (NULL) (24.84.51.71)


configure.in contains this:

        if test x"$ol_with_perl_module" = "xstatic" ; then
            SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e
s/-lc//`"
        else
            MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e
s/-lc//`"
        fi


"perl -MExtUtils::Embed -e ldopts" returns:
-rdynamic  -L/usr/local/lib
/usr/lib/perl5/5.8.1/i686-linux/auto/DynaLoader/DynaLoader.a
-L/usr/lib/perl5/5.8.1/i686-linux/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt
-lutil -lc

running the sed s/-lc// against this fails as it returns:
-rdynamic  -L/usr/local/lib
/usr/lib/perl5/5.8.1/i686-linux/auto/DynaLoader/DynaLoader.a
-L/usr/lib/perl5/5.8.1/i686-linux/CORE -lperl -lpthread -lnsl -ldl -lm rypt
-lutil -lc

Note that the '-lc' part of -lcrypt has been removed making the line invalid and
'-lc' has been left at the end!

Sed expression should be corrected to:
perl -MExtUtils::Embed -e ldopts|sed -e 's/\W-lc\>//g;s/^-lc\>//'
which produces:
-rdynamic  -L/usr/local/lib
/usr/lib/perl5/5.8.1/i686-linux/auto/DynaLoader/DynaLoader.a
-L/usr/lib/perl5/5.8.1/i686-linux/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt
-lutil

I've created a patch for this against 2.1.22, and I tried to send it to your FTP
incoming, but got permission denied.

It is here instead: http://www.orbis-terrarum.net/~robbat2/robbat2-openldap-2.1.22-perlsedfoo-031012.patch