public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Binutils 2.11 and BSDI 4.2
@ 2001-08-11 19:58 Aaron Schlesinger
  2001-08-12  2:06 ` Nick Clifton
  0 siblings, 1 reply; 10+ messages in thread
From: Aaron Schlesinger @ 2001-08-11 19:58 UTC (permalink / raw)
  To: binutils

Hi there, trying to update my build environment on a
BSDI 4.2 system. binutils is dieing on the make.
Belows a snip of the death. Any insights would be
nice!

gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -D_GNU_SOURCE
-DTRAD_CORE -I. -I../../bf
d -I../../bfd/../include -I../../bfd/../intl -I../intl
-W -Wall -g -O2 -c ../../
bfd/trad-core.c -o trad-core.o
../../bfd/trad-core.c: In function
`trad_unix_core_file_p':
../../bfd/trad-core.c:99: structure has no member
named `u_dsize'
../../bfd/trad-core.c:104: structure has no member
named `u_ssize'
../../bfd/trad-core.c:121: structure has no member
named `u_dsize'
../../bfd/trad-core.c:125: structure has no member
named `u_ssize'
../../bfd/trad-core.c:132: structure has no member
named `u_dsize'
../../bfd/trad-core.c:132: structure has no member
named `u_ssize'
../../bfd/trad-core.c:182: structure has no member
named `u_dsize'
../../bfd/trad-core.c:187: structure has no member
named `u_ssize'
../../bfd/trad-core.c:201: `USRSTACK' undeclared
(first use in this function)
../../bfd/trad-core.c:201: (Each undeclared identifier
is reported only once
../../bfd/trad-core.c:201: for each function it
appears in.)
../../bfd/trad-core.c:201: structure has no member
named `u_ssize'
../../bfd/trad-core.c:218: structure has no member
named `u_ar0'
../../bfd/trad-core.c:221: structure has no member
named `u_dsize'
../../bfd/trad-core.c: In function
`trad_unix_core_file_failing_signal':
../../bfd/trad-core.c:260: structure has no member
named `u_sig'
../../bfd/trad-core.c:264: warning: control reaches
end of non-void function
make[3]: *** [trad-core.lo] Error 1
make[3]: Leaving directory
`/usr/source/binutils-2.11.2/objdir/bfd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/usr/source/binutils-2.11.2/objdir/bfd'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory
`/usr/source/binutils-2.11.2/objdir/bfd'
make: *** [all-bfd] Error 2



__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

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

* Re: Binutils 2.11 and BSDI 4.2
  2001-08-11 19:58 Binutils 2.11 and BSDI 4.2 Aaron Schlesinger
@ 2001-08-12  2:06 ` Nick Clifton
  2001-08-14  6:53   ` Aaron Schlesinger
  0 siblings, 1 reply; 10+ messages in thread
From: Nick Clifton @ 2001-08-12  2:06 UTC (permalink / raw)
  To: Aaron Schlesinger; +Cc: binutils

Hi Aaron,

> Hi there, trying to update my build environment on a  BSDI 4.2
> system. binutils is dieing on the make.  Belows a snip of the
> death. Any insights would be nice!

What kind of machine are you building this on ?

> ../../bfd/trad-core.c:99: structure has no member
> named `u_dsize'

This appears to be a configuration bug.  If you have a look at the
source file bfd/configure.in you will see that it selects different
kinds of core file support depending upon the target triple.  For
BSD based hosts it ought to be selecting netbsd-core rather than
trad-core, so to fix this you need to know what you host is, and then
fix the configure file appropriately.

Cheers
        Nick

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

* Re: Binutils 2.11 and BSDI 4.2
  2001-08-12  2:06 ` Nick Clifton
@ 2001-08-14  6:53   ` Aaron Schlesinger
  2001-08-14  7:16     ` Nick Clifton
  0 siblings, 1 reply; 10+ messages in thread
From: Aaron Schlesinger @ 2001-08-14  6:53 UTC (permalink / raw)
  To: Nick Clifton; +Cc: binutils

Hmm.. I tried resolving this myself, by adding this to
the configure:

i[3456]86-*-bsdi* | i[3456]86-*-netbsd* |
i[3456]86-*-openbsd*)
COREFILE=netbsd-core.lo
;;

It selects netbsd-core as the one to use, but then it
dies on netbsd-core.c since I don't have a sys/core.h
file header on my system.. Any further thoughts?

Thanks

Aaron


--- Nick Clifton <nickc@cambridge.redhat.com> wrote:
> Hi Aaron,
> 
> > Hi there, trying to update my build environment on
> a  BSDI 4.2
> > system. binutils is dieing on the make.  Belows a
> snip of the
> > death. Any insights would be nice!
> 
> What kind of machine are you building this on ?
> 
> > ../../bfd/trad-core.c:99: structure has no member
> > named `u_dsize'
> 
> This appears to be a configuration bug.  If you have
> a look at the
> source file bfd/configure.in you will see that it
> selects different
> kinds of core file support depending upon the target
> triple.  For
> BSD based hosts it ought to be selecting netbsd-core
> rather than
> trad-core, so to fix this you need to know what you
> host is, and then
> fix the configure file appropriately.
> 
> Cheers
>         Nick
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

* Re: Binutils 2.11 and BSDI 4.2
  2001-08-14  6:53   ` Aaron Schlesinger
