Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* opie-2.3.1 compile, inconsistent operand constraints
@ 1997-10-13 23:15 vbajaj
  0 siblings, 0 replies; 4+ messages in thread
From: vbajaj @ 1997-10-13 23:15 UTC (permalink / raw)


When trying to compile opie-2.3.1., I get the following:

opielogin.c: In function `main':
opielogin.c:835: unknown register name `di' in `asm'
opielogin.c:835: unknown register name `cx' in `asm'
opielogin.c:835: inconsistent operand constraints in an `asm'
opielogin.c:835: inconsistent operand constraints in an `asm'
opielogin.c:835: inconsistent operand constraints in an `asm'

The lines from opielogin.c are as follows.  Any suggestions would
be appreciated.

Thanks,

Vik

(starting at line 824)

/* If talking to an rlogin process, propagate the terminal type and baud rate
   across the network. */
  if (rflag)
    doremoteterm(term);
  else {
    struct termios termios;
    fd_set fds;
    struct timeval timeval;

    memset(&timeval, 0, sizeof(struct timeval));

    FD_ZERO(&fds);
    FD_SET(0, &fds);

#if HAVE_USLEEP
    usleep(1);
#endif /* HAVE_USLEEP */

    if (select(1, &fds, NULL, NULL, &timeval)) {
#ifdef DEBUG
      syslog(LOG_DEBUG, "reading user name from tty buffer");
#endif /* DEBUG */

      if (tcgetattr(0, &termios)) {
#ifdef DEBUG
       syslog(LOG_DEBUG, "tcgetattr(

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

* Re: opie-2.3.1 compile, inconsistent operand constraints
       [not found] <19971013231547.20605.qmail@grt-213-117.resnet.upenn.edu>
@ 1997-10-13 23:59 ` Richard Henderson
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 1997-10-13 23:59 UTC (permalink / raw)


On Mon, Oct 13, 1997 at 07:15:47PM -0400, vbajaj@grt-213-117.resnet.upenn.edu wrote:
> When trying to compile opie-2.3.1., I get the following:
> 
> opielogin.c: In function `main':
> opielogin.c:835: unknown register name `di' in `asm'
> opielogin.c:835: unknown register name `cx' in `asm'

Somehow you've managed to get Intel headers on your alpha.  Probably
misconfiguring a kernel in /usr/src.

r~

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

* Re: opie-2.3.1 compile, inconsistent operand constraints
@ 1997-10-14  0:33 Przemek Klosowski
  1997-10-14 19:45 ` vbajaj
  0 siblings, 1 reply; 4+ messages in thread
From: Przemek Klosowski @ 1997-10-14  0:33 UTC (permalink / raw)


Vik writes
   When trying to compile opie-2.3.1., I get the following:

   opielogin.c: In function `main':
   opielogin.c:835: unknown register name `di' in `asm'
   opielogin.c:835: unknown register name `cx' in `asm'

and line 835 is around

       memset(&timeval, 0, sizeof(struct timeval));

       FD_ZERO(&fds);
       FD_SET(0, &fds);

Clearly something injects asm() code, and it is 8086 assembly code
instead of AXP assembly. You will have to analyze #define and #include
directives in opielogin.c to see why this happens. The code doesn't
look like it relies on asm() so I expect it should be easy to force
it to compile without them.

	p

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

* Re: opie-2.3.1 compile, inconsistent operand constraints
  1997-10-14  0:33 Przemek Klosowski
@ 1997-10-14 19:45 ` vbajaj
  0 siblings, 0 replies; 4+ messages in thread
From: vbajaj @ 1997-10-14 19:45 UTC (permalink / raw)


| Clearly something injects asm() code, and it is 8086 assembly code
| instead of AXP assembly. You will have to analyze #define and #include
| directives in opielogin.c to see why this happens. The code doesn't

I was asleep at the switch and linked the asm include directory to
asm-i386.  Correcting this stupid mistake fixed the compile problem.

--Vik

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

end of thread, other threads:[~1997-10-14 19:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-10-13 23:15 opie-2.3.1 compile, inconsistent operand constraints vbajaj
     [not found] <19971013231547.20605.qmail@grt-213-117.resnet.upenn.edu>
1997-10-13 23:59 ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1997-10-14  0:33 Przemek Klosowski
1997-10-14 19:45 ` vbajaj

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