in reply to DBI.c: loadable library and perl binaries are mismatched

What does perl -v show?

But God demonstrates His own love toward us, in that while we were yet sinners, Christ died for us. Romans 5:8 (NASB)

Replies are listed 'Best First'.
Re^2: DBI.c: loadable library and perl binaries are mismatched
by rtwingfield (Acolyte) on May 17, 2016 at 20:31 UTC

    First, thanks for your interest!

    On two different platforms:

    • some Pentium-4:   This is perl 5, version 22, subversion 2 (v5.22.2) built for i386-freebsd-thread-multi-64int
    • Dell 2950:   This is perl 5, version 22, subversion 2 (v5.22.2) built for amd64-freebsd-thread-multi

    . . .from the make install process:
    ===> p5-DBI-1.636 depends on package: perl5>=5.22<5.23 - found

    Can this be some sort of compiler version issue?

      Can this be some sort of compiler version issue?

      Maybe. Perl and XS modules should be compiled with the same compiler.

      But it also may be just a library search path issue. Perhaps you mixed two perl versions that share at least some directories.

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

        Yes, I have read the The Wikipedia article, Perl XS, that states:

        XS is an interface through which a program written in the Perl programming language can call a C or C++ language subroutine. The letters stand for eXternal Subroutine, or xsub, where external means external to Perl, i.e. written in some other language.

        . . .XS modules are not without drawbacks. They are difficult to write and maintain, and they may only be installed if a C compiler and the header files that the Perl interpreter was compiled against are available. Also, new versions of Perl may break binary compatibility; if this happens, all XS modules must be recompiled.

        I did deinstall before reinstalling the FreeBSD "Ports". I expected the same compiler, clang?, to compile and assemble both??? . . .of course, I did not write the makefile.