Bug #29688 example.lib not in linker path
Submitted: 10 Jul 2007 11:22 Modified: 4 Jan 2008 12:40
Reporter: Tonci Grgin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.0.46BK OS:Windows (XP Pro SP2)
Assigned to: Daniel Fischer CPU Architecture:Any

[10 Jul 2007 11:22] Tonci Grgin
Description:
When configure includes "WITH_EXAMPLE_STORAGE_ENGINE", example.lib is not added to linker path thus linking fails.

How to repeat:
My BK repo is on linux so I do:
 - compile dist and make dist
 - extract archive on Win
 - win\configure WITH_INNOBASE_STORAGE_ENGINE WITH_PARTITION_STORAGE_ENGINE WITH_ARCHIVE_STORAGE_ENGINE WITH_BLACKHOLE_STORAGE_ENGINE WITH_EXAMPLE_STORAGE_ENGINE WITH_FEDERATED_STORAGE_ENGINE WITH_INNOBASE_STORAGE_ENGINE __NT__ MYSQL_SERVER_SUFFIX=-max-nt
 - C:\ZaMySQL\Serveri\mysql-5.0.46\mysql-5.0.46>win\build-vs8.bat
The system cannot find the file specified.
-- Check for working C compiler: cl
-- Check for working C compiler: cl -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: cl
-- Check for working CXX compiler: cl -- works
Library example is defined using ADD_LIBRARY after the library is used using TAR
GET_LINK_LIBRARIES for the target mysqld. This breaks CMake's dependency handlin
g. Please fix the CMakeLists.txt file.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/ZaMySQL/Serveri/mysql-5.0.46/mysql-5.0.4
6
        1 file(s) copied.

Build solution (Release), you'll notice linker error.

Suggested fix:
Add C:\ZaMySQL\Serveri\mysql-5.0.46\mysql-5.0.46\sql\examples\release to Linker / General / Additional Library Directories
[11 Jul 2007 7:04] Sveta Smirnova
Bug is repeatable with UNIX sources as well.
[4 Jan 2008 12:40] Tonci Grgin
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html

Explanation: The problem is not repeatable with BK clone, cs1.2583.1.1
[9 Apr 2008 19:50] Sveta Smirnova
Bug is not repeatable on UNIX as well