Hi David, This looks to be a genuine oversight on my part, which has until recently been patched up accidentally by the definition of a macro MIN() in /usr/include/sys/param.h (on Mac OS X 10.10.5 and RHEL 5, for example) — a file which is included indirectly from one or more of the system headers — and presumably MIN is no longer being patched by that file on your system (either because the header isn't included, or because MIN is no longer defined in the header). There's a definition of MIN in decfix.c, but that's no direct help.
In the short term, please add a line: #define MIN(a, b) (((a) < (b))?(a):(b)) near the top of dbdimp.ec — that should allow you to proceed. I will in due course make a new release with that oversight fixed. On Mon, Jan 25, 2016 at 4:34 PM, David Zepp <david.z...@gmail.com> wrote: > Hello, > > > > On compile of dbdimp.ec I get this message. - > > "dbdimp.ec", line 285: warning: implicit function declaration: MIN > > > > Then most all tests fail with following message. - > > install_driver(Informix) failed: Can't load > '/home/dzepp/.cpan/build/DBD-Informix-2015.1101-RpDmke/blib/arch/auto/DBD/Informix/Informix.so' > for module DBD::Informix: > > ld.so.1: perl: fatal: relocation error: file > /home/dzepp/.cpan/build/DBD-Informix-2015.1101-RpDmke/blib/arch/auto/DBD/Informix/Informix.so: > symbol MIN: > > referenced symbol not found at > /usr/perl5/5.22.1/lib/5.22.1/i86pc-solaris/DynaLoader.pm line 193. at (eval > 5) line 3. > > Compilation failed in require at (eval 5) line 3. > > Perhaps a required shared library or dll isn't installed where expected > > > > > > By adding a definition for MIN in dbdimp.ec (I used the define from > decfix.c) I can get it to compile and test successfully. > > > > Just wanted some validation that this is an OK work-around. > > > Also, any ideas as to why my environment won’t compile it cleanly while > others do? Compiling with Solaris Studio 12.3. > > > > Bug report attached. Please let me know if I can submit any other info. > > > > Thanks, > > > > Dave > -- Jonathan Leffler <jonathan.leff...@gmail.com> #include <disclaimer.h> Guardian of DBD::Informix - v2015.1101 - http://dbi.perl.org "Blessed are we who can laugh at ourselves, for we shall never cease to be amused."