Bug 870107

Summary: when coss compiling to windows -lboost_xxx do not work
Product: [Fedora] Fedora Reporter: Pierre Blavy <pierreblavy>
Component: mingw-boostAssignee: Thomas Sailer <fedora>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 17CC: erik-fedora, fedora, rjones
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-05 09:51:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pierre Blavy 2012-10-25 14:48:37 UTC
Description of problem:
When using the mingw version of boost libraries, linking with -lboost_xxx do not work.

How reproducible: always


Steps to Reproduce:
1. install mingw-boost
2. make a C++ program, link it with boost, compile with mingw
 i686-w64-mingw32-g++ main.cpp -o /tmp/test -l boost_regex
  
Actual results:

Linking fail
ld: cannot find -lboost_regex

but lib exists
find /usr/i686-w64-mingw32 | grep boost_regex
/usr/i686-w64-mingw32/sys-root/mingw/lib/libboost_regex-gcc47-mt-1_48.dll.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libboost_regex-gcc47-mt-d-1_48.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libboost_regex-gcc47-d-1_48.dll.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libboost_regex-gcc47-mt-1_48.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libboost_regex-gcc47-mt-d-1_48.dll.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libboost_regex-gcc47-d-1_48.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libboost_regex-gcc47-1_48.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libboost_regex-gcc47-1_48.dll.a
/usr/i686-w64-mingw32/sys-root/mingw/bin/boost_regex-gcc47-1_48.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/boost_regex-gcc47-mt-1_48.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/boost_regex-gcc47-mt-d-1_48.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/boost_regex-gcc47-d-1_48.dll


Expected results: linker should link with the last working boost lib.
Maybe a symlink pointing to it is missing.


Additional info:
Workaround : link with -lboost_regex-gcc47-1_48

Comment 1 Thomas Sailer 2012-12-05 09:51:40 UTC
See:
http://koji.fedoraproject.org/koji/buildinfo?buildID=370849