lmi
[Top][All Lists]
Advanced

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

Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW


From: Greg Chicares
Subject: Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW
Date: Mon, 25 Jan 2016 03:59:29 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0

On 2016-01-25 03:30, Greg Chicares wrote:
[...]
> /usr/share/libtool/config[1]$ls
> compile  config.guess  config.sub  depcomp  install-sh        ltmain.sh  
> missing
> 
> No 'ltmain.m4sh'; is 'ltmain.sh' the same thing? (I find no 'ltmain.m4sh'
> on either debian-7 or debian-8.)
> 
> /usr/share/libtool/config[0]$grep -A3 MINGW ltmain.sh
> #if defined(__MINGW32__)
> # ifdef __STRICT_ANSI__
> int _putenv (const char *);
> # endif
> 
> So I just patch that manually, right?

Nope--I still get:

./.libs/lt-lmi_cli.c:39:5: error: '_putenv' redeclared without dllimport 
attribute: previous dllimport ignored [-Werror=attributes]
 int _putenv (const char *);
     ^
Will it work if I reconfigure? No:

cd ~/src/lmi
./autogen.sh
PATH=$HOME/msw/i686-w64-mingw32/bin:$PATH ~/src/lmi/configure \
  --prefix=$HOME/msw/i686-w64-mingw32 --host=i686-w64-mingw32 \
  CPPFLAGS=-I$HOME/msw/i686-w64-mingw32/include \
  LDFLAGS=-L$HOME/msw/i686-w64-mingw32/lib \
  CXXFLAGS='-Wno-unused-local-typedefs -Wno-unused-variable'
cd  ~/build/lmi-msw
make clean
make

./.libs/lt-lmi_cli.c:39:5: error: '_putenv' redeclared without dllimport 
attribute: previous dllimport ignored [-Werror=attributes]
 int _putenv (const char *);
     ^

Here's the change I made:

address@hidden:/usr/share/libtool/config# grep -A3 MINGW ltmain.sh
#if defined(__MINGW32__)
# ifdef __STRICT_ANSI__
     /* int _putenv (const char *); */
_CRTIMP int _putenv (const char *);
--
#elif defined(__MINGW32__)
# define setmode _setmode
# define stat    _stat
# define chmod   _chmod




reply via email to

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