Ladt changes to time functions lead to multiple definitions of "asctime_r"
in some programs. For example,

libtool: link: x86_64-w64-mingw32-g++ -shared -nostdlib
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/dllcrt2.o
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/crtbegin.o
.libs\\libgdal.la.lnkscript  -lpoppler -lfreexl
-LC:/git/mingw/mingw-w64-geos/pkg/mingw-w64-x86_64-geos/mingw64/lib
-lgeos_c -lwebp -lexpat -lxerces-c -lpthread -ljasper -lhdf5 -lgif -ljpeg
-lgeotiff -ltiff -lpng -lcfitsio -LC:/msys64/mingw64/lib -lpq -llzma
-lpthread -lspatialite -lsqlite3 -lpcre -L/mingw64/lib -lcurl -lidn -lrtmp
-lssh2 -lgdi32 -lssl -lcrypto -lwldap32 -lxml2 -lz -liconv -lws2_32
-LC:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2
-LC:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib
-LC:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../lib
-LC:/msys64/mingw64/x86_64-w64-mingw32/lib/../lib
-LC:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib
-LC:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2/../../..
-LC:/msys64/mingw64/x86_64-w64-mingw32/lib -lstdc++ -lmingw32 -lgcc_s -lgcc
-lmoldname -lmingwex -lmsvcrt -lpthread -ladvapi32 -lshell32 -luser32
-lkernel32 -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/crtend.o
   -o .libs/libgdal-1.dll -Wl,--enable-auto-image-base -Xlinker
--out-implib -Xlinker .libs/libgdal.dll.a
frmts\\o\\.libs\\cexternalchannel.o:cexternalchannel.cpp:(.text+0x860):
multiple definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
frmts\\o\\.libs\\cpcidskchannel.o:cpcidskchannel.cpp:(.text+0x430):
multiple definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
frmts\\o\\.libs\\cpixelinterleavedchannel.o:cpixelinterleavedchannel.cpp:(.text+0x630):
multiple definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
frmts\\o\\.libs\\ctiledchannel.o:ctiledchannel.cpp:(.text+0x0): multiple
definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
frmts\\o\\.libs\\jpeg2000_vsil_io.o:jpeg2000_vsil_io.cpp:(.text+0x110):
multiple definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
frmts\\o\\.libs\\pcidsk_utils.o:pcidsk_utils.cpp:(.text+0x200): multiple
definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
frmts\\o\\.libs\\pcidskdataset2.o:pcidskdataset2.cpp:(.text+0x1f0):
multiple definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
frmts\\o\\.libs\\pcrastermisc.o:pcrastermisc.cpp:(.text+0x10): multiple
definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
frmts\\o\\.libs\\pcrasterutil.o:pcrasterutil.cpp:(.text+0x10): multiple
definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
frmts\\o\\.libs\\rikdataset.o:rikdataset.cpp:(.text+0x1920): multiple
definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
port\\.libs\\cpl_minizip_unzip.o:cpl_minizip_unzip.cpp:(.text+0xb10):
multiple definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
ogr\\ogrsf_frmts\\o\\.libs\\gmlutils.o:gmlutils.cpp:(.text+0x30): multiple
definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
ogr\\ogrsf_frmts\\o\\.libs\\gtm.o:gtm.cpp:(.text+0xb0): multiple definition
of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
ogr\\ogrsf_frmts\\o\\.libs\\ogrvfkdatasource.o:ogrvfkdatasource.cpp:(.text+0x110):
multiple definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
ogr\\ogrsf_frmts\\o\\.libs\\ogrvfkdriver.o:ogrvfkdriver.cpp:(.text+0xf0):
multiple definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
ogr\\ogrsf_frmts\\o\\.libs\\ogrvfklayer.o:ogrvfklayer.cpp:(.text+0xc0):
multiple definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
ogr\\ogrsf_frmts\\o\\.libs\\vfkdatablocksqlite.o:vfkdatablocksqlite.cpp:(.text+0x0):
multiple definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
ogr\\ogrsf_frmts\\o\\.libs\\vfkfeature.o:vfkfeature.cpp:(.text+0x170):
multiple definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
ogr\\ogrsf_frmts\\o\\.libs\\vfkfeaturesqlite.o:vfkfeaturesqlite.cpp:(.text+0x40):
multiple definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
ogr\\ogrsf_frmts\\o\\.libs\\vfkproperty.o:vfkproperty.cpp:(.text+0x90):
multiple definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
ogr\\ogrsf_frmts\\o\\.libs\\vfkpropertydefn.o:vfkpropertydefn.cpp:(.text+0x70):
multiple definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
ogr\\ogrsf_frmts\\o\\.libs\\vfkreader.o:vfkreader.cpp:(.text+0x290):
multiple definition of `asctime_r(tm const*, char*)'
frmts\\o\\.libs\\cbandinterleavedchannel.o:cbandinterleavedchannel.cpp:(.text+0x1060):
first defined here
collect2.exe: error: ld returned 1 exit status


GNUmakefile:41: recipe for target 'libgdal.la' failed
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory
'/c/git/MINGW-packages/mingw-w64-gdal/src/gdal-1.11.1'
GNUmakefile:50: recipe for target 'check-lib' failed
make: *** [check-lib] Error 2


Regards,
Alexey.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to