After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 621701 - Posix profile generates non-posix code
Posix profile generates non-posix code
Status: RESOLVED DUPLICATE of bug 648204
Product: vala
Classification: Core
Component: Code Generator
unspecified
Other All
: Low normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-06-15 21:24 UTC by Fabian Deutsch
Modified: 2011-09-11 08:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
augeas api test (1.07 KB, application/octet-stream)
2010-06-15 21:24 UTC, Fabian Deutsch
Details

Description Fabian Deutsch 2010-06-15 21:24:29 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)
Comment 1 Luca Bruno 2011-09-11 08:40:01 UTC
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 ***