Transcalc FTBFS with error "call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments"

Bug #334035 reported by Fabrice Coutadeur
4
Affects Status Importance Assigned to Milestone
transcalc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: transcalc

Hi,

When compiling with gcc 4.3, transcalc FTBFS because of a call to an open function with only 2 parameters:
make[3]: Entering directory `/build/buildd/transcalc-0.14/src'
cc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -DDATADIR=\"/usr/share\" -ggdb -O2 -Wall -c transcalc.c
transcalc.c: In function 'read_config_file':
transcalc.c:182: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
transcalc.c:196: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result
transcalc.c:197: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result
transcalc.c:198: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result
In function 'open',
    inlined from 'running_for_first_time' at transcalc.c:149:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[3]: *** [transcalc.o] Error 1

Changed in transcalc:
assignee: nobody → fabricesp
status: New → In Progress
Changed in transcalc:
assignee: fabricesp → nobody
status: In Progress → Confirmed
Revision history for this message
Daniel Holbach (dholbach) wrote :

Good work.

Can you forward it upstream too and make use of https://wiki.ubuntu.com/UbuntuDevelopment/PatchTaggingGuidelines the next time? :-)

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Fixed in Jaunty, with version 0.14-3ubuntu1 (forgot to reference the bug in changelog :-/ )

Changed in transcalc:
status: Confirmed → Fix Committed
Changed in transcalc:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.