@ 2001-08-14  7:16     ` Nick Clifton
  2001-08-14 19:10       ` Binutils 2.11 and BSDI 4.2 - **BUG** Aaron Schlesinger
  2001-08-23  7:34       ` Binutils 2.11 and BSDI 4.2 Nick Clifton
  0 siblings, 2 replies; 10+ messages in thread
From: Nick Clifton @ 2001-08-14  7:16 UTC (permalink / raw)
  To: Aaron Schlesinger; +Cc: binutils

Hi Aaron,

> Hmm.. I tried resolving this myself, by adding this to
> the configure:
> 
> i[3456]86-*-bsdi* | i[3456]86-*-netbsd* |
> i[3456]86-*-openbsd*)
> COREFILE=netbsd-core.lo
> ;;
> 
> It selects netbsd-core as the one to use, but then it
> dies on netbsd-core.c since I don't have a sys/core.h
> file header on my system.. Any further thoughts?

How about just not supporting core files on your system ?  

Ie just change your patch to:

  i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
    COREFILE=netbsd-core.lo
    ;;
  i[3456]86-*-bsdi*)
    COREFILE=
    ;;

(Yours is a "bsdi" system isn't it ?).

Cheers
        Nick


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

* Re: Binutils 2.11 and BSDI 4.2 - **BUG**
  2001-08-14  7:16     ` Nick Clifton
@ 2001-08-14 19:10       ` Aaron Schlesinger
  2001-08-14 19:19         ` Greg Lehey
  2001-08-23  7:34       ` Binutils 2.11 and BSDI 4.2 Nick Clifton
  1 sibling, 1 reply; 10+ messages in thread
From: Aaron Schlesinger @ 2001-08-14 19:10 UTC (permalink / raw)
  To: Nick Clifton; +Cc: binutils

Final Resolution of Binutils and 2.11 bug:

There is a configure bug in the bfd directory. BSDI
can't support core files (Thanks to Nick Clifton on
helping me figure this out).

To fix, remove the i[3456]86-*-bsdi* from configures
core selection section and add

i[3456]86-*-bsdi*)
COREFILE=''
;;

This will make it select no core support.

Thanks for the help!

Aaron


--- Nick Clifton <nickc@cambridge.redhat.com> wrote:
> Hi Aaron,
> 
> > Hmm.. I tried resolving this myself, by adding
> this to
> > the configure:
> > 
> > i[3456]86-*-bsdi* | i[3456]86-*-netbsd* |
> > i[3456]86-*-openbsd*)
> > COREFILE=netbsd-core.lo
> > ;;
> > 
> > It selects netbsd-core as the one to use, but then
> it
> > dies on netbsd-core.c since I don't have a
> sys/core.h
> > file header on my system.. Any further thoughts?
> 
> How about just not supporting core files on your
> system ?  
> 
> Ie just change your patch to:
> 
>   i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
>     COREFILE=netbsd-core.lo
>     ;;
>   i[3456]86-*-bsdi*)
>     COREFILE=
>     ;;
> 
> (Yours is a "bsdi" system isn't it ?).
> 
> Cheers
>         Nick
> 
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

* Re: Binutils 2.11 and BSDI 4.2 - **BUG**
  2001-08-14 19:10       ` Binutils 2.11 and BSDI 4.2 - **BUG** Aaron Schlesinger
@ 2001-08-14 19:19         ` Greg Lehey
  2001-08-14 19:33           ` Aaron Schlesinger
  2001-08-15  1:16           ` Nick Clifton
  0 siblings, 2 replies; 10+ messages in thread
From: Greg Lehey @ 2001-08-14 19:19 UTC (permalink / raw)
  To: Aaron Schlesinger; +Cc: Nick Clifton, binutils

On Tuesday, 14 August 2001 at 19:10:08 -0700, Aaron Schlesinger wrote:
>
> Final Resolution of Binutils and 2.11 bug:
>
> There is a configure bug in the bfd directory. BSDI
> can't support core files (Thanks to Nick Clifton on
> helping me figure this out).

Maybe I'm missing something here, but BSD/OS has always supported core
dumping.  Are you talking about something else?

Greg
--
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers

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

* Re: Binutils 2.11 and BSDI 4.2 - **BUG**
  2001-08-14 19:19         ` Greg Lehey
