Hi all,

I'm compiling DBD-mysql-2.1020 on a Solaris 2.6 machine with mysql version
4.0.1-alpha-log. Without making any changes to Makefile.PL and Makefile, I
get the following at 'make' time:

cc -c -I/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/DBI
-I'/usr/local/mysql/include/mysql' -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O      -DVERSION=\"2.1020\" 
-DXS_VERSION=\"2.1020\" -KPIC
-I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE  dbdimp.c
"dbdimp.c", line 720: undefined symbol: MYSQL_OPT_LOCAL_INFILE
cc: acomp failed for dbdimp.c
*** Error code 2
make: Fatal error: Command failed for target `dbdimp.o'


Now if I compile DBD-mysql-2.1019, I don't have to make any changes to the
Makefiles
and the module builds nicely. From the Changelog, the difference between
2.1019 and 
2.1020 is:

Added mysql_local_infile option.

As seen from the make output, this appears to be an undefined symbol for
mysql-4.0.1-alpha-log .
>From dbimp.c (DBD-mysql-2.1020):

#if (MYSQL_VERSION_ID >= 32349)
        /*
         * MySQL 3.23.49 disables LOAD DATA LOCAL by default. Use
         * mysql_local_infile=1 in the DSN to enable it.
         */
        if ((svp = hv_fetch(hv, "mysql_local_infile", 18,
                            FALSE))  &&  *svp) {
          unsigned int flag = SvTRUE(*svp);
          if (dbis->debug >= 2)
            PerlIO_printf(DBILOGFP,
                          "imp_dbh->mysql_dr_connect: Using" \
                          " local infile %u.\n", flag);
          mysql_options(sock, MYSQL_OPT_LOCAL_INFILE, (const char *)
&flag);
        }
#endif

Is this a bug?


Regards,

        Stacy Mader.

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to