bugtpop3d - Bugs: bug #25885, Error in auth_mysql.c while...

 
 

bug #25885: Error in auth_mysql.c while compile with mysql_client 4.1 version

Submitted by:  None
Submitted on:  Mon 16 Mar 2009 04:27:04 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 16 Mar 2009 04:27:04 PM UTC, original submission:

make gives that:
auth_mysql.c: In function `get_mysql_server':
auth_mysql.c:132: error: `MYSQL_OPT_RECONNECT' undeclared (first use in this function)
auth_mysql.c:132: error: (Each undeclared identifier is reported only once
auth_mysql.c:132: error: for each function it appears in.)

      • Error code 1

Its happends becuse mysql < 5.0.x dont know MYSQL_OPT_RECONNECT option.

So, in auth_mysql.c adding some code near line 132:

#if MYSQL_VERSION_ID >= 50013
/* in mysql versions above 5.0.3 the reconnect flag is off by default */
/* We do not want automatic reconnect to happen. */
mysql_options(mysql, MYSQL_OPT_RECONNECT, &want_reconnect);
#endif

Thanks.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by arekm (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 16 Mar 2009 05:22:30 PM UTCarekmStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1