Bug #42411 Connector/NET 5.2 does not build from source code on Linux Ubuntu
Submitted: 28 Jan 2009 10:41 Modified: 4 Aug 2009 9:27
Reporter: Tony Bedford Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / NET Severity:S2 (Serious)
Version:5.2 OS:Linux (Ubuntu 8.04)
Assigned to: Reggie Burnett CPU Architecture:Any
Tags: Linux Connector/NET Mono Building from source

[28 Jan 2009 10:41] Tony Bedford
Description:
An error occurs when building the Connector/NET from source code checked out from the public SVN repository on Linux using Mono and Nant.

Mono JIT compiler version is 1.2.6.0
Nant version is 0.85

When attempting to build (for example) the C/NET 5.2 branch from source code checked from SVN using the command:

$ nant -buildfile:Client.build

The following error occurs:

BUILD FAILED

Error loading buildfile.
Encoding name 'Windows-1252' not supported.
Parameter name: name

How to repeat:
1. Checkout source code from public SVN repository:

svn co http://svn.mysql.com/svnpublic/connector-net connector-net

2. Attempt to build the Connector:

$ nant -buildfile:Client.build
[28 Jan 2009 10:47] Tonci Grgin
Hi Tony.

As we discussed on IRC, this could be a bug in encoding:
  "Encoding name 'Windows-1252' not supported."

I will set this to verified and see what Reggie has to say. We do miss building instructions for Linux and he might help with his comments.
[29 Jan 2009 23:26] Patrick Griffiths
Using the source tarball for Connector/NET 5.2.5 from the web site. 

The source layout has changed, but Client.build has not been updated to reflect the new layout. That's why it won't build. The VS2005 project is also broken for the same reason.

I'm using mono built from the latest tarball source releases. With some tweaking and code changes monodevelop will build MySQLClient.sln. Haven't tried running the test yet.

HTH.
[30 Jan 2009 7:00] Tonci Grgin
Tony, please proceed with testing as described in Bug#33938 and see if it helps.
[30 Jan 2009 10:10] Tony Bedford
It helps. At least it breaks differently now :)

I get:

Property evaluation failed.
Expression: ${nunit2.dir}
Property nunit2.dir has not been set.

But it seems to have solved the 1252 problem!
[30 Jan 2009 10:36] Tonci Grgin
Still verified then but more likely problem is what Patrick reported. Thanks.
[31 Jul 2009 22:40] 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/79818
[31 Jul 2009 22:43] 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/79820
[31 Jul 2009 22:46] Reggie Burnett
fixed in 5.2.8, 6.0.5, and 6.1.1
[31 Jul 2009 22:52] 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/79827
[4 Aug 2009 9:27] Tony Bedford
An entry was added to each of the 5.2.8, 6.0.5 and 6.1.1 changelogs:

An error occurred when building MySQL Connector/NET from source code checked out from the public SVN repository. This happened on Linux using Mono and Nant. The Mono JIT compiler version was 1.2.6.0. The Nant version was 0.85.

When an attempt was made to build (for example) the MySQL Connector/NET 5.2 branch using the command:

$ nant -buildfile:Client.build

The following error occurred:

BUILD FAILED

Error loading buildfile.
Encoding name 'Windows-1252' not supported.
Parameter name: name