GNOME Bugzilla – Bug 621701
Posix profile generates non-posix code
Last modified: 2011-09-11 08:40:01 UTC
Created attachment 163733 [details] augeas api test When trying to compile the attached example with the binding in https://bugzilla.gnome.org/show_bug.cgi?id=621697 and the posix profile, vala generates non-posix code. $ LC_ALL=en valac --debug --verbose --save-temps --profile=posix --pkg augeas --vapidir . augeas-api-test.vala cc -g -o '/home/fabiand/public_html/storage/provd/src/augeas-api-test' '/home/fabiand/public_html/storage/provd/src/augeas-api-test.c' -laugeas augeas-api-test.vala: In function 'test': augeas-api-test.vala:24: warning: passing argument 1 of '_strdup0' discards qualifiers from pointer target type augeas-api-test.c:56: note: expected 'void *' but argument is of type 'const char *' augeas-api-test.vala:30: warning: passing argument 1 of '_strdup0' discards qualifiers from pointer target type augeas-api-test.c:56: note: expected 'void *' but argument is of type 'const char *' augeas-api-test.vala:36: warning: passing argument 1 of '_strdup0' discards qualifiers from pointer target type augeas-api-test.c:56: note: expected 'void *' but argument is of type 'const char *' /tmp/cc3yx2EA.o: In function `aug_match_wrapper': /home/fabiand/public_html/storage/provd/src/augeas.vapi:75: undefined reference to `g_return_val_if_fail' /home/fabiand/public_html/storage/provd/src/augeas.vapi:75: undefined reference to `g_return_val_if_fail' collect2: ld returned 1 exit status error: cc exited with status 256 Compilation failed: 1 error(s), 0 warning(s)
Thanks for taking the time to report this bug. This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade. *** This bug has been marked as a duplicate of bug 648204 ***