info-mtools
[Top][All Lists]
Advanced

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

[Info-mtools] Re: Linker error when built on Cygwin


From: Peter Lee
Subject: [Info-mtools] Re: Linker error when built on Cygwin
Date: Tue, 5 May 2009 17:52:14 +1000

The target mtools version is mtools-4.0.10.tar.gz

On Tue, May 5, 2009 at 5:48 PM, Peter Lee <address@hidden> wrote:
 
Building environment:
 
$ ls /lib/*iconv*
/lib/libiconv.a  /lib/libiconv.dll.a  /lib/libiconv.la
 
$ gcc --version
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
After run ./configure make, the gcc linker throws error messages:
 
---
gcc  buffer.o charsetConv.o code
pages.o config.o copyfile.o devices.o dirCache.o directory.o direntry.o expand.o
 fat.o fat_free.o file.o file_name.o filter.o floppyd_io.o force_io.o hash.o ini
t.o llong.o match.o mainloop.o mattrib.o mbadblocks.o mcat.o mcd.o mclasserase.o
 mcopy.o mdel.o mdir.o mdoctorfat.o mdu.o mformat.o minfo.o misc.o missFuncs.o m
k_direntry.o mlabel.o mmd.o mmount.o mmove.o mpartition.o mshowfat.o mzip.o mtoo
ls.o patchlevel.o plain_io.o precmd.o privileges.o scsi.o signal.o stream.o stre
amcache.o subdir.o unixdir.o tty.o vfat.o xdf_io.o -o mtools
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: warning: au
to-importing has been activated without --enable-auto-import specified on the co
mmand line.
This should work unless it involves constant data structures referencing symbols
 from auto-imported DLLs.charsetConv.o: In function `getWcharCp':
/home/lenovo/mtools-4.0.10/charsetConv.c:58: undefined reference to `_libiconv_o
pen'
/home/lenovo/mtools-4.0.10/charsetConv.c:62: undefined reference to `_libiconv'
/home/lenovo/mtools-4.0.10/charsetConv.c:72: undefined reference to `_libiconv_c
lose'
charsetConv.o: In function `cp_open':
/home/lenovo/mtools-4.0.10/charsetConv.c:109: undefined reference to `_libiconv_
open'
/home/lenovo/mtools-4.0.10/charsetConv.c:117: undefined reference to `_libiconv_
open'
/home/lenovo/mtools-4.0.10/charsetConv.c:121: undefined reference to `_libiconv_
open'
/home/lenovo/mtools-4.0.10/charsetConv.c:124: undefined reference to `_libiconv_
close'
charsetConv.o: In function `cp_close':
/home/lenovo/mtools-4.0.10/charsetConv.c:140: undefined reference to `_libiconv_
close'
/home/lenovo/mtools-4.0.10/charsetConv.c:141: undefined reference to `_libiconv_
close'
charsetConv.o: In function `dos_to_wchar':
/home/lenovo/mtools-4.0.10/charsetConv.c:151: undefined reference to `_libiconv'

charsetConv.o: In function `safe_iconv':
/home/lenovo/mtools-4.0.10/charsetConv.c:173: undefined reference to `_libiconv'

charsetConv.o: In function `wchar_to_native':
/home/lenovo/mtools-4.0.10/charsetConv.c:333: undefined reference to `_libiconv_
open'
/home/lenovo/mtools-4.0.10/charsetConv.c:335: undefined reference to `_libiconv_
open'
Info: resolving __timezone by linking to __imp___timezone (auto-import)
Info: resolving _optind by linking to __imp__optind (auto-import)
collect2: ld returned 1 exit status
make: *** [mtools] Error 1
-----
 

 
 
Regards
 
P


reply via email to

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