GNOME Bugzilla – Bug 738454
Issue with mkdir when cross-compiling for Windows
Last modified: 2021-07-05 11:01:05 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); }
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!
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
Created attachment 322396 [details] [review] Experimental patch Can you try this patch?
*** Bug 738434 has been marked as a duplicate of this bug. ***
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.