gnutls-devel
[Top][All Lists]
Advanced

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

Problem with cross build for windows on linux with shared libraries


From: Tomasz Gajewski
Subject: Problem with cross build for windows on linux with shared libraries
Date: Thu, 5 Sep 2013 08:36:10 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Hi,

I'm experimenting with build for windows using mingw cross compiler. During
build I get link error during linking psktool.exe due to missing symbol
rpl_localtime.

libtool: link: i686-pc-mingw32-gcc -std=gnu99 -g -O2 -o .libs/psktool.exe
psk.o  ../lib/.libs/libgnutls.dll.a
-L/home/tomga/external/mxe/usr/i686-pc-mingw32/lib -lz -lhogweed -lnettle
/home/tomga/external/mxe/usr/i686-pc-mingw32/lib/libgmp.dll.a -lcrypt32
./.libs/libcmd-psk.a ../gl/.libs/libgnu.a
/home/tomga/external/mxe/usr/i686-pc-mingw32/lib/libiconv.dll.a -lws2_32
../src/libopts/.libs/libopts.a
/home/tomga/external/mxe/usr/i686-pc-mingw32/lib/libpcreposix.dll.a
/home/tomga/external/mxe/usr/i686-pc-mingw32/lib/libpcre.dll.a
-L/home/tomga/external/mxe/usr/i686-pc-mingw32/lib
../src/libopts/.libs/libopts.a(libopts_la-libopts.o): In function `emit_usage':
/home/tomga/external/mxe/tmp-gnutls/gnutls-3.2.3/src/libopts/makeshell.c:364: 
undefined reference to `rpl_localtime'
collect2: error: ld returned 1 exit status
make[5]: *** [psktool.exe] Error 1


I've checked that this symbol is available in four built libraries:

./gnutls-3.2.3/lib/.libs/libgnutlsxx-28.dll
./gnutls-3.2.3/lib/.libs/libgnutls-xssl-0.dll
./gnutls-3.2.3/lib/.libs/libgnutls-28.dll
./gnutls-3.2.3/extra/.libs/libgnutls-openssl-27.dll

but it is exported using def files only from:

./gnutls-3.2.3/lib/.libs/libgnutls-xssl-0.dll
./gnutls-3.2.3/extra/.libs/libgnutls-openssl-27.dll


I don't know how those libraries are expected to be used (as replacements or
some extension plugins) and in consequence I don't know if how this should
be fixed.

I see two ways of fixing:

  - extend def file for libgnutls-28.dll with rpl_* functions
  - add one of those libraries which have rpl_* functions exported to link
command for psktool.exe

What do you think about this?

Regards
Tomasz Gajewski




reply via email to

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