@ 2001-08-14 19:33           ` Aaron Schlesinger
  2001-08-14 19:45             ` Greg Lehey
  2001-08-15  1:16           ` Nick Clifton
  1 sibling, 1 reply; 10+ messages in thread
From: Aaron Schlesinger @ 2001-08-14 19:33 UTC (permalink / raw)
  To: Greg Lehey; +Cc: Nick Clifton, binutils

Maybe so, but I can't get binutils to build with
trad-core OR netbsd-core enabled at this time.

I'm pointing this out as a bug and providing a
workaround since I've seen this problem pop up in the
archives a few times without a resolution offered.


--- Greg Lehey <grog@lemis.com> wrote:
> On Tuesday, 14 August 2001 at 19:10:08 -0700, Aaron
> Schlesinger wrote:
> >
> > Final Resolution of Binutils and 2.11 bug:
> >
> > There is a configure bug in the bfd directory.
> BSDI
> > can't support core files (Thanks to Nick Clifton
> on
> > helping me figure this out).
> 
> Maybe I'm missing something here, but BSD/OS has
> always supported core
> dumping.  Are you talking about something else?
> 
> Greg
> --
> Finger grog@lemis.com for PGP public key
> See complete headers for address and phone numbers


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

* Re: Binutils 2.11 and BSDI 4.2 - **BUG**
  2001-08-14 19:33           ` Aaron Schlesinger
@ 2001-08-14 19:45             ` Greg Lehey
  0 siblings, 0 replies; 10+ messages in thread
From: Greg Lehey @ 2001-08-14 19:45 UTC (permalink / raw)
  To: Aaron Schlesinger; +Cc: Nick Clifton, binutils

[Format recovered--see http://www.lemis.com/email/email-format.html ]

On Tuesday, 14 August 2001 at 19:33:09 -0700, Aaron Schlesinger wrote:
> --- Greg Lehey <grog@lemis.com> wrote:
>> On Tuesday, 14 August 2001 at 19:10:08 -0700, Aaron Schlesinger wrote:
>>>
>>> Final Resolution of Binutils and 2.11 bug:
>>>
>>> There is a configure bug in the bfd directory.  BSDI can't support
>>> core files (Thanks to Nick Clifton on helping me figure this out).
>>
>> Maybe I'm missing something here, but BSD/OS has always supported
>> core dumping.  Are you talking about something else?
>
> Maybe so, but I can't get binutils to build with
> trad-core OR netbsd-core enabled at this time.
>
> I'm pointing this out as a bug and providing a
> workaround since I've seen this problem pop up in the
> archives a few times without a resolution offered.

Which release of BSD/OS is this?  I might be able to take a look.

Greg 
--
When replying to this message, please take care not to mutilate the
original text.  
For more information, see http://www.lemis.com/email.html
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers

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

* Re: Binutils 2.11 and BSDI 4.2 - **BUG**
  2001-08-14 19:19         ` Greg Lehey
  2001-08-14 19:33           ` Aaron Schlesinger
@ 2001-08-15  1:16           ` Nick Clifton
  1 sibling, 0 replies; 10+ messages in thread
From: Nick Clifton @ 2001-08-15  1:16 UTC (permalink / raw)
  To: Greg Lehey; +Cc: Aaron Schlesinger, binutils

Hi Greg,

> Maybe I'm missing something here, but BSD/OS has always supported
> core dumping.  Are you talking about something else?

He is talking about something else - it is the binutils ability to
display the contents of core files that is at stakes here.  In
particular with this patch applied it means that objdump will not be
able to display the contents of a core file created on an x86 BSDI
system.  It will not stop the system from creating them, and debug
tools should still be able to process them, it is just that objdump
will not be able to disassemble them.

Of course if you can work out what is different about core files on
BSDI systems (as opposed to say, netBSD systems), it should be
possible to add support for that format to the BFD library and then
restore binutils' support for core files on BSDI.

Cheers
        Nick

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

* Re: Binutils 2.11 and BSDI 4.2
  2001-08-14  7:16     ` Nick Clifton
  2001-08-14 19:10       ` Binutils 2.11 and BSDI 4.2 - **BUG** Aaron Schlesinger
@ 2001-08-23  7:34       ` Nick Clifton
  1 sibling, 0 replies; 10+ messages in thread
From: Nick Clifton @ 2001-08-23  7:34 UTC (permalink / raw)
  To: Aaron Schlesinger; +Cc: binutils

Hi Aaron,

> Ie just change your patch to:
> 
>   i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
>     COREFILE=netbsd-core.lo
>     ;;
>   i[3456]86-*-bsdi*)
>     COREFILE=
>     ;;

I have applied this change to the CVS sources.

Cheers
        Nick

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

end of thread, other threads:[~2001-08-23  7:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-11 19:58 Binutils 2.11 and BSDI 4.2 Aaron Schlesinger
2001-08-12  2:06 ` Nick Clifton
2001-08-14  6:53   ` Aaron Schlesinger
2001-08-14  7:16     ` Nick Clifton
2001-08-14 19:10       ` Binutils 2.11 and BSDI 4.2 - **BUG** Aaron Schlesinger
2001-08-14 19:19         ` Greg Lehey
2001-08-14 19:33           ` Aaron Schlesinger
2001-08-14 19:45             ` Greg Lehey
2001-08-15  1:16           ` Nick Clifton
2001-08-23  7:34       ` Binutils 2.11 and BSDI 4.2 Nick Clifton

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 read-only IMAP folder(s) and NNTP newsgroup(s).