I am presently attempting to compile drivers for a Nostromo n50 game
pad.  I have overcome a few other warnings, but am now down to an issue
with calling open().


if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"nostromo_n50\" 
-DVERSION=\"1.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 
-DHAVE_LIMITS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBXTST=1 
-DRETSIGTYPE=void  -I. -I.     -pthread -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/gio-unix-2.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 -I/usr/include/libxml2   -g -O2 
-D_THREAD_SAFE -D_REENTRANT -DIMG_PATH=\"/usr/local/share/pixmaps\" -MT 
daemon.o -MD -MP -MF ".deps/daemon.Tpo" -c -o daemon.o daemon.cxx; \
        then mv -f ".deps/daemon.Tpo" ".deps/daemon.Po"; else rm -f 
".deps/daemon.Tpo"; exit 1; fi
In file included from /usr/include/fcntl.h:205,
                 from daemon.cxx:30:
In function ‘int open(const char*, int, ...)’,
    inlined from ‘void ensure_singleton()’ at daemon.cxx:959:
/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[2]: *** [daemon.o] Error 1
make[2]: Leaving directory `/home/xxx/dev/nostromo_n50-1.3/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/xxx/dev/nostromo_n50-1.3/src'
make: *** [all-recursive] Error 1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/669894

Title:
  fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with
  attribute error: open with O_CREAT in second argument needs 3
  arguments

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to