#244 Broken compilation under mingw

closed-fixed
nobody
None
5
2012-01-05
2012-01-04
XhmikosR
No

Around r3785, compilation broke under mingw.

make lib
make -C src all
make[1]: Entering directory `/compiling/gpac/src'
i686-pc-mingw32-gcc -O3 -m32 -march=core2 -mfpmath=sse -Wall -fno-strict-aliasing -Wno-pointer-sign -DGPAC_HAVE_CONFIG_H -I"/compiling/gpac" -I"/compiling/gpac/include" -I"/compiling/gpac/extra_lib/include/zlib" -c -o utils/os_divers.o utils/os_divers.c
utils/os_divers.c: In function 'gf_mkdir':
utils/os_divers.c:167:2: error: unknown type name 'errno_t'
utils/os_divers.c:170:3: warning: implicit declaration of function '_get_errno' [-Wimplicit-function-declaration]
utils/os_divers.c: In function 'gf_fwrite':
utils/os_divers.c:724:3: error: unknown type name 'errno_t'
utils/os_divers.c: In function 'gf_sys_get_rti_os':
utils/os_divers.c:1144:6: warning: variable 'nb_threads' set but not used [-Wunused-but-set-variable]
make[1]: *** [utils/os_divers.o] Error 1
make[1]: Leaving directory `/compiling/gpac/src'
make: *** [lib] Error 2

I'm using GCC 4.6.2 and a fairly recent MinGW.

Discussion

  • XhmikosR

    XhmikosR - 2012-01-05
    • status: open --> closed-fixed
     
  • XhmikosR

    XhmikosR - 2012-01-05

    Thanks for fixing it in r3833. In case you are interested, here are all the warnings I'm getting for x86 using GCC 4.6.2 and r3833.

    http://pastebin.com/jQTD60MN

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks