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

Axel Thimm Axel.Thimm at ATrpms.net
Mon Aug 20 21:30:22 CDT 2007

On Mon, Aug 20, 2007 at 06:15:40PM -0500, Jason Parker wrote:
> Axel Thimm wrote:
> > /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

> 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.

Ah, yes the infinite threads on the new open strictnesses. Although
the missing mode is a real bug, it is using random modes otherwise.

> Could you please file a bug report on mantis?

Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20070821/22574a6e/attachment.pgp 

More information about the asterisk-dev mailing list