You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Michael Schout <ms...@gkg.net> on 2014/11/06 18:43:06 UTC

Re: Undefined symbol "modperl_io_perlio_restore_stdout"

On 9/14/14 1:08 PM, Bernard T. Higonnet wrote:
> -------------8<---------- Start Bug Report ------------8<----------
> 1. Problem Description:

99% sure what happened is that you didn't patch libtool in the mod_perl
dist.

Libtool misidentifies FreeBSD 10 as FreeBSD 1.x, and therefore thinks it
cannot create shared libraries.  You have to patch libtool and all of
the libtool associated files so that it does not recognize it as FreeBSD
1.x.

You need to patch configure, ltconfig, and ltmain.sh to fix this.

See the patch-libtool rule in your FreeBSD ports tree at:

    Mk/Uses/libtool.mk

for an example of how to patch this.

If you fail to patch libtool, the error below is exactly what you will see:

> /tmp/mod_perl-2.0.8/src/modules/perl/mod_perl.so: Undefined symbol
> "modperl_io_perlio_restore_stdout"

I just ran into this myself a few weeks ago.

Hope it helps.

Its not really mod_perl specific.  Many packages have this problem due
to shipping with libtool that mis-identifies FreeBSD 10.

Regards,
Michael Schout