[asterisk-dev] fxotune.c:827: error: size of array '__open_missing_mode' is negative

Jason Parker jparker at digium.com
Mon Aug 20 18:15:40 CDT 2007

Axel Thimm wrote:
> Hi,
> zaptel-1.4.5 fails on F8 (but builds on F7/FC6 and RHEL5/4) with:
> /usr/bin/gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I. -O4 -g -Wall -DBUILDING_TONEZONE   -m64 -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o fxotune.o -c fxotune.c
> fxotune.c: In function 'do_calibrate':
> fxotune.c:827: error: size of array '__open_missing_mode' is negative
> make: *** [fxotune.o] Error 1
> ------------------------------------------------------------------------
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev

Apparently, new versions of glibc have added error checking macros for open()
and similar calls, which, with FORTIFY_SOURCE=2, will check that the arguments
are valid.  It seems that if you use O_CREATE, you must also specify a mode.

Could you please file a bug report on mantis?

For details:

Jason Parker

More information about the asterisk-dev mailing list