octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mxe-octave: build fails with ".../unistd-wrappers.h:56:8: error: 'pi


From: Philip Nienhuis
Subject: Re: mxe-octave: build fails with ".../unistd-wrappers.h:56:8: error: 'pid_t' does not name a type"
Date: Fri, 24 Jun 2016 23:48:39 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40

John W. Eaton wrote:
On 06/23/2016 02:25 AM, Philip Nienhuis wrote:

With that patch applied, I now get "undefined reference to
'rpl_gethostname':

:
libtool: link: x86_64-w64-mingw32-ranlib
libgui/graphics/.libs/libgui-graphics.a
libtool: link: x86_64-w64-mingw32-g++ -std=gnu++11 -pthread -Wall -W
-Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings
-Wcast-align -Wcast-qual -g -O2 -Wl,-rpath-link
-Wl,/home/philip/devel/octdev/mxe/mxe_64b_20160617/usr/x86_64-w64-mingw32/lib


-Wl,--export-all-symbols -o src/.libs/mkoctfile.exe
src/src_mkoctfile-mkoctfile.o
-L/home/philip/devel/octdev/mxe/mxe_64b_20160617/usr/x86_64-w64-mingw32/lib


liboctave/wrappers/.libs/libwrappers.a libgnu/.libs/libgnu.a -lgdi32
-lws2_32 -luser32 -lkernel32 -pthread
liboctave/wrappers/.libs/libwrappers.a(liboctave_wrappers_libwrappers_la-unistd-wrappers.o):


In function `octave_gethostname_wrapper':
/home/philip/devel/octdev/mxe/mxe_64b_20160617/tmp-default-octave/octave-4.1.0+/liboctave/wrappers/unistd-wrappers.c:320:


undefined reference to `rpl_gethostname'
collect2: error: ld returned 1 exit status
Makefile:14562: recipe for target 'src/mkoctfile.exe' failed
make[4]: *** [src/mkoctfile.exe] Error 1

That is with an "--enable-windows-64" cross-build.

Without that configure option (32-bits) Octave-4.1.0+ gets built fine.

I see.  I pushed a patch for gnulib when building default-octave.  It
seems to work for me now with --enable-windows-64.

Works for me too.

Thank you very much,

Philip




reply via email to

[Prev in Thread] Current Thread [Next in Thread]