* Re: 1.18 mysql+perl+dbi+dbd::mysql
2003-01-13 3:30 1.18 mysql+perl+dbi+dbd::mysql Nikolayev Dmitry
@ 2003-01-13 3:30 ` Gerrit P. Haase
2003-01-13 7:37 ` Nikolayev Dmitry
0 siblings, 1 reply; 5+ messages in thread
From: Gerrit P. Haase @ 2003-01-13 3:30 UTC (permalink / raw)
To: Nikolayev Dmitry; +Cc: cygwin
Hallo Nikolayev,
Am Sonntag, 12. Januar 2003 um 07:28 schriebst du:
> I have installed cygwin 1.18, perl 5.6, DBI 1.30, mysql for windows 3.23.54
> But when I tryied to install DBD::mysql, I got some errors with compiling:
> dbdimp.c:632: `MYSQL_OPT_COMPRESS' undeclared (first use in this function)
> dbdimp.c:632: (Each undeclared identifier is reported only once
> dbdimp.c:632: for each function it appears in.)
> dbdimp.c:641: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this
> function
> )
> dbdimp.c:652: `MYSQL_READ_DEFAULT_FILE' undeclared (first use in this
> function)
> dbdimp.c:662: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this
> function)
> dbdimp.c:729: warning: passing arg 5 of `mysql_real_connect' makes integer
> from
> pointer without a cast
> dbdimp.c:729: warning: passing arg 6 of `mysql_real_connect' makes pointer
> from
> integer without a cast
> dbdimp.c:729: warning: passing arg 7 of `mysql_real_connect' makes integer
> from
> pointer without a cast
> dbdimp.c:729: too many arguments to function `mysql_real_connect'
> dbdimp.c: At top level:
> dbdimp.c:1117: parse error before "val"
> dbdimp.c: In function `my_ulonglong2str':
> dbdimp.c:1118: `val' undeclared (first use in this function)
> dbdimp.c: In function `mysql_st_fetch':
> dbdimp.c:1523: warning: assignment from incompatible pointer type
> make: *** [dbdimp.o] Error 1
> Did anybody installed DBD::mysql? Or where can I read any information about
> installing cygwin + mysql?
You need to create an importlibrary from libmysqlclient for cygwin and
link against it to build the Cygwin Perl based module.
Gerrit
--
=^..^=
^ permalink raw reply [flat|nested] 5+ messages in thread
* 1.18 mysql+perl+dbi+dbd::mysql
@ 2003-01-13 3:30 Nikolayev Dmitry
2003-01-13 3:30 ` Gerrit P. Haase
0 siblings, 1 reply; 5+ messages in thread
From: Nikolayev Dmitry @ 2003-01-13 3:30 UTC (permalink / raw)
To: cygwin
I have installed cygwin 1.18, perl 5.6, DBI 1.30, mysql for windows 3.23.54
But when I tryied to install DBD::mysql, I got some errors with compiling:
dbdimp.c:632: `MYSQL_OPT_COMPRESS' undeclared (first use in this function)
dbdimp.c:632: (Each undeclared identifier is reported only once
dbdimp.c:632: for each function it appears in.)
dbdimp.c:641: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this
function
)
dbdimp.c:652: `MYSQL_READ_DEFAULT_FILE' undeclared (first use in this
function)
dbdimp.c:662: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this
function)
dbdimp.c:729: warning: passing arg 5 of `mysql_real_connect' makes integer
from
pointer without a cast
dbdimp.c:729: warning: passing arg 6 of `mysql_real_connect' makes pointer
from
integer without a cast
dbdimp.c:729: warning: passing arg 7 of `mysql_real_connect' makes integer
from
pointer without a cast
dbdimp.c:729: too many arguments to function `mysql_real_connect'
dbdimp.c: At top level:
dbdimp.c:1117: parse error before "val"
dbdimp.c: In function `my_ulonglong2str':
dbdimp.c:1118: `val' undeclared (first use in this function)
dbdimp.c: In function `mysql_st_fetch':
dbdimp.c:1523: warning: assignment from incompatible pointer type
make: *** [dbdimp.o] Error 1
Did anybody installed DBD::mysql? Or where can I read any information about
installing cygwin + mysql?
Nikolayev Dmitry
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 1.18 mysql+perl+dbi+dbd::mysql
2003-01-13 3:30 ` Gerrit P. Haase
@ 2003-01-13 7:37 ` Nikolayev Dmitry
2003-01-13 8:42 ` Larry Hall (RFK Partners, Inc)
2003-01-13 12:59 ` Gerrit P. Haase
0 siblings, 2 replies; 5+ messages in thread
From: Nikolayev Dmitry @ 2003-01-13 7:37 UTC (permalink / raw)
To: Gerrit P. Haase; +Cc: cygwin
Sorry, but I'm newbie, how can I do this?
> You need to create an importlibrary from libmysqlclient for cygwin and
> link against it to build the Cygwin Perl based module.
----- Original Message -----
From: "Gerrit P. Haase" <gp@familiehaase.de>
To: "Nikolayev Dmitry" <nick@buildbn.net>
Cc: <cygwin@cygwin.com>
Sent: Sunday, January 12, 2003 2:52 PM
Subject: Re: 1.18 mysql+perl+dbi+dbd::mysql
> Hallo Nikolayev,
>
> Am Sonntag, 12. Januar 2003 um 07:28 schriebst du:
>
> > I have installed cygwin 1.18, perl 5.6, DBI 1.30, mysql for windows
3.23.54
> > But when I tryied to install DBD::mysql, I got some errors with
compiling:
>
> > dbdimp.c:632: `MYSQL_OPT_COMPRESS' undeclared (first use in this
function)
> > dbdimp.c:632: (Each undeclared identifier is reported only once
> > dbdimp.c:632: for each function it appears in.)
> > dbdimp.c:641: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this
> > function
> > )
> > dbdimp.c:652: `MYSQL_READ_DEFAULT_FILE' undeclared (first use in this
> > function)
> > dbdimp.c:662: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this
> > function)
>
> > dbdimp.c:729: warning: passing arg 5 of `mysql_real_connect' makes
integer
> > from
> > pointer without a cast
> > dbdimp.c:729: warning: passing arg 6 of `mysql_real_connect' makes
pointer
> > from
> > integer without a cast
> > dbdimp.c:729: warning: passing arg 7 of `mysql_real_connect' makes
integer
> > from
> > pointer without a cast
> > dbdimp.c:729: too many arguments to function `mysql_real_connect'
> > dbdimp.c: At top level:
> > dbdimp.c:1117: parse error before "val"
> > dbdimp.c: In function `my_ulonglong2str':
> > dbdimp.c:1118: `val' undeclared (first use in this function)
> > dbdimp.c: In function `mysql_st_fetch':
> > dbdimp.c:1523: warning: assignment from incompatible pointer type
> > make: *** [dbdimp.o] Error 1
>
> > Did anybody installed DBD::mysql? Or where can I read any information
about
> > installing cygwin + mysql?
>
>
> You need to create an importlibrary from libmysqlclient for cygwin and
> link against it to build the Cygwin Perl based module.
>
>
> Gerrit
> --
> =^..^=
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 1.18 mysql+perl+dbi+dbd::mysql
2003-01-13 7:37 ` Nikolayev Dmitry
@ 2003-01-13 8:42 ` Larry Hall (RFK Partners, Inc)
2003-01-13 12:59 ` Gerrit P. Haase
1 sibling, 0 replies; 5+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2003-01-13 8:42 UTC (permalink / raw)
To: Nikolayev Dmitry; +Cc: cygwin
Check out the User's Guide for this type of information.
http://cygwin.com/cygwin-ug-net/dll.html#DLL-LINK
The User's Guide is a worthwhile read in general for any newbie.
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
838 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
At 11:29 PM 1/12/2003, Nikolayev Dmitry wrote:
>Sorry, but I'm newbie, how can I do this?
>
> > You need to create an importlibrary from libmysqlclient for cygwin and
> > link against it to build the Cygwin Perl based module.
>
>
>----- Original Message -----
>From: "Gerrit P. Haase" <gp@familiehaase.de>
>To: "Nikolayev Dmitry" <nick@buildbn.net>
>Cc: <cygwin@cygwin.com>
>Sent: Sunday, January 12, 2003 2:52 PM
>Subject: Re: 1.18 mysql+perl+dbi+dbd::mysql
>
>
> > Hallo Nikolayev,
> >
> > Am Sonntag, 12. Januar 2003 um 07:28 schriebst du:
> >
> > > I have installed cygwin 1.18, perl 5.6, DBI 1.30, mysql for windows
>3.23.54
> > > But when I tryied to install DBD::mysql, I got some errors with
>compiling:
> >
> > > dbdimp.c:632: `MYSQL_OPT_COMPRESS' undeclared (first use in this
>function)
> > > dbdimp.c:632: (Each undeclared identifier is reported only once
> > > dbdimp.c:632: for each function it appears in.)
> > > dbdimp.c:641: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this
> > > function
> > > )
> > > dbdimp.c:652: `MYSQL_READ_DEFAULT_FILE' undeclared (first use in this
> > > function)
> > > dbdimp.c:662: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this
> > > function)
> >
> > > dbdimp.c:729: warning: passing arg 5 of `mysql_real_connect' makes
>integer
> > > from
> > > pointer without a cast
> > > dbdimp.c:729: warning: passing arg 6 of `mysql_real_connect' makes
>pointer
> > > from
> > > integer without a cast
> > > dbdimp.c:729: warning: passing arg 7 of `mysql_real_connect' makes
>integer
> > > from
> > > pointer without a cast
> > > dbdimp.c:729: too many arguments to function `mysql_real_connect'
> > > dbdimp.c: At top level:
> > > dbdimp.c:1117: parse error before "val"
> > > dbdimp.c: In function `my_ulonglong2str':
> > > dbdimp.c:1118: `val' undeclared (first use in this function)
> > > dbdimp.c: In function `mysql_st_fetch':
> > > dbdimp.c:1523: warning: assignment from incompatible pointer type
> > > make: *** [dbdimp.o] Error 1
> >
> > > Did anybody installed DBD::mysql? Or where can I read any information
>about
> > > installing cygwin + mysql?
> >
> >
> > You need to create an importlibrary from libmysqlclient for cygwin and
> > link against it to build the Cygwin Perl based module.
> >
> >
> > Gerrit
> > --
> > =^..^=
> >
> >
> > --
> > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> > Bug reporting: http://cygwin.com/bugs.html
> > Documentation: http://cygwin.com/docs.html
> > FAQ: http://cygwin.com/faq/
> >
> >
>
>
>--
>Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting: http://cygwin.com/bugs.html
>Documentation: http://cygwin.com/docs.html
>FAQ: http://cygwin.com/faq/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 1.18 mysql+perl+dbi+dbd::mysql
2003-01-13 7:37 ` Nikolayev Dmitry
2003-01-13 8:42 ` Larry Hall (RFK Partners, Inc)
@ 2003-01-13 12:59 ` Gerrit P. Haase
1 sibling, 0 replies; 5+ messages in thread
From: Gerrit P. Haase @ 2003-01-13 12:59 UTC (permalink / raw)
To: Nikolayev Dmitry; +Cc: cygwin
Hallo Nikolayev,
Am Montag, 13. Januar 2003 um 05:29 schriebst du:
> Sorry, but I'm newbie, how can I do this?
>> You need to create an importlibrary from libmysqlclient for cygwin and
>> link against it to build the Cygwin Perl based module.
I create a .def file with impgen which comes with libtool and then
create the .a importlib with dlltool:
1.
/bin/impgen ${DLLNAME}.dll >${DLLNAME}.def
2.
dlltool --as=as --dllname ${DLLNAME}.dll --def ${DLLNAME}.def --output-lib ${DLLNAME}.a
You can fetch a binary of impgen here:
http://koeln.convey.de/cywgin/impgen/impgen.zip
Some more words:
http://koeln.convey.de/cywgin/impgen/cygextract.README
Gerrit
--
=^..^=
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-01-13 6:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-13 3:30 1.18 mysql+perl+dbi+dbd::mysql Nikolayev Dmitry
2003-01-13 3:30 ` Gerrit P. Haase
2003-01-13 7:37 ` Nikolayev Dmitry
2003-01-13 8:42 ` Larry Hall (RFK Partners, Inc)
2003-01-13 12:59 ` Gerrit P. Haase
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).