public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] netkit-rsh ./configure problem
@ 2009-08-15 18:20 Albert Hopkins
  2009-08-15 18:23 ` Albert Hopkins
  2009-08-15 19:38 ` [gentoo-user] " pk
  0 siblings, 2 replies; 14+ messages in thread
From: Albert Hopkins @ 2009-08-15 18:20 UTC (permalink / raw
  To: gentoo-user

I can't get netkit-rsh (not that I want it but it's an (indirect)
runtime dependency of xinit).  This is a brand new machine that I'm
building.

Basically the error is:

        Checking for BSD signal semantics... no
        This package needs BSD signal semantics to run.
        sed: can't read MCONFIG: No such file or directory


Upon inspection of the ./configure script, I see it is compiling and
running the following snippet:

#include <unistd.h>
#include <signal.h>
int count=0;
void handle(int foo) { count++; }
int main() {
    int pid=getpid();
    signal(SIGINT, handle);
    kill(pid,SIGINT);
    kill(pid,SIGINT);
    kill(pid,SIGINT);
    if (count!=3) return 1;
    return 0;
}

If I compile this on the target machine, it exits with 1. I checked and
count=0.  If I compile this on another machine it exits with 0.  Even
when I take the compiled exe from the other machine and copy it to the
target machine it exits 1.

This is disturbing.

Any ideas?

2.6.30-gentoo-r5
sys-devel/gcc-4.4.1
sys-libs/glibc-2.10.1
sys-kernel/linux-headers-2.6.30-r1





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

* Re: [gentoo-user] netkit-rsh ./configure problem
  2009-08-15 18:20 [gentoo-user] netkit-rsh ./configure problem Albert Hopkins
@ 2009-08-15 18:23 ` Albert Hopkins
  2009-08-15 19:08   ` Andrey Falko
  2009-08-15 19:38 ` [gentoo-user] " pk
  1 sibling, 1 reply; 14+ messages in thread
From: Albert Hopkins @ 2009-08-15 18:23 UTC (permalink / raw
  To: gentoo-user

I should also mention that I also can't, for example, press CTRL-C at
the shell prompt to exit a program (such as emerge).  So somehow (some)
signals are not being sent/received.

-a





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

* Re: [gentoo-user] netkit-rsh ./configure problem
  2009-08-15 18:23 ` Albert Hopkins
@ 2009-08-15 19:08   ` Andrey Falko
  2009-08-15 19:22     ` Albert Hopkins
  0 siblings, 1 reply; 14+ messages in thread
From: Andrey Falko @ 2009-08-15 19:08 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 381 bytes --]

On Sat, Aug 15, 2009 at 11:23 AM, Albert Hopkins <marduk@letterboxes.org>wrote:

> I should also mention that I also can't, for example, press CTRL-C at
> the shell prompt to exit a program (such as emerge).  So somehow (some)
> signals are not being sent/received.
>
> -a
>
>
>
>
It looks like you sys-process/procps might be broke in some way. Try:

emerge -1 sys-process/procps

[-- Attachment #2: Type: text/html, Size: 708 bytes --]

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

* Re: [gentoo-user] netkit-rsh ./configure problem
  2009-08-15 19:08   ` Andrey Falko
@ 2009-08-15 19:22     ` Albert Hopkins
  2009-08-15 19:29       ` [gentoo-user] " Nikos Chantziaras
  0 siblings, 1 reply; 14+ messages in thread
From: Albert Hopkins @ 2009-08-15 19:22 UTC (permalink / raw
  To: gentoo-user

On Sat, 2009-08-15 at 12:08 -0700, Andrey Falko wrote:
> On Sat, Aug 15, 2009 at 11:23 AM, Albert Hopkins
> <marduk@letterboxes.org> wrote:
>         I should also mention that I also can't, for example, press
>         CTRL-C at
>         the shell prompt to exit a program (such as emerge).  So
>         somehow (some)
>         signals are not being sent/received.
>         
>         -a
>         
>         
>         
> 
> It looks like you sys-process/procps might be broke in some way. Try: 

Thanks for the suggestion but, unfortunately, no dice.  For some reason
I think this has something to do with the kernel or glibc (or some
combo).  I should mention also that I used (for the first time) the
minimal snapshot (which I guess is the only one supported) and also the
stage3 snapshot and also this is ~amd64.

 I may just try to do an 'emerge -e world' and see what happens.

-a





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

* [gentoo-user]  Re: netkit-rsh ./configure problem
  2009-08-15 19:22     ` Albert Hopkins
@ 2009-08-15 19:29       ` Nikos Chantziaras
  2009-08-15 19:36         ` Albert Hopkins
  0 siblings, 1 reply; 14+ messages in thread
From: Nikos Chantziaras @ 2009-08-15 19:29 UTC (permalink / raw
  To: gentoo-user

On 08/15/2009 10:22 PM, Albert Hopkins wrote:
> Thanks for the suggestion but, unfortunately, no dice.  For some reason
> I think this has something to do with the kernel or glibc (or some
> combo).  I should mention also that I used (for the first time) the
> minimal snapshot (which I guess is the only one supported) and also the
> stage3 snapshot and also this is ~amd64.
>
>   I may just try to do an 'emerge -e world' and see what happens.

If 'emerge -e system' won't fix it, I doubt 'emerge -e world' will. 
Perhaps it's some configuration (/etc) issue.




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

* Re: [gentoo-user]  Re: netkit-rsh ./configure problem
  2009-08-15 19:29       ` [gentoo-user] " Nikos Chantziaras
@ 2009-08-15 19:36         ` Albert Hopkins
  0 siblings, 0 replies; 14+ messages in thread
From: Albert Hopkins @ 2009-08-15 19:36 UTC (permalink / raw
  To: gentoo-user

On Sat, 2009-08-15 at 22:29 +0300, Nikos Chantziaras wrote:
> On 08/15/2009 10:22 PM, Albert Hopkins wrote:
> > Thanks for the suggestion but, unfortunately, no dice.  For some reason
> > I think this has something to do with the kernel or glibc (or some
> > combo).  I should mention also that I used (for the first time) the
> > minimal snapshot (which I guess is the only one supported) and also the
> > stage3 snapshot and also this is ~amd64.
> >
> >   I may just try to do an 'emerge -e world' and see what happens.
> 
> If 'emerge -e system' won't fix it, I doubt 'emerge -e world' will. 
> Perhaps it's some configuration (/etc) issue.

Hmmm.. I don't think people are seeing the original post in this thread.
I can hardly see how that's a problem with config files.

I haven't done an 'emerge -e system' so I don't know that won't fix it.

The problem is processes seem not to receive SIGINT.  The C code snippet
from the original post doesn't work.  CTRL-C within bash doesn't work.
'kill <pid>' doesn't work (kill -9 <pid> does).  AFAIK there is no
config file in /etc that makes the entire OS ignore SIGINT.

-a





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

* Re: [gentoo-user] netkit-rsh ./configure problem
  2009-08-15 18:20 [gentoo-user] netkit-rsh ./configure problem Albert Hopkins
  2009-08-15 18:23 ` Albert Hopkins
@ 2009-08-15 19:38 ` pk
  2009-08-15 19:50   ` Albert Hopkins
  1 sibling, 1 reply; 14+ messages in thread
From: pk @ 2009-08-15 19:38 UTC (permalink / raw
  To: gentoo-user

Albert Hopkins wrote:
> I can't get netkit-rsh (not that I want it but it's an (indirect)
> runtime dependency of xinit).  This is a brand new machine that I'm
> building.
> 
> Basically the error is:
> 
>         Checking for BSD signal semantics... no
>         This package needs BSD signal semantics to run.
>         sed: can't read MCONFIG: No such file or directory

Hm. I may be way off here but do you have CONFIG_BSD_PROCESS_ACCT=y in
your kernel .config?

Best regards

Peter K



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

* Re: [gentoo-user] netkit-rsh ./configure problem
  2009-08-15 19:38 ` [gentoo-user] " pk
@ 2009-08-15 19:50   ` Albert Hopkins
  2009-08-15 20:23     ` Albert Hopkins
  0 siblings, 1 reply; 14+ messages in thread
From: Albert Hopkins @ 2009-08-15 19:50 UTC (permalink / raw
  To: gentoo-user

On Sat, 2009-08-15 at 21:38 +0200, pk wrote:
> Albert Hopkins wrote:
> > I can't get netkit-rsh (not that I want it but it's an (indirect)
> > runtime dependency of xinit).  This is a brand new machine that I'm
> > building.
> > 
> > Basically the error is:
> > 
> >         Checking for BSD signal semantics... no
> >         This package needs BSD signal semantics to run.
> >         sed: can't read MCONFIG: No such file or directory
> 
> Hm. I may be way off here but do you have CONFIG_BSD_PROCESS_ACCT=y in
> your kernel .config?

Cheers.  That was it.  For some reason I glossed over that thinking it
only had to do with sar but I guess not.

Thanks again,
-a





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

* Re: [gentoo-user] netkit-rsh ./configure problem
  2009-08-15 19:50   ` Albert Hopkins
@ 2009-08-15 20:23     ` Albert Hopkins
  2009-08-16  3:10       ` Andrey Falko
  0 siblings, 1 reply; 14+ messages in thread
From: Albert Hopkins @ 2009-08-15 20:23 UTC (permalink / raw
  To: gentoo-user

On Sat, 2009-08-15 at 15:50 -0400, Albert Hopkins wrote:
> On Sat, 2009-08-15 at 21:38 +0200, pk wrote:
> > Albert Hopkins wrote:
> > > I can't get netkit-rsh (not that I want it but it's an (indirect)
> > > runtime dependency of xinit).  This is a brand new machine that I'm
> > > building.
> > > 
> > > Basically the error is:
> > > 
> > >         Checking for BSD signal semantics... no
> > >         This package needs BSD signal semantics to run.
> > >         sed: can't read MCONFIG: No such file or directory
> > 
> > Hm. I may be way off here but do you have CONFIG_BSD_PROCESS_ACCT=y in
> > your kernel .config?
> 
> Cheers.  That was it.  For some reason I glossed over that thinking it
> only had to do with sar but I guess not.

Maybe I spoke too soon... Either I was on the wrong system when I tested
or there's some inconsistency.  Nevertheless the problem doesn't appear
fixed :(





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

* Re: [gentoo-user] netkit-rsh ./configure problem
  2009-08-15 20:23     ` Albert Hopkins
@ 2009-08-16  3:10       ` Andrey Falko
  2009-08-16 11:35         ` pk
  0 siblings, 1 reply; 14+ messages in thread
From: Andrey Falko @ 2009-08-16  3:10 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1336 bytes --]

On Sat, Aug 15, 2009 at 1:23 PM, Albert Hopkins <marduk@letterboxes.org>wrote:

> On Sat, 2009-08-15 at 15:50 -0400, Albert Hopkins wrote:
> > On Sat, 2009-08-15 at 21:38 +0200, pk wrote:
> > > Albert Hopkins wrote:
> > > > I can't get netkit-rsh (not that I want it but it's an (indirect)
> > > > runtime dependency of xinit).  This is a brand new machine that I'm
> > > > building.
> > > >
> > > > Basically the error is:
> > > >
> > > >         Checking for BSD signal semantics... no
> > > >         This package needs BSD signal semantics to run.
> > > >         sed: can't read MCONFIG: No such file or directory
> > >
> > > Hm. I may be way off here but do you have CONFIG_BSD_PROCESS_ACCT=y in
> > > your kernel .config?
> >
> > Cheers.  That was it.  For some reason I glossed over that thinking it
> > only had to do with sar but I guess not.
>
> Maybe I spoke too soon... Either I was on the wrong system when I tested
> or there's some inconsistency.  Nevertheless the problem doesn't appear
> fixed :(
>
>
Have you done an update to this system where glibc might have been upgraded
but not gcc or vice versa? Have you updated any system packages in general
on the system? As was mentioned earlier an emerge -e system might solve the
problem. If not, then we'll know that it's not a problem with one of the
system packages.

[-- Attachment #2: Type: text/html, Size: 1887 bytes --]

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

* Re: [gentoo-user] netkit-rsh ./configure problem
  2009-08-16  3:10       ` Andrey Falko
@ 2009-08-16 11:35         ` pk
  2009-08-16 11:55           ` Albert Hopkins
  2009-08-16 12:41           ` Alan McKinnon
  0 siblings, 2 replies; 14+ messages in thread
From: pk @ 2009-08-16 11:35 UTC (permalink / raw
  To: gentoo-user

Andrey Falko wrote:

> Have you done an update to this system where glibc might have been upgraded
> but not gcc or vice versa? Have you updated any system packages in general
> on the system? As was mentioned earlier an emerge -e system might solve the
> problem. If not, then we'll know that it's not a problem with one of the
> system packages.

Questions (I don't know the answers): Doesn't glibc need a rebuild after
kernel reconfiguration (such as CONFIG_BSD_...)? I mean glibc doesn't
support (kernel) options that the kernel doesn't support, right? Is
glibc built against sanitized kernel headers or the "real" kernel
headers (/usr/src/linux/include)?

Best regards

Peter K



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

* Re: [gentoo-user] netkit-rsh ./configure problem
  2009-08-16 11:35         ` pk
@ 2009-08-16 11:55           ` Albert Hopkins
  2009-08-16 12:41           ` Alan McKinnon
  1 sibling, 0 replies; 14+ messages in thread
From: Albert Hopkins @ 2009-08-16 11:55 UTC (permalink / raw
  To: gentoo-user

On Sun, 2009-08-16 at 13:35 +0200, pk wrote:

> Questions (I don't know the answers): Doesn't glibc need a rebuild after
> kernel reconfiguration (such as CONFIG_BSD_...)? I mean glibc doesn't
> support (kernel) options that the kernel doesn't support, right? Is
> glibc built against sanitized kernel headers or the "real" kernel
> headers (/usr/src/linux/include)?

I really don't think it was the CONFIG_BSD_PROCESS_ACCT option (I spoke
too soon).  I'm pretty sure that's for tools like sar and also the
system where I'm not having this issue doesn't have that option either.

I'm not sure what it was.  I decided to rebuild the system.  This time I
used the 2008.0 stage 3 instead of the snapshot.  Also I'm using
amd64/baselayout-1 until I get everything configured the way I want it
and then switch to ~amd64.  So far things are working fine.  I'm not
sure what exactly the issue was before but I'm going to take things a
little slower this time and keep my fingers crossed :)

Thanks to everyone for their input.

-a
 




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

* Re: [gentoo-user] netkit-rsh ./configure problem
  2009-08-16 11:35         ` pk
  2009-08-16 11:55           ` Albert Hopkins
@ 2009-08-16 12:41           ` Alan McKinnon
  2009-08-16 19:10             ` pk
  1 sibling, 1 reply; 14+ messages in thread
From: Alan McKinnon @ 2009-08-16 12:41 UTC (permalink / raw
  To: gentoo-user

On Sunday 16 August 2009 13:35:44 pk wrote:
> Is
> glibc built against sanitized kernel headers or the "real" kernel
> headers (/usr/src/linux/include)?

The former.

One can not rely on the state of the latter.

-- 
alan dot mckinnon at gmail dot com



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

* Re: [gentoo-user] netkit-rsh ./configure problem
  2009-08-16 12:41           ` Alan McKinnon
@ 2009-08-16 19:10             ` pk
  0 siblings, 0 replies; 14+ messages in thread
From: pk @ 2009-08-16 19:10 UTC (permalink / raw
  To: gentoo-user

Alan McKinnon wrote:
> On Sunday 16 August 2009 13:35:44 pk wrote:
>> Is
>> glibc built against sanitized kernel headers or the "real" kernel
>> headers (/usr/src/linux/include)?
> 
> The former.
> 
> One can not rely on the state of the latter.

Thanks for the clarification!

Best regards

Peter K



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

end of thread, other threads:[~2009-08-16 19:10 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-15 18:20 [gentoo-user] netkit-rsh ./configure problem Albert Hopkins
2009-08-15 18:23 ` Albert Hopkins
2009-08-15 19:08   ` Andrey Falko
2009-08-15 19:22     ` Albert Hopkins
2009-08-15 19:29       ` [gentoo-user] " Nikos Chantziaras
2009-08-15 19:36         ` Albert Hopkins
2009-08-15 19:38 ` [gentoo-user] " pk
2009-08-15 19:50   ` Albert Hopkins
2009-08-15 20:23     ` Albert Hopkins
2009-08-16  3:10       ` Andrey Falko
2009-08-16 11:35         ` pk
2009-08-16 11:55           ` Albert Hopkins
2009-08-16 12:41           ` Alan McKinnon
2009-08-16 19:10             ` pk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox