www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1996/11/07/19:16:37

From: colin AT fu DOT is DOT saga-u DOT ac DOT jp (Colin Peters)
Subject: Multiple def of .idata$2 compiling with tcl/tk
7 Nov 1996 19:16:37 -0800 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199611080204.LAA12278.cygnus.gnu-win32@bird.fu.is.saga-u.ac.jp>
Original-To: kasian AT nit DOT AirTouch DOT COM
Original-CC: gnu-win32 AT cygnus DOT com
In-reply-to: Kasian Franks's message of Thu, 7 Nov 1996 11:16:04 -0800 <199611071916.LAA19200@maui>
Original-Sender: owner-gnu-win32 AT cygnus DOT com

> From: kasian AT nit DOT AirTouch DOT COM (Kasian Franks)
> Date: Thu, 7 Nov 1996 11:16:04 -0800
> 
> I keep getting this error:
> 
> /usr/bin/ld.exe: /usr/lib/libtcl76.a(TCL76.DLL): warning: \
> ignoring duplicate section `.text'
> /usr/lib/libtk4.2a(TK42.DLL)(.idata$2+0x0): multiple definition of \
> `.idata$2'
> 
> 
> As you can see Im trying to compile with the tcl/tk libs:
> 
> gcc -o hello.exe hello -ltcl76 -ltk42
> 
> The program compiles fine under msvc++, with the exception of 
> a "string to big" error which I cant figure out how to solve,
> which is why I'd like a more simply intuitive compiler package.
> 
> All the libraries have been tested by SunLabs, and hopefully
> havent been corrupted somehow.
> 
> side note: If you know how to fix the "string to big" error in
> vc++ let me know - thanks

I have to admit that this is beyond me. I dug around in a test executable I
made with objdump and nm and basically found .idata$2 three times, apparently
related to the symbols __head__..._libuser32_a and such (constructed from the
full path of the original import libraries it seems). Nm reported each
..idata$2 as type '?', which is not mentioned in the nm documentation I have.

That exhausts my knowledge of what is going on here. I am not particularly
familiar with this kind of thing, so maybe someone on the gnu-win32 mailing
list can help (I have forwarded this to the list).

Sorry I can't be more help.

Colin.

------------------------------------------------------------------------------
Colin Peters ------------ Saga Univ. Dept. of Information Science, Saga, JAPAN
http://www.fu.is.saga-u.ac.jp/~colin/home.html - colin AT bird DOT fu DOT is DOT saga-u DOT ac DOT jp
$@%3%j%s!&%T!<%?!<%:(J  $@:42lBg3X>pJs2J3X2J>pJs4pAC9V:B(J
$@0lHV9%$-$J4A;z$O!V AT 2$l!W$H!V<G AT 8!W$G$9!#(J:)
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019