2 messages in com.mysql.lists.perlmSQL 2.0.11| From | Sent On | Attachments |
|---|---|---|
| Clifford Meece | 26 Aug 1999 08:00 | |
| Jochen Wiedmann | 27 Aug 1999 01:13 |
| Subject: | mSQL 2.0.11![]() |
|---|---|
| From: | Clifford Meece (cli...@scs.uiuc.edu) |
| Date: | 08/26/1999 08:00:42 AM |
| List: | com.mysql.lists.perl |
I have installed the latest version mSQL, and i tried to install the new version od DBD::msql without success. the compilation fails at:
cc-1515 cc: ERROR File = mSQL.xs, Line = 49 A value of type "int" cannot be assigned to an entity of type "char *".
RETVAL = msqlUnixTimeToDate(clock); ^
cc-1515 cc: ERROR File = mSQL.xs, Line = 58 A value of type "int" cannot be assigned to an entity of type "char *".
RETVAL = msqlUnixTimeToTime(clock); ^
2 errors detected in the compilation of "mSQL.c". *** Error code 2 (bu21) *** Error code 1 (bu21)
looking at msql.h, I see:
/* char * APIENTRY msqlUnixTimeToDate __ANSI_PROTO((time_t)); char * APIENTRY msqlUnixTimeToTime __ANSI_PROTO((time_t)); */ void APIENTRY msqlClose __ANSI_PROTO((int)); void APIENTRY msqlDataSeek __ANSI_PROTO((m_result*, int)); void APIENTRY msqlFieldSeek __ANSI_PROTO((m_result*, int)); void APIENTRY msqlFreeResult __ANSI_PROTO((m_result*)); m_row APIENTRY msqlFetchRow __ANSI_PROTO((m_result*)); m_seq * APIENTRY msqlGetSequenceInfo __ANSI_PROTO((int, char*)); m_field * APIENTRY msqlFetchField __ANSI_PROTO((m_result *)); m_result * APIENTRY msqlListDBs __ANSI_PROTO((int)); m_result * APIENTRY msqlListTables __ANSI_PROTO((int)); m_result * APIENTRY msqlListFields __ANSI_PROTO((int, char*)); m_result * APIENTRY msqlListIndex __ANSI_PROTO((int, char*, char*)); m_result * APIENTRY msqlStoreResult __ANSI_PROTO((void)); time_t APIENTRY msqlDateToUnixTime __ANSI_PROTO((char *)); time_t APIENTRY msqlTimeToUnixTime __ANSI_PROTO((char *));
It looks to me like msqlUnixTimetoDate used to return a char *, but now returns a time_t.
Does anyone have have any solutions? The relaease notes for 2.0.11 say nothing about a change int API. I suppose I could just modify one of the files, but which one. Anyones input would be appreciated.
-- =============================================================== Cliff Meece \\ Phone: (217) 333-1728 Unix Systems Administrator \\ Email: cli...@scs.uiuc.edu School of Chemical Sciences \\ 153 Noyes Lab University of Illinois \\ ===============================================================




