9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: mirtchov@cpsc.ucalgary.ca
To: 9fans@cse.psu.edu
Subject: [9fans] malloc redefinition when linking pcc with 8c programs
Date: Mon,  1 Dec 2003 11:13:25 -0700	[thread overview]
Message-ID: <bdd73f6b00105132baf7c3dac1fe0921@plan9.ucalgary.ca> (raw)

I'm having this problem I can't get around -- trying to link .8 files
compiled with ape/pcc and .8 files compiled with 8c I get the
following:

	malloc: /386/lib/libc.a(mallocz): redefinition: malloc
	(1012)	TEXT	malloc+0(SB),$24
	free: /386/lib/libc.a(mallocz): redefinition: free
	(1041)	TEXT	free+0(SB),$12
	realloc: /386/lib/libc.a(mallocz): redefinition: realloc
	(1049)	TEXT	realloc+0(SB),$28
	calloc: /386/lib/libc.a(mallocz): redefinition: calloc
	(1078)	TEXT	calloc+0(SB),$24
	atexit: /386/lib/libc.a(exits): redefinition: atexit
	(776)	TEXT	atexit+0(SB),$16

Any ideas?

andrey



             reply	other threads:[~2003-12-01 18:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-01 18:13 mirtchov [this message]
2003-12-01 19:43 ` Russ Cox
2003-12-01 20:00   ` mirtchov
2003-12-01 20:54     ` Latchesar Ionkov
2003-12-01 21:20       ` boyd, rounin
2003-12-01 21:43       ` andrey mirtchovski
2003-12-01 21:53         ` Russ Cox
2003-12-01 22:13           ` mirtchov
2003-12-01 23:05             ` Hugo Santos
2003-12-01 23:10               ` Russ Cox
2003-12-01 23:21                 ` Hugo Santos
2003-12-02  0:05                   ` David Arnold
2003-12-01 21:11     ` Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bdd73f6b00105132baf7c3dac1fe0921@plan9.ucalgary.ca \
    --to=mirtchov@cpsc.ucalgary.ca \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).