[Bug 502554] Review Request: mingw32-boost - MinGW Windows Boost C++ library

bugzilla at redhat.com bugzilla at redhat.com
Tue May 26 18:39:02 UTC 2009


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=502554





--- Comment #5 from Erik van Pienbroek <erik-fedora at vanpienbroek.nl>  2009-05-26 14:39:01 EDT ---
While trying to build this package using rpmbuild I noticed several occurences
of lines like this:

gcc.archive
bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/libboost_math_c99f.lib

    "/usr/bin/ar"  rc
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/libboost_math_c99f.lib"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/acoshf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/asinhf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/atanhf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/cbrtf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/copysignf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/erfcf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/erff.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/expm1f.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/fmaxf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/fminf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/fpclassifyf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/hypotf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/lgammaf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/llroundf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/log1pf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/lroundf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/nextafterf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/nexttowardf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/roundf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/tgammaf.o"
"bin.v2/libs/math/build/gcc-mingw-4.4.0/release/debug-symbols-on/link-static/target-os-windows/truncf.o"

It looks like the native 'ar' is used (/usr/bin/ar) instead of
i686-pc-mingw32-ar. This might need some further investigation.


Another issue I noticed in the .spec file is this:
 if a2dll libboost_thread-mt.lib libboost_thread-mt "-lpthreadGC2"; then
As of mingw32-pthreads-2.8.0-8{.fc11,.fc12} it isn't necessary to use
'-lpthreadGC2' anymore. It should be sufficient to use just '-lpthread' here.


For the link errors in the testsuite libraries. I might have found out a way to
get it operational as shared libraries. Would it be possible to add a main()
function to those testsuite libraries which looks something like this:

int main(int argc, char **argv)
{
    void (*test_main_func) (int, char**);

    test_main_func = GetProcAddress(NULL, "test_main");
    if (!test_main_func) {
        printf("No test_main() function found\n");
        return -1;
    }

    test_main_func(arg1, arg2);

    return 0;
}

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the package-review mailing list