From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net From: Richard Miller <9fans@hamnavoe.com> Date: Fri, 2 Sep 2016 11:20:47 +0100 In-Reply-To: <23E1A816-343E-4081-8A46-A7D7AFD91B2F@yahoo.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Linker and duplicate symbols Topicbox-Message-UUID: 9c3d5e5e-ead9-11e9-9d60-3106f5b1d025 > I have recently run into a problem when compiling the kernel where the linker complains about duplicate symbols and fails. The symbol is sleep(), which is exported in libc.a but is also exported in another file in port, but with different parameters (both number and type). Shouldn't happen (TM). The duplicate sleep may be a side effect of some other error (undefined symbol?) which is getting ld confused. I suggest finding the invocation of ld (or $LD) in the mkfile and inserting a copy of the command with "echo" prepended, to see exactly what's being linked; then have a good look at all the error messages and see if there's anything obvious you can clear up which could make the duplicate sleep go away too. Otherwise you could post the ld line and error messages to get more eyes looking at the problem ...