9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Linking error with 8l, guys, could you tell me where to look?
@ 2012-11-26  9:49 keystroke
  2012-11-26 13:25 ` erik quanstrom
  0 siblings, 1 reply; 11+ messages in thread
From: keystroke @ 2012-11-26  9:49 UTC (permalink / raw)
  To: 9fans

The message is:

(2050) DATA  opnames<1>+116(SB)/4,$string<1>+739(SB)
memccpy: multiple initialization
(2170) DATA  etnames<1)+72(SB)/4,$string<1>+912(SB)
memccpy: multiple initialization

I know 2050 is somehow related to the line number where opnames appear in the code, and so is 2170 with etnames.
I know it's suggesting I had an opnames initialized some where, but I just don't know where to look. I read the 8l man, but it seems there is no other docs where I can check for detail information.
Can anybody tell me what the rest number of the message means, where should I look for the duplicate code?

Many thanks guys.



^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [9fans] Linking error with 8l, guys, could you tell
@ 2012-11-29  9:48 keystroke
  0 siblings, 0 replies; 11+ messages in thread
From: keystroke @ 2012-11-29  9:48 UTC (permalink / raw)
  To: 9fans

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 235 bytes --]

在 2012年11月28日星期三UTC+8下午8时48分09秒,erik quanstrom写道:
> you're right.  a quick trip through sort|uniq -d says that FALL is listed
>
> twice.
>
>
>
> - erik

Thank you erik, it's a good lesson.



^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [9fans] Linking error with 8l, guys, could you tell
@ 2012-11-29  9:48 keystroke
  0 siblings, 0 replies; 11+ messages in thread
From: keystroke @ 2012-11-29  9:48 UTC (permalink / raw)
  To: 9fans

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 254 bytes --]

在 2012年11月28日星期三UTC+8下午8时48分09秒,erik quanstrom写道:
> you're right.  a quick trip through sort|uniq -d says that FALL is listed
>
> twice.
>
>
>
> - erik

Thank you erik and Bence, it's a good lesson to learn.



^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [9fans] Linking error with 8l, guys, could you tell
@ 2012-11-29  9:48 keystroke
  0 siblings, 0 replies; 11+ messages in thread
From: keystroke @ 2012-11-29  9:48 UTC (permalink / raw)
  To: 9fans

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1002 bytes --]

在 2012年11月28日星期三UTC+8下午8时22分30秒,Bence Fábián写道:
> but what is _most_ likely is that you really have them initialized two times.
> just do
> g '(op|et)names ?='
>
> you should find 4 initializations. just delete the redundant ones.
>
>
> 2012/11/28 Bence Fábián <beg...@gmail.com>
>
> DATA  opnames<1>+116(SB)/4,$string<1>+739(SB)
>
> and
> DATA  etnames<1)+72(SB)/4,$string<1>+912(SB)
>
>
>
>
> are the second initializations of both opnames and etnames.
>
> you can grep for them in the output of
> 8c -S source.c
>
>
> that's all i can help, cause i can't tell what $string<1>+739(SB) and $string<1>+912(SB) refer to
>
>
> since they are adresses.

Thanks guys, I just look into the list, and suprisingly saw you replying in
a new thread, I am not familiar with newsgroup and didn't saw your reply earlier
the problem is solved. It's a good lesson, eyes can lie, I just didn't use machine to check duplicated initializaion.



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-11-29  9:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-26  9:49 [9fans] Linking error with 8l, guys, could you tell me where to look? keystroke
2012-11-26 13:25 ` erik quanstrom
2012-11-28 10:20   ` [9fans] Linking error with 8l, guys, could you tell keystroke
2012-11-28 11:43     ` Bence Fábián
2012-11-28 11:51       ` lucio
2012-11-28 12:12         ` Bence Fábián
2012-11-28 12:22           ` Bence Fábián
2012-11-28 12:48       ` erik quanstrom
2012-11-29  9:48 keystroke
2012-11-29  9:48 keystroke
2012-11-29  9:48 keystroke

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).