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 770685 - core: Include stdlib.h for free() and realpath()
core: Include stdlib.h for free() and realpath()
Status: RESOLVED FIXED
Product: GEGL
Classification: Other
Component: build
unspecified
Other All
: Normal normal
: ---
Assigned To: Default Gegl Component Owner
Default Gegl Component Owner
: 770984 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2016-08-31 22:37 UTC by Dominique Leuenberger
Modified: 2016-09-07 13:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
core: Include stdlib.h for free() and realpath() (1.66 KB, patch)
2016-08-31 22:37 UTC, Dominique Leuenberger
none Details | Review

Description Dominique Leuenberger 2016-08-31 22:37:49 UTC
Without this, building for example on ppc64le yields:
[  136s] load.c: In function 'do_setup':
[  136s] load.c:121:30: warning: implicit declaration of function 'realpath' [-Wimplicit-function-declaration]
[  136s]        gchar *resolved_path = realpath (path, NULL);
[  136s]                               ^~~~~~~~
[  136s] load.c:121:30: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
[  136s] load.c:141:15: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
[  136s]                free (resolved_path);
[  136s]                ^~~~
[  136s] load.c:141:15: warning: incompatible implicit declaration of built-in function 'free'
[  136s] load.c:141:15: note: include '<stdlib.h>' or provide a declaration of 'free'
[  136s] load.c:145:11: warning: incompatible implicit declaration of built-in function 'free'
[  136s]            free (resolved_path);
[  136s]            ^~~~
[  136s] load.c:145:11: note: include '<stdlib.h>' or provide a declaration of 'free'
Comment 1 Dominique Leuenberger 2016-08-31 22:37:54 UTC
Created attachment 334564 [details] [review]
core: Include stdlib.h for free() and realpath()
Comment 2 Øyvind Kolås (pippin) 2016-09-07 13:15:54 UTC
*** Bug 770984 has been marked as a duplicate of this bug. ***
Comment 3 Øyvind Kolås (pippin) 2016-09-07 13:16:31 UTC
commit 52b005062d2ee33ec4f58caeb61544c346af05f8
Author: Øyvind Kolås <pippin@gimp.org>
Date:   Wed Sep 7 15:11:57 2016 +0200

    load: readd include stdlib.h bug #1373722