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 738434 - problem with cross compiling
problem with cross compiling
Status: RESOLVED DUPLICATE of bug 738454
Product: libxslt
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2014-10-13 08:35 UTC by Tobi
Modified: 2016-04-29 14:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
log file of running the shell script make_libxslt.sh (54.08 KB, application/octet-stream)
2014-10-13 08:35 UTC, Tobi
Details

Description Tobi 2014-10-13 08:35:19 UTC
Created attachment 288372 [details]
log file of running the shell script make_libxslt.sh

Hi everybody,

I`m writing to this list because I`ve a problem with building the xslt package under linux for windows (cross compiling with mingw). If you have any idea or help would be appreciate.

Error message:
/bin/rm: cannot remove 'libtoolT': No such file or directory

My shell script for creating the library:
 
The log file from the shell script above:
 
/bin/rm: cannot remove 'conftest*': No such file or directory
/bin/rm: cannot remove 'conftest*': No such file or directory
/usr/bin/libgcrypt-config: 1: /usr/bin/libgcrypt-config: dpkg-architecture: not found
/bin/rm: cannot remove 'libtoolT': No such file or directory
xsltlocale.c:210:1: warning: 'xsltDefaultRegion' defined but not used [-Wunused-function]
 xsltDefaultRegion(const xmlChar *localeName) {
 ^
extensions.c: In function 'xsltRegisterExtModuleElement':
extensions.c:1625:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
     int ret;
         ^
functions.c: In function 'xsltGenerateIdFunction':
functions.c:668:15: warning: variable 'doc' set but not used [-Wunused-but-set-variable]
     xmlDocPtr doc;
               ^
preproc.c: In function 'xsltElementComp':
preproc.c:932:37: warning: variable 'name' set but not used [-Wunused-but-set-variable]
      const xmlChar *prefix = NULL, *name;
                                     ^
preproc.c: In function 'xsltAttributeComp':
preproc.c:1056:37: warning: variable 'name' set but not used [-Wunused-but-set-variable]
      const xmlChar *prefix = NULL, *name;
                                     ^
/bin/bash: /usr/bin/xsltproc: No such file or directory
make[2]: [xsltproc.1] Error 127 (ignored)
libtool: install: warning: relinking `libexslt.la'
/bin/bash: /usr/bin/xsltproc: No such file or directory
make[1]: [xsltproc.1] Error 127 (ignored)
/usr/bin/install: cannot stat ‘./html/index.sgml’: No such file or directory
make[2]: [install-data-local] Error 1 (ignored)
/bin/bash: /usr/bin/xsltproc: No such file or directory
make[2]: [xsltproc.1] Error 127 (ignored)
/usr/bin/install: cannot stat ‘./xsltproc.1’: No such file or directory
make[2]: *** [install-man1] Error 1
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1
configure: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used
configure: WARNING: using cross tools not prefixed with host triplet
/bin/rm: cannot remove 'conftest*': No such file or directory
/bin/rm: cannot remove 'conftest*': No such file or directory
/bin/rm: cannot remove 'libtoolT': No such file or directory
xsltlocale.c: In function 'xsltNewLocale':
xsltlocale.c:197:5: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign]
     strcpy(localeName + llen + 1, region);
     ^
In file included from xsltlocale.c:16:0:
/usr/share/mingw-w64/include/string.h:51:18: note: expected 'char * __restrict__' but argument is of type 'xmlChar *'
   char * __cdecl strcpy(char * __restrict__ _Dest,const char * __restrict__ _Source);
                  ^
xsltlocale.c:197:5: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness [-Wpointer-sign]
     strcpy(localeName + llen + 1, region);
     ^
In file included from xsltlocale.c:16:0:
/usr/share/mingw-w64/include/string.h:51:18: note: expected 'const char * __restrict__' but argument is of type 'const xmlChar *'
   char * __cdecl strcpy(char * __restrict__ _Dest,const char * __restrict__ _Source);
                  ^
xsltlocale.c: In function 'xsltStrxfrm':
xsltlocale.c:392:5: warning: pointer targets in passing argument 3 of 'MultiByteToWideChar' differ in signedness [-Wpointer-sign]
     xstrlen = MultiByteToWideChar(CP_UTF8, 0, string, -1, NULL, 0);
     ^
In file included from /usr/share/mingw-w64/include/winnls.h:886:0,
                 from /usr/share/mingw-w64/include/windows.h:73,
                 from xsltlocale.h:31,
                 from xsltlocale.c:19:
/usr/share/mingw-w64/include/stringapiset.h:41:25: note: expected 'LPCCH' but argument is of type 'const xmlChar *'
   WINBASEAPI int WINAPI MultiByteToWideChar (UINT CodePage, DWORD dwFlags, LPCCH lpMultiByteStr, int cbMultiByte, LPWSTR lpWideCharStr, int cchWideChar);
                         ^
xsltlocale.c:402:5: warning: pointer targets in passing argument 3 of 'MultiByteToWideChar' differ in signedness [-Wpointer-sign]
     r = MultiByteToWideChar(CP_UTF8, 0, string, -1, xstr, xstrlen);
     ^
In file included from /usr/share/mingw-w64/include/winnls.h:886:0,
                 from /usr/share/mingw-w64/include/windows.h:73,
                 from xsltlocale.h:31,
                 from xsltlocale.c:19:
/usr/share/mingw-w64/include/stringapiset.h:41:25: note: expected 'LPCCH' but argument is of type 'const xmlChar *'
   WINBASEAPI int WINAPI MultiByteToWideChar (UINT CodePage, DWORD dwFlags, LPCCH lpMultiByteStr, int cbMultiByte, LPWSTR lpWideCharStr, int cchWideChar);
                         ^
xsltlocale.c: In function 'xsltIterateSupportedLocales':
xsltlocale.c:489:5: warning: pointer targets in passing argument 3 of 'GetLocaleInfoA' differ in signedness [-Wpointer-sign]
     k = GetLocaleInfoA(p->lcid, LOCALE_SISO639LANGNAME , iso639lang , sizeof(iso639lang ));
     ^
In file included from /usr/share/mingw-w64/include/windows.h:73:0,
                 from xsltlocale.h:31,
                 from xsltlocale.c:19:
/usr/share/mingw-w64/include/winnls.h:911:25: note: expected 'LPSTR' but argument is of type 'xmlChar *'
   WINBASEAPI int WINAPI GetLocaleInfoA (LCID Locale, LCTYPE LCType, LPSTR lpLCData, int cchData);
                         ^
xsltlocale.c:491:5: warning: pointer targets in passing argument 3 of 'GetLocaleInfoA' differ in signedness [-Wpointer-sign]
     l = GetLocaleInfoA(p->lcid, LOCALE_SISO3166CTRYNAME, iso3136ctry, sizeof(iso3136ctry));
     ^
In file included from /usr/share/mingw-w64/include/windows.h:73:0,
                 from xsltlocale.h:31,
                 from xsltlocale.c:19:
/usr/share/mingw-w64/include/winnls.h:911:25: note: expected 'LPSTR' but argument is of type 'xmlChar *'
   WINBASEAPI int WINAPI GetLocaleInfoA (LCID Locale, LCTYPE LCType, LPSTR lpLCData, int cchData);
                         ^
extensions.c: In function 'xsltRegisterExtModuleElement':
extensions.c:1625:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
     int ret;
         ^
functions.c: In function 'xsltGenerateIdFunction':
functions.c:668:15: warning: variable 'doc' set but not used [-Wunused-but-set-variable]
     xmlDocPtr doc;
               ^
preproc.c: In function 'xsltElementComp':
preproc.c:932:37: warning: variable 'name' set but not used [-Wunused-but-set-variable]
      const xmlChar *prefix = NULL, *name;
                                     ^
preproc.c: In function 'xsltAttributeComp':
preproc.c:1056:37: warning: variable 'name' set but not used [-Wunused-but-set-variable]
      const xmlChar *prefix = NULL, *name;
                                     ^
security.c: In function 'xsltCheckWritePath':
security.c:346:3: error: too many arguments to function 'mkdir'
   ret = mkdir(directory, 0755);
   ^
In file included from /usr/share/mingw-w64/include/sys/stat.h:14:0,
                 from security.c:18:
/usr/share/mingw-w64/include/io.h:267:15: note: declared here
   int __cdecl mkdir (const char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
               ^
make[2]: *** [security.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
security.c: In function 'xsltCheckWritePath':
security.c:346:3: error: too many arguments to function 'mkdir'
   ret = mkdir(directory, 0755);
   ^
In file included from /usr/share/mingw-w64/include/sys/stat.h:14:0,
                 from security.c:18:
/usr/share/mingw-w64/include/io.h:267:15: note: declared here
   int __cdecl mkdir (const char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
               ^
make[1]: *** [security.lo] Error 1
make: *** [install-recursive] Error 1
Comment 1 Nick Wellnhofer 2016-04-29 14:11:41 UTC

*** This bug has been marked as a duplicate of bug 738454 ***