🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #97

Driver Compiling Problem w/libc.a

#97
From: John Wesley Herberg
Date: Thu, 23 Jul 1992 18:28
11 lines
1103 bytes
I am writing a driver and am having problems compiling it whenever I reference
a routine from the c library.  I compile the driver modules into one using
ld -x -r & then attempt to compile that module into the kernel.  Whenever I
do, I receive a "Duplicate symbol free in libc.a(malloc.o)" error.  

I know this has something to do w/how archive libraries are linked , but
don't know how to avoid it.  I'd greatly appreciate if someone could help
me out.
-- 
-----------------------------------------------------------------------
John W. Herberg	     		      Internet: herberj@prism.cs.orst.edu
Technical Details
Message-ID: <1992Jul23.182824.1156@CS.ORST.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!wupost!sdd.hp.com!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!orstcs!orstcs!usenetusenet

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!wupost!sdd.hp.com!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!orstcs!orstcs!usenetusenet
From: herberj@prism.CS.ORST.EDU (John Wesley Herberg)
Newsgroups: comp.unix.programmer,comp.unix.misc
Subject: Driver Compiling Problem w/libc.a
Message-ID: <1992Jul23.182824.1156@CS.ORST.EDU>
Date: 23 Jul 92 18:28:24 GMT
Sender: usenet@CS.ORST.EDU
Organization: Oregon State University, Computer Science Dept.
Lines: 11
Nntp-Posting-Host: prism.cs.orst.edu