Re: undefined symbol: mro_meta_init on 5.10.0

"Martin J. Evans" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase.devel
Organization Easysoft Limited
Message-ID <[email protected]>
On 13/02/12 13:08, Tim Bunce wrote:
> On Sun, Feb 05, 2012 at 09:04:23PM +0000, Dave Mitchell wrote:
>>
>> Anyway, attached is the final patch.
>> I've tested it under 5.8.1, 5.8.9, 5.14.2 and 5.15.7, with various
>> permutations of threaded builds.
>
> I've just noticed that DBI 1.617_901 has been failing on perl 5.10.0
> http://matrix.cpantesters.org/?dist=DBI+1.617_901
>
> The issue seems to be "undefined symbol: mro_meta_init" e.g.:
> http://www.cpantesters.org/cpan/report/ba083076-540a-11e1-a48f-e7fb434ae6f1
>
> Any ideas?
>
> Tim.

Same happens for me on 5.10.0:

cc -c   -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"1.618\" -DXS_VERSION=\"1.618\" -fPIC "-I/home/martin/perl5/perlbrew/perls/perl-5.10.0/lib/5.10.0/i686-linux/CORE"  -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter -DDBI_NO_THREADS DBI.c
DBI.xs: In function ‘method_cache_dup’:
DBI.xs:199: warning: format not a string literal and no format arguments
DBI.xs: In function ‘inner_method_lookup’:
DBI.xs:239: warning: implicit declaration of function ‘mro_meta_init’
DBI.xs:239: warning: pointer/integer type mismatch in conditional expression
DBI.xs:259: warning: format not a string literal and no format arguments
DBI.xs:270: warning: pointer/integer type mismatch in conditional expression
DBI.xs: In function ‘_sort_hash_keys’:
DBI.xs:366: warning: format not a string literal and no format arguments
DBI.xs:367: warning: format not a string literal and no format arguments
Running Mkbootstrap for DBI ()
chmod 644 DBI.bs

$ nm -a ./blib/arch/auto/DBI/DBI.so | grep mro_
          U mro_meta_init

So it is definitely undefined.

It seems to come from the following in DBI.xs:

#ifdef HvMROMETA /*introduced in 5.9.5 */
                 + HvMROMETA(stash)->cache_gen
#endif

As far as I got during my lunch.

Martin
-- 
Martin J. Evans
Easysoft Limited
http://www.easysoft.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.