compil error

Ubuntu 8.10
Last version g15tools

./configure --prefix=/usr
make

lcdclient_test.c:70: attention : unused variable ‘foo’<br />
mv -f .deps/lcdclient_test.Tpo .deps/lcdclient_test.Po<br />
/bin/bash ../libtool --tag=CC   --mode=link gcc -DG15DAEMON_BUILD -Wall -g -O2   -o g15daemontest lcdclient_test.o ../libg15daemon_client/libg15daemon_client.la -lpthread -lm -lg15render -lg15<br />
mkdir .libs<br />
gcc -DG15DAEMON_BUILD -Wall -g -O2 -o .libs/g15daemontest lcdclient_test.o  ../libg15daemon_client/.libs/libg15daemon_client.so -lpthread /usr/lib/libg15render.so -lm /usr/lib/libg15.so /usr/lib/libusb.so<br />
creating g15daemontest<br />
gcc -DHAVE_CONFIG_H -I. -I.. -I../libg15daemon_client/  -DDATADIR="\"/usr/share\"" -DPLUGINDIR=\"/usr/lib/g15daemon/1.9.5.3/plugins\" -I/usr/include -DG15DAEMON_BUILD -Wall -g -O2 -MT utility_funcs.o -MD -MP -MF .deps/utility_funcs.Tpo -c -o utility_funcs.o utility_funcs.c<br />
utility_funcs.c: In function ‘uf_conf_write’:<br />
utility_funcs.c:362: attention : ignoring return value of ‘write’, declared with attribute warn_unused_result<br />
utility_funcs.c:368: attention : ignoring return value of ‘write’, declared with attribute warn_unused_result<br />
utility_funcs.c:376: attention : ignoring return value of ‘write’, declared with attribute warn_unused_result<br />
In function ‘open’,<br />
    inlined from ‘uf_conf_write’ at utility_funcs.c:359:<br />
/usr/include/bits/fcntl2.h:51: erreur: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments<br />
make[2]: *** [utility_funcs.o] Erreur 1<br />
make[2]: quittant le répertoire « /home/jypx/Bureau/G15/g15daemon-1.9.5.3/g15daemon »<br />
make[1]: *** [all-recursive] Erreur 1<br />
make[1]: quittant le répertoire « /home/jypx/Bureau/G15/g15daemon-1.9.5.3 »<br />
make: *** [all] Erreur 2<br />

Re: compil error

Thank you for the patch
I compile the sources or packages using ubuntu, I have not the proper codes keys. :(

http://www.g15tools.com/forum/viewtopic.php?f=12&t=127

Re: compil error

So, it would seem that GCC and/or glibc has become more pedantic or better at enforcing interfaces. Can you try this patch:

Index: utility_funcs.c<br />
===================================================================<br />
--- utility_funcs.c     (revision 468)<br />
+++ utility_funcs.c     (working copy)<br />
@@ -356,7 +356,7 @@<br />
     config_items_t * item=NULL;<br />
     char line[1024];</p>
<p>-    config_fd = open(filename,O_CREAT|O_RDWR|O_TRUNC);<br />
+    config_fd = open(filename,O_CREAT|O_RDWR|O_TRUNC,S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);<br />
     if(config_fd){<br />
     snprintf(line,1024,"# G15Daemon Configuration File\n# any items entered before a [section] header\n# will be in the Global config space\n# comments you wish to keep should start with a semicolon';'\n");<br />
     write(config_fd,line,strlen(line));<br />

Re: compil error

this fixed the compile issue i was having and it is now installed

Re: compil error

French, not Spanish, but I agree with your assessment. I'm not sure why the build is failing, I'll look at that tonight, but my first read would lead me to think that the open() syscall has changed, which doesn't seem right.

Re: compil error

If you don't need bleeding-edge SVN releases, I suggest using Aptitude
~$ sudo apt-get install g15daemon

Otherwise I'm lost because there's some spanish mixed in there =P