2008/12/21 Rick Houkes <rick.hou...@gmail.com>:
> The new LFS SVN, since the new build methoud was introduced, I was
> able to build under 64-bit. After it was finished, I decided to add
> some software to it, which went fine, until I got to openldap. It uses
> a Perl library as part of its building process, but somehow the
> libraries of that Perl seem not to compile with the -fPIC option and
> that causes openldap to fail (it will exit, saying to recompile the
> specific Perl library with -fPIC).
> I was able to fix be replacing the configure command of SVN 20081219 with:
> CFLAGS="-fPIC" sh Configure -des -Dprefix=/usr \
>                  -Dvendorprefix=/usr           \
>                  -Dman1dir=/usr/share/man/man1 \
>                  -Dman3dir=/usr/share/man/man3 \
>                  -Dpager="/usr/bin/less -isR"
> and then following as normal seems to make openldap build against that 
> library.
> Ohh, and mysql has the same problem. In CBLFS (and maybe BLFS too) you
> need to add -fPIC to the list of C_EXTRA_FLAGS, or a part of KDE4 will
> fail.
>
> Regards,
>
> Rick Houkes
>

The above does not seemed to have helped. Openldaopdid build, but did
install, maybe because -fPIC was forced all round. I gave it another
shot with the following:
CFLAGS="-fPIC" sh Configure -des -Dprefix=/usr \
                  -Dvendorprefix=/usr           \
                  -Dman1dir=/usr/share/man/man1 \
                  -Dman3dir=/usr/share/man/man3 \
                  -Dpager="/usr/bin/less -isR" -Duse64bitall -Dcc="gcc -fPIC"
Which seemed to have workd and made openldap install.

Regards,

Rick Houkes
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to