* compile problem @ 2001-10-25 6:44 Frans J King 2001-10-25 10:54 ` Keith Seitz 0 siblings, 1 reply; 3+ messages in thread From: Frans J King @ 2001-10-25 6:44 UTC (permalink / raw) To: gdb I'm not sure if this is the right place to be posting this byt here goes. I can't compile gdb version 5.0 upwards for arm-elf. The command to configure I use is ./configure --host=i686-pc-gnu --target=arm-elf --prefix=/usr/local Once I begin the make, it fails at pty_termios.c in the expect directory. pty_termios.c:174 conflicting types for 'slave_name' pty_termios.c:135 previous declaration of 'slave_name' pty_termios.c: In function 'exp_getptymaster': pty_termios.c:377: incompatible types in assignment and fails with error 1 and 2 ? Thanks ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: compile problem 2001-10-25 6:44 compile problem Frans J King @ 2001-10-25 10:54 ` Keith Seitz 2001-10-25 11:27 ` Frans J King 0 siblings, 1 reply; 3+ messages in thread From: Keith Seitz @ 2001-10-25 10:54 UTC (permalink / raw) To: Frans J King; +Cc: gdb On 25 Oct 2001, Frans J King wrote: > I'm not sure if this is the right place to be posting this byt here > goes. This is the right place AFAICT. > I can't compile gdb version 5.0 upwards for arm-elf. The command to > configure I use is ./configure --host=i686-pc-gnu --target=arm-elf > --prefix=/usr/local Three things followed by a lot of conjecture... 1) Don't use 5.0 for arm. It's really broken. Get something newer. 2) If you're configuring for building on the same machine you're running on, don't specify "--host", it's not needed. I have had strange experiences with configure when I specified "--host and --target" but not "--build". So specify ALL three or just "--target" to be safe. I'm not saying this is the cause of your problem, or that this is necesssarily a problem. It is just my experience. YMMV. 3) On what host system are you trying to build (os, vendor)? > Once I begin the make, it fails at pty_termios.c in the expect > directory. > > pty_termios.c:174 conflicting types for 'slave_name' > pty_termios.c:135 previous declaration of 'slave_name' > pty_termios.c: In function 'exp_getptymaster': > pty_termios.c:377: incompatible types in assignment This is in expect, of all places. Your conflict is happening because both HAVE_OPENPTY and one (or more) of HAVE__GETPTY, HAVE_PTC_PTS, or HAVE_PTMX is defined by configure. Sounds like configure is messed up about something. HAVE_OPENPTY will get defined when openpty () exists, but only for non-linux hosts. If you're using linux, then #2 above is a solution to your problem. You'll know you've got this in your build, too, because "ac_cv_func_openpty" will be set to "yes" in config.cache. HAVE_PTC_PTS is defined when "AIX new-style pty allocation" exists, i.e., /dev/ptc exists but /dev/pts does not. I doubt this is your problem. HAVE_PTMX is defined when "SVR4 style pty allocation" exists, i.e., /dev/ptmx exists, and sysVr4 ptys are determined to be broken. Unlikely to be your problem. My guess: the openpty thing. Keith ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: compile problem 2001-10-25 10:54 ` Keith Seitz @ 2001-10-25 11:27 ` Frans J King 0 siblings, 0 replies; 3+ messages in thread From: Frans J King @ 2001-10-25 11:27 UTC (permalink / raw) To: Keith Seitz; +Cc: gdb Thanks for your help. I've had success with ./configure --target=arm-sim-elf --prefix=/usr/local -v No problems with the build and the simulator seems to work fine. (Running under RedHat 7.1 on an AMD Duron) Frans On Thu, 2001-10-25 at 18:54, Keith Seitz wrote: > On 25 Oct 2001, Frans J King wrote: > > > I'm not sure if this is the right place to be posting this byt here > > goes. > > This is the right place AFAICT. > > > I can't compile gdb version 5.0 upwards for arm-elf. The command to > > configure I use is ./configure --host=i686-pc-gnu --target=arm-elf > > --prefix=/usr/local > > Three things followed by a lot of conjecture... > > 1) Don't use 5.0 for arm. It's really broken. Get something newer. > 2) If you're configuring for building on the same machine you're running > on, don't specify "--host", it's not needed. I have had strange > experiences with configure when I specified "--host and --target" but > not "--build". So specify ALL three or just "--target" to be safe. > I'm not saying this is the cause of your problem, or that this is > necesssarily a problem. It is just my experience. YMMV. > 3) On what host system are you trying to build (os, vendor)? > > > Once I begin the make, it fails at pty_termios.c in the expect > > directory. > > > > pty_termios.c:174 conflicting types for 'slave_name' > > pty_termios.c:135 previous declaration of 'slave_name' > > pty_termios.c: In function 'exp_getptymaster': > > pty_termios.c:377: incompatible types in assignment > > This is in expect, of all places. Your conflict is happening because both > HAVE_OPENPTY and one (or more) of HAVE__GETPTY, HAVE_PTC_PTS, or HAVE_PTMX > is defined by configure. Sounds like configure is messed up about > something. > > HAVE_OPENPTY will get defined when openpty () exists, but only for > non-linux hosts. If you're using linux, then #2 above is a solution to > your problem. You'll know you've got this in your build, too, because > "ac_cv_func_openpty" will be set to "yes" in config.cache. > > HAVE_PTC_PTS is defined when "AIX new-style pty allocation" exists, i.e., > /dev/ptc exists but /dev/pts does not. I doubt this is your problem. > > HAVE_PTMX is defined when "SVR4 style pty allocation" exists, i.e., > /dev/ptmx exists, and sysVr4 ptys are determined to be broken. Unlikely to > be your problem. > > My guess: the openpty thing. > > Keith > > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-10-25 11:27 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2001-10-25 6:44 compile problem Frans J King 2001-10-25 10:54 ` Keith Seitz 2001-10-25 11:27 ` Frans J King
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox