libtool
[Top][All Lists]
Advanced

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

Re: having a lot of mingw build problems with atexit - what does it mean


From: Ralf . Wildenhues
Subject: Re: having a lot of mingw build problems with atexit - what does it mean?
Date: Fri, 09 Feb 2007 00:09:10 +0100

Hi Ed,
On Thu, Feb 01, 2007 at 11:31:13AM -0700, Ed Hartnett wrote:
Ralf Wildenhues <address@hidden> writes:
> it may help if you post the output of
>   ../libtool --config
>   ../libtool --features
>   cat libnetcdf.la

See below.

Thanks. This is the culprit:
# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME
library_names_spec="\${libname}\`echo \${release} | \$SED -e 
s/[.]/-/g\`\${versuffix}\${shared_ext} \$libname.lib"

It's set correctly during the configure run at first, then later
overwritten wrongly in the FC bits.  Hmm, for some reason configure
thinks then that $FC isn't the GNU compiler, and puts in non-GCC bits.
Anyway, there is some bogosity in the FC bits in libtool.m4, could you
please try a shared build with FC=no for your package?  That should be
a workaround until we have a proper fix.

Please note that I was not able to build your package under MinGW/MSYS:
it errored out with:
| depbase=`echo posixio.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
| /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
| -I.. -I../fortran -I../../netcdf-3.6.2-beta6/libsrc   -DNC_DLL_EXPORT
| -g -O2 -MT posixio.lo -MD -MP -MF $depbase.Tpo -c -o posixio.lo
| ../../netcdf-3.6.2-beta6/libsrc/posixio.c &&\
| mv -f $depbase.Tpo $depbase.Plo
| libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../fortran
| -I../../netcdf-3.6.2-beta6/libsrc -DNC_DLL_EXPORT -g -O2 -MT posixio.lo
| -MD -MP -MF .deps/posixio.Tpo -c
| ../../netcdf-3.6.2-beta6/libsrc/posixio.c  -DDLL_EXPORT -DPIC -o
| .libs/posixio.o
| ../../netcdf-3.6.2-beta6/libsrc/posixio.c: In function `fgrow':
| ../../netcdf-3.6.2-beta6/libsrc/posixio.c:131: storage size of `sb'
| isn't known
| ../../netcdf-3.6.2-beta6/libsrc/posixio.c: In function `fgrow2':
| ../../netcdf-3.6.2-beta6/libsrc/posixio.c:162: storage size of `sb'
| isn't known
| ../../netcdf-3.6.2-beta6/libsrc/posixio.c: In function `ncio_filesize':
| ../../netcdf-3.6.2-beta6/libsrc/posixio.c:1648: storage size of `sb'
| isn't known
| make[2]: *** [posixio.lo] Error 1
| make[2]: Leaving directory `/home/ralf/netcdf/build-shared-nofc/libsrc'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/home/ralf/netcdf/build-shared-nofc'
| make: *** [all] Error 2
This is still obscure to me.  struct stat is defined in
MinGW/include/sys/stat.h, for the shared build something defines stat to
stat64, which isn't defined.  The static build completes and passes the
test suite.
Cheers,
Ralf





reply via email to

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