Windows 10 x64 cerbero bootstrap fails with error of 'strerror_s' in 'glib-tools'

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Windows 10 x64 cerbero bootstrap fails with error of 'strerror_s' in 'glib-tools'

bradaisa
I had previously (inadvertently) succeeded in building x86 (32 bit) gstreamer 0.10 on Windows 10.

Today, I got better oriented, used the correct source for cerbero (below) and tried building gstreamer 1.8.0 for x64. Below are the commands I used, then the error that stopped the build. Someone on #gstreamer said that the function is supposed to be defined in MS libraries. I'm dead in the water! Thanks for any help. I'll also try to be on #gstreamer (androticus) if someone hops on there.

MingGW shell:

> git clone -b 1.8.0 http://cgit.freedesktop.org/gstreamer/cerbero
> cd cerbero
> cerbero -c config/mingw-w64-win.cbc bootstrap

... lots works ...

libtool: compile:  x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../glib -I../glib -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DGLIB_COMPILATION -DPCRE_STATIC -Wall -Wstrict-prototypes -Werror=declaration-after-statement -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format=2 -Werror=missing-include-dirs -Wall -g -O2 -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 -mms-bitfields -fvisibility=hidden -MT libglib_2_0_la-gstrfuncs.lo -MD -MP -MF .deps/libglib_2_0_la-gstrfuncs.Tpo -c gstrfuncs.c  -DDLL_EXPORT -DPIC -o .libs/libglib_2_0_la-gstrfuncs.o
gstrfuncs.c: In function 'g_strerror':
gstrfuncs.c:1276:7: error: implicit declaration of function 'strerror_s' [-Werror=implicit-function-declaration]
cc1.exe: some warnings being treated as errors
make[4]: *** [libglib_2_0_la-gstrfuncs.lo] Error 1
make[4]: Leaving directory `/usr/home/baisa/cerbero/sources/build-tools/glib-tools-2.46.2/glib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/home/baisa/cerbero/sources/build-tools/glib-tools-2.46.2/glib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/home/baisa/cerbero/sources/build-tools/glib-tools-2.46.2/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/home/baisa/cerbero/sources/build-tools/glib-tools-2.46.2'
make: *** [all] Error 2
Recipe 'glib-tools' failed at the build step 'compile'
Reply | Threaded
Open this post in threaded view
|

Re: Windows 10 x64 cerbero bootstrap fails with error of 'strerror_s' in 'glib-tools'

Tim Müller
On Tue, 2016-03-29 at 19:48 -0700, bradaisa wrote:

Hi,

> Today, I got better oriented, used the correct source for cerbero
> (below) and tried building gstreamer 1.8.0 for x64. Below are the
> commands I used, then the error that stopped the build. Someone on
> #gstreamer said that the function is supposed to be defined in MS
> libraries. I'm dead in the water!
> Thanks for any help. I'll also try to be on #gstreamer (androticus)
> if someone hops on there.
>
> MingGW shell:
>
> >
> > git clone -b 1.8.0 http://cgit.freedesktop.org/gstreamer/cerbero
> > cd cerbero
> > cerbero -c config/mingw-w64-win.cbc bootstrap
> ... lots works ...
>
> gstrfuncs.c: In function 'g_strerror':
> gstrfuncs.c:1276:7: error: implicit declaration of function
> 'strerror_s'
> [-Werror=implicit-function-declaration]
> cc1.exe: some warnings being treated as errors

As far as I know, this should be available on all newer windows
versions (not XP IIRC).

I think on windows you're usually supposed to use the win32.cbc or
win64.cbc, so I would recommed you try that instead (our docs in that
area are practically non-existent currently, sorry!)

You may still want to file a bug about this in bugzilla.gnome.org
though.

Cheers
 -Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel