Bug #24263 mysql-connector-net does not compile on Mono 1.2 in Linux

Submitted: 13 Nov 2006 14:07 Modified: 22 Feb 2007 10:44
Reporter: Jan Oravec Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / NET Severity:S2 (Serious)
Version:5.0.x OS:Linux (Linux)
Assigned to: Reggie Burnett CPU Architecture:Any

[13 Nov 2006 14:07] Jan Oravec
Description:
mysql-connector-net-5.0.2 does not compile on Mono 1.2 in Linux. I am using mono 1.2 and nant-0.85. First I have got nant errors about ${nunit.dir} not defined with both mono-1.0 and mono-2.0 targets. Both these targets set nunit-lib property instead of nunit.dir (nunit-lib is being set later in 'client' target). Secondly, mono-2.0 uses some windows-like absolute path for nunit-lib, which is wrong for Linux. I have commented out all nunit portions from Client.build to proceed further, then mono compiler complained about:

1) Namespace for MySql types could not be found - this is because Client.build contains:
<include name="mysqlclient/Types/*.cs"/>
while directory 'types' is with lowercase 't'

2) System.Configuration.Install.dll and System.Windows.Forms.dll references were missing.

3) I had to remove some #if MONO parts from the code as this is already fixed in Mono 1.2

4) mysql-connector-net-5.0.2/mysqlclient/Installer.cs, line 111 contains PerformanceCategory.Create () call with 4 arguments; there is no such function with given property types in Mono, workaround is to remove PerformanceCounterCategoryType.SingleInstance parameter (btw. there is no such enum in Mono)

How to repeat:
Try to compile mysql-connector-net-5.0.2 with Mono 1.2 and nant 0.85 under Linux.
[13 Nov 2006 14:08] Jan Oravec
my patch to fix compilation problems in Linux (also removes nunit tests from Client.build)

Attachment: mysql-connector-net-5.0.2-mono.patch (text/x-patch), 9.42 KiB.

[23 Nov 2006 15:07] Tonci Grgin
Hi Jan and thanks for your problem report. We are aware of this and we're actively working on fix. I'll get someone to look at your proposed patch.
[21 Feb 2007 18:46] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/20307
[21 Feb 2007 18:47] Reggie Burnett
Fixed however the 5.0 tree is not currently coded to work with mono 1.0 and .net 1.0.  We are planning on fixing this in the future.
[22 Feb 2007 10:44] MC Brown
A note has been added to the 5.0.4 changelog.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.