Bug #49834 InnoDB is not built as a static library
Submitted: 21 Dec 2009 1:00 Modified: 7 Mar 2010 1:23
Reporter: Elena Stepanova Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:mysql-next-mr, mysql-trunk OS:Windows
Assigned to: Vladislav Vaintroub CPU Architecture:Any

[21 Dec 2009 1:00] Elena Stepanova
Description:
After a push of Dec 19, InnoDB is built as a dll, not as a static library:

cscript win/configure.js WITH_INNOBASE_STORAGE_ENGINE WITH_ARCHIVE_STORAGE_ENGINE WITH_BLACKHOLE_STORAGE_ENGINE WITH_FEDERATED_STORAGE_ENGINE __NT__ WITH_FALCON_STORAGE_ENGINE WITH_MARIA_STORAGE_ENGINE WITH_PARTITION_STORAGE_ENGINE
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

done!

cmake -G "Visual Studio 9 2008"
...
build ARCHIVE as static library
build BLACKHOLE as static library
build CSV as static library
build FEDERATED as static library
build HEAP as static library
build MYISAM as static library
build MYISAMMRG as static library
build EXAMPLE as DLL
build INNOBASE as DLL
build SEMISYNC as DLL

How to repeat:
See recent build logs

Suggested fix:
There was bug#48317 not long ago, it was fixed and closed, but now the problem re-appeared again.
bug#49502 might be related (?)
[21 Dec 2009 11:32] MySQL Verification Team
Thank you for the bug report. Verified with VS2005.

C:\build\mysql-next-mr-build>win\configure WITH_INNOBASE_STORAGE_ENGINE WITH_MARIA_STORAGE_ENGINE WITH_PARTITION_STORAGE_ENGINE WITH_ARC
HIVE_STORAGE_ENGINE WITH_BLACKHOLE_STORAGE_ENGINE WITH_EXAMPLE_STORAGE_ENGINE WITH_FEDERATED_STORAGE_ENGINE WITH_FALCON_STORAGE_ENGINE W
ITH_INNOBASE_STORAGE_ENGINE __NT__ MYSQL_SERVER_SUFFIX=-"Win X64"

C:\build\mysql-next-mr-build>win\build-vs8_x64.bat
The system cannot find the file specified.
-- Check for working C compiler: cl
-- Check for working C compiler: cl -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: cl
-- Check for working CXX compiler: cl -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detected 64-bit platform.
build ARCHIVE as static library
build BLACKHOLE as static library
build CSV as static library
build FEDERATED as static library
build HEAP as static library
build MYISAM as static library
build MYISAMMRG as static library
build EXAMPLE as DLL
build INNOBASE as DLL
build SEMISYNC as DLL
-- Configuring done
-- Generating done
-- Build files have been written to: C:/build/mysql-next-mr-build
        1 file(s) copied.

C:\build\mysql-next-mr-build>dir storage\innobase\debug\ha_innodb.dll
 Volume in drive C has no label.
 Volume Serial Number is 8A47-BA29

 Directory of C:\build\mysql-next-mr-build\storage\innobase\debug

21/12/2009  09:27         2.736.640 ha_innodb.dll
               1 File(s)      2.736.640 bytes
               0 Dir(s)  361.775.726.592 bytes free
[21 Dec 2009 14:59] 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/95265

2944 Vladislav Vaintroub	2009-12-21
      Bug#49834 - fixed a bug introduced by mismerge.
      Remove version checks and 2 incompatible MYSQL_STORAGE_ENGINE()
      Currently, a single CMakeLists.txt cannot have more that 1 MYSQL_STORAGE_ENGINE()
      with different engines, due to Bug#47705
[22 Dec 2009 11:54] 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/95353

2944 Vladislav Vaintroub	2009-12-22
      Bug#49834 - fixed a bug introduced by mismerge.
      restore original innobase version
[23 Dec 2009 10:47] Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20091223104542-9g0eus1hyhb6n4xi) (version source revid:vvaintroub@mysql.com-20091222205814-t2ci74meapnhmtn6) (merge vers: 6.0.14-alpha) (pib:15)
[23 Dec 2009 12:04] 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/95502

2930 Alexander Nozdrin	2009-12-23
      Backporting fix for Bug#49834 from mysql-next-mr-bugfixing
      into mysql-trunk-bugfixing.
      
      Original revision:
      ------------------------------------------------------------
      revision-id: vvaintroub@mysql.com-20091222115311-bam0xorumd8gvjyo
      parent: mattias.jonsson@sun.com-20091221104426-x2e6c93x8iik4fo0
      committer: Vladislav Vaintroub <vvaintroub@mysql.com>
      branch nick: mysql-next-mr-bugfixing
      timestamp: Tue 2009-12-22 12:53:11 +0100
      message:
        Bug#49834 - fixed a bug introduced by mismerge.
        restore original innobase version
      ------------------------------------------------------------
[7 Jan 2010 16:42] Paul DuBois
No changelog entry needed. This bug did not appear in any released version.
[15 Jan 2010 0:25] Bugs System
Pushed into 5.5.2-m2 (revid:build@mysql.com-20100115001040-7nxzvnnng1c1qhep) (version source revid:build@mysql.com-20100115001040-7nxzvnnng1c1qhep) (merge vers: 5.5.2-m2) (pib:16)
[5 Feb 2010 11:46] Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100204063540-9czpdmpixi3iw2yb) (version source revid:alik@sun.com-20100119163614-172adculixyu26j5) (pib:16)
[5 Feb 2010 11:52] Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20100205113942-oqovjy0eoqbarn7i) (version source revid:alfranio.correia@sun.com-20100121210527-rbuheu5rnsmcakh1) (merge vers: 5.5.99-m3) (pib:16)
[6 Mar 2010 10:51] Bugs System
Pushed into 5.5.3-m3 (revid:alik@sun.com-20100306103849-hha31z2enhh7jwt3) (version source revid:vvaintroub@mysql.com-20091224155652-82yjsw37akt6de4i) (merge vers: 5.5.99) (pib:16)