Home > declared with > declared attribute error

Declared Attribute Error

Contents

Sign in Pricing Blog Support Search GitHub This repository Watch 41 Star 25 Fork 8 pantheon-systems/fusedav Code Issues 1 Pull requests 0 Projects 0 Pulse Graphs New issue open with O_CREAT in second declared with attribute warn_unused_result argument needs 3 arguments #204 Closed gdamjan opened this Issue Jun 2, 2015 ·

Declared With Attribute Warn_unused_result -wunused-result

3 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 3 participants gdamjan

Linux Open

commented Jun 2, 2015 Compiling on Arch with gcc-5.1 and glibc 2.21 I get this error: In file included from /usr/include/fcntl.h:302:0, from /usr/include/fuse/fuse.h:28, from stats.c:23: In function ‘open’, inlined from ‘dump_stats’ at stats.c:145:12: /usr/include/bits/fcntl2.h:50:4: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments __open_missing_mode (); The fix is to add a mode to the open call in stats.c on line 145 - fd = open(stat_path, O_CREAT | O_WRONLY | O_TRUNC); + fd = open(stat_path, O_CREAT | O_WRONLY | O_TRUNC, 0600); Pantheon member jerryblakley commented Jun 2, 2015 Thanks for the note. This fix will go in with the next update in the next few days. Pantheon member jerryblakley commented Jun 16, 2015 This fix is now in on the master and production branches. Thanks for the tip. Pantheon member jerryblakley commented Jun 16, 2015 This fix is now on the master and production branches. Thanks for the tip. … On Tue, Jun 2, 2015 at 1:43 AM, Дамјан Георгиевски ***@***.*** > wrote: Compiling on Arch with gcc-5.1 and glibc 2.21 I get this error: In file included from /usr/include/fcntl.h:302:0, from /usr/include/fuse/fuse.h:28, from stats.c:23: In function ‘open’, inlined from ‘dump_stats’ at stats.c:145:12: /usr/include/bits/fcntl2.h:50:4: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments __open_missing_mode (); The fix is to add a mode to the open call in stats.c on line 145 - fd = open(stat_path, O_CREAT | O_WRONLY | O_TRUNC); + fd = open(stat_path, O_CREAT | O_WRONLY | O_TRUNC, 0600); — Reply to this email directly or view it on GitHub <#204>. -- Jerry Blakley Senior Systems Engineer | Pantheon jerry@pantheon.io kibra closed this Aug 31, 2015 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 Git

by nestoklon on 2008-10-20 30 This bug affects 6 people Affects Status Importance Assigned to Milestone hdf5 (Ubuntu) Edit Fix Released Undecided Unassigned Edit You need to log in to change this bug's status. Affecting: hdf5 (Ubuntu) Filed here by: nestoklon When: 2008-10-20 Confirmed: 2010-04-15 Started work: 2010-04-15 Completed: 2010-04-15 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi https://github.com/pantheon-systems/fusedav/issues/204 Linux nUbuntu PLD Linux Tilix tuXlab Ubuntu Ubuntu Linaro Evaluation Build Ubuntu RTM Package (Find…) Project (Find…) Status Importance Fix Released Undecided Assigned to Nobody Me Comment on this change (optional) Email me about changes to this bug report Also affects project (?) Also affects https://bugs.launchpad.net/bugs/286565 distribution/package Nominate for series Bug Description Binary package hint: gcc-4.3 I am trying to compile HDF library (1.8.1) http://www.hdfgroup.org/HDF5/release/obtain5.html . Under Intrepid 8.10 I have the following bug: " In function 'open', inlined from 'do_write_test' at zip_perf.c:548, inlined from 'main' at zip_perf.c:649: /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 " for " gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu10' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu10) " I have tried to install old gcc version " gcc-4.2 -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-

#669894 reported by Yura Tereschuk on 2010-11-02 14 This bug affects 3 people Affects Status Importance Assigned https://bugs.launchpad.net/bugs/669894 to Milestone gcc-defaults (Ubuntu) Edit Invalid Undecided Unassigned Edit You need to log in to change this bug's status. Affecting: gcc-defaults (Ubuntu) Filed here by: Yura Tereschuk When: 2010-11-02 Completed: 2011-04-25 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi Linux nUbuntu PLD declared with Linux Tilix tuXlab Ubuntu Ubuntu Linaro Evaluation Build Ubuntu RTM Package (Find…) Project (Find…) Status Importance Invalid Undecided Assigned to Nobody Me Comment on this change (optional) Email me about changes to this bug report Also affects project (?) Also affects distribution/package Nominate for series Bug Description declared with attribute gcc -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../gcc-3.4.5/gcc -I../../gcc-3.4.5/gcc/. -I../../gcc-3.4.5/gcc/../include \ -DTARGET_MACHINE=\"i686-pc-linux-gnu\" \ -c ../../gcc-3.4.5/gcc/collect2.c -o collect2.o In file included from /usr/include/fcntl.h:205, from ../../gcc-3.4.5/gcc/system.h:214, from ../../gcc-3.4.5/gcc/collect2.c:30: In function ‘open’, inlined from ‘collect_execute’ at ../../gcc-3.4.5/gcc/collect2.c:1537: /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[1]: *** [collect2.o] Помилка 1 I have tried build cross-compile env and have got the same errors for gcc-4 ProblemType: Bug DistroRelease: Ubuntu 10.04 Package: gcc 4:4.4.3-1ubuntu1 ProcVersionSignature: Ubuntu 2.6.32-25.45-generic 2.6.32.21+drm33.7 Uname: Linux 2.6.32-25-generic i686 NonfreeKernelModules: nvidia Architecture: i386 Date: Tue Nov 2 14:55:34 2010 InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.2) ProcEnviron: LANG=uk_UA.UTF-8 SHELL=/bin/bash SourcePackage: gcc-defaults Tags: apport-bug i386 lucid Edit Tag help Yura Tereschuk (astro-evernet) wrote on 2010-11-02: #1 Dependencies.txt Edit (703 bytes, text/plain; charset="utf-8") JW (a

 

Related content

No related pages.