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 578115 - Gio::File::make_directory_with_parents() is not defined!
Gio::File::make_directory_with_parents() is not defined!
Status: RESOLVED FIXED
Product: glibmm
Classification: Bindings
Component: giomm
2.18.x
Other Linux
: Normal major
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2009-04-06 08:54 UTC by Siavash Safi
Modified: 2009-04-29 05:01 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Siavash Safi 2009-04-06 08:54:29 UTC
Gio::File::make_directory_with_parents()
or
Gio::File::make_directory_with_parents(std::auto_ptr<Glib::Error>& error);

are declared in gio/file.hg but not defined in gio/file.ccg
which causes the linker to fail:

/home/siavash/develop/mpx/mpxlib/library-scanner-thread-mlibman.cc:1929: undefined reference to `Gio::File::make_directory_with_parents()'
Comment 1 Murray Cumming 2009-04-21 09:14:36 UTC
Could you try to patch that, please, to add the implementations?
Comment 2 Siavash Safi 2009-04-25 14:30:08 UTC
Added and pushed to the git repo.
Comment 3 Murray Cumming 2009-04-26 22:28:55 UTC
I don't see that in git.gnome.org. Are you sure that you pushed it?
Comment 4 Siavash Safi 2009-04-27 07:30:57 UTC
here it is, in glibmm-2-18 branch:

http://git.gnome.org/cgit/glibmm/commit/?h=glibmm-2-18
Comment 5 Murray Cumming 2009-04-27 07:59:02 UTC
Thanks, but:

1. You did not add an entry to the ChangeLog. Please revert that commit and recommit/push it with a ChangeLog entry.
2. Please also commit this to master. I guess that a "cherry-pick" might do that for you, though I am still getting used to git myself. 
Comment 6 Siavash Safi 2009-04-27 09:26:35 UTC
1) Sorry about the ChangeLog, I reverted the commit and commited with the updated ChangleLog.

2) It's already in master branch, what I did was to copy the defenitions from master to glibmm-2-18 branch.
Comment 7 José Alburquerque 2009-04-27 13:56:52 UTC
Sorry to interject but it may be necessary to also include it in the 2-16 branch.
Comment 8 Murray Cumming 2009-04-27 15:09:08 UTC
Yes, I think that's what I meant.
Comment 9 José Alburquerque 2009-04-29 05:01:27 UTC
> Sorry to interject but it may be necessary to also include it in the 2-16
> branch.

I'm wrong about this.  g_file_make_directory_with_parents wasn't introduced until 2-18[1].

[1] http://library.gnome.org/devel/gio/2.18/ix02.html