Mike Jagdis replied:
> You appear to have a broken distribution which contains
> some ancient kernel headers. /usr/include/asm is usually
> a symlink to your current kernel source include/asm. From
> at least as early as 2.0.30 the name of the structure
> was sigcontext_struct.

Actually, I think he's got a brand new set of headers, version 2.2.0-pre9
a.k.a. 2.2.0-final.  There is no sigcontext_struct defined in any file
within include/asm.  There is however a sigcontext structure.

from include/asm/sigcontext.h (included in signal.h):
struct sigcontext {
        unsigned short gs, __gsh;
        unsigned short fs, __fsh;
        unsigned short es, __esh;
        unsigned short ds, __dsh;
        unsigned long edi;
        unsigned long esi;
        unsigned long ebp;
        unsigned long esp;
        unsigned long ebx;
        unsigned long edx;
        unsigned long ecx;
        unsigned long eax;
        unsigned long trapno;
        unsigned long err;
        unsigned long eip;
        unsigned short cs, __csh;
        unsigned long eflags;
        unsigned long esp_at_signal;
        unsigned short ss, __ssh;
        struct _fpstate * fpstate;
        unsigned long oldmask;
        unsigned long cr2;
};

I can get it to compile (warnings below) but it dies unable to attach the
modem. Modem is /dev/ttyS1, same config works perfectly with 0.16.5.  No
changes to Makefile or config.h needed for install options, compiled make
depend; make; make install.

gcc = 2.8.1, libc6 = 2.0.7

HTH,

Lourdes


----
# make
cc -Wall -O2 -pipe -DTCP_WRAPPERS    -c diald.c -o diald.o
diald.c: In function `signal_setup':
diald.c:427: warning: assignment from incompatible pointer type
diald.c:428: warning: assignment from incompatible pointer type
diald.c:429: warning: assignment from incompatible pointer type
diald.c:431: warning: assignment from incompatible pointer type
...
timer.c: In function `validate_function':
timer.c:86: warning: comparison of distinct pointer types lacks a cast
timer.c:87: warning: comparison of distinct pointer types lacks a cast
...
log.c: In function `xstrerror':
log.c:14: warning: return discards `const' from pointer target type
...
----
diald[279]: /tmp/diald.info: full monitor connection
diald[279]: Trigger: udp          10.0.0.1/1024       128.8.10.90/53
diald[279]: Calling site 10.0.0.2
diald[279]: failed to set modem to controlling tty: Operation not permitted
diald[279]: Diald is dieing with code 1
----


-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to