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 738454 - Issue with mkdir when cross-compiling for Windows
Issue with mkdir when cross-compiling for Windows
Status: RESOLVED OBSOLETE
Product: libxslt
Classification: Platform
Component: general
unspecified
Other Windows
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
: 738434 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-10-13 12:41 UTC by Tobi
Modified: 2021-07-05 11:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Experimental patch (324 bytes, patch)
2016-02-25 17:12 UTC, Nick Wellnhofer
none Details | Review

Description Tobi 2014-10-13 12:41:08 UTC
in security.c ln 348 comes a compile error during cross compile.
When I use that fix below it would work!!!
Could you find a general fix for that please? 

	    if (ret == 1) {
		//ret = mkdir(directory, 0755);
		ret = mkdir(directory);
	    }
Comment 1 André Klapper 2014-10-14 05:22:14 UTC
Please provide exact steps to reproduce the problem (compiler flags, platform information, version information) and please attach a diff as a patch file in this bug report. Thanks!
Comment 2 Tobi 2014-10-14 07:06:55 UTC
There should be added a #ifndef section for linux and windows macro to differ between the os.

e.g.
	    if (ret == 1) {
linux:
		ret = mkdir(directory, 0755);
windows:
		ret = mkdir(directory);




The compiler flags below:
echo "----------------------------------------"
echo "make windows libraries"
echo "----------------------------------------"
export CFLAGS="-I$root_bin_dir/bin/libiconv-1.9.2/win/include -I$root_bin_dir/bin/libtool-2.4.2/win/include -I$root_bin_dir/bin/libxml2-2.7.8/win/include/libxml2"
export LDFLAGS="-L$root_bin_dir/bin/libtool-2.4.2/win/bin -L$root_bin_dir/bin/libxml2-2.7.8/win/bin"
./configure --prefix=$root_bin_dir/bin/$lib_dir_name/win --host=i686-w64-mingw32 --with-libxml-include-prefix=$root_bin_dir/bin/libxml2-2.7.8/win/include/libxml2/ --with-libxml-libs-prefix=$root_bin_dir/bin/libxml2-2.7.8/win/bin --with-libxml-prefix=$root_bin_dir/bin/libxml2-2.7.8/win --with-python=no
make
make install
Comment 3 Nick Wellnhofer 2016-02-25 17:12:39 UTC
Created attachment 322396 [details] [review]
Experimental patch

Can you try this patch?
Comment 4 Nick Wellnhofer 2016-04-29 14:11:41 UTC
*** Bug 738434 has been marked as a duplicate of this bug. ***
Comment 5 GNOME Infrastructure Team 2021-07-05 11:01:05 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/libxslt/-/issues/

Thank you for your understanding and your help.