Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.os2.programmer.misc > #1257 > unrolled thread
| Started by | "Dave Saville" <dave@invalid.invalid> |
|---|---|
| First post | 2013-09-20 13:52 +0000 |
| Last post | 2013-09-21 14:25 +0000 |
| Articles | 6 — 3 participants |
Back to article view | Back to comp.os.os2.programmer.misc
conflicting types for `openpty' "Dave Saville" <dave@invalid.invalid> - 2013-09-20 13:52 +0000
Re: conflicting types for `openpty' Dave Yeo <dave.r.yeo@gmail.com> - 2013-09-20 07:42 -0700
Re: conflicting types for `openpty' "Dave Saville" <dave@invalid.invalid> - 2013-09-20 16:27 +0000
Re: conflicting types for `openpty' "Dave Saville" <dave@invalid.invalid> - 2013-09-20 18:30 +0000
Re: conflicting types for `openpty' Lars Erdmann <lars.erdmann@arcor.de> - 2013-09-20 20:57 +0200
Re: conflicting types for `openpty' "Dave Saville" <dave@invalid.invalid> - 2013-09-21 14:25 +0000
| From | "Dave Saville" <dave@invalid.invalid> |
|---|---|
| Date | 2013-09-20 13:52 +0000 |
| Subject | conflicting types for `openpty' |
| Message-ID | <fV45K0OBJxbE-pn2-RdPfdmPSCiEj@paddington.bear.den> |
I am trying to build openssh 6.3p1
[U:\ports\ssh\openssh-6.3p1-os2]make
(cd openbsd-compat && make.exe)
make.exe[1]: Entering directory
`U:/ports/ssh/openssh-6.3p1-os2/openbsd-compat'
gcc -D__EMX__ -DOS2 -DTCPV40HDRS -D__ST_MT_ERRNO__ -O2 -Wall
-Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security
-fno-strict-aliasing -D_FORTIFY_SOURCE=2 -fno-builtin-memset -I.
-I.. -I. -I./.. -DHAVE_CONFIG_H -c bsd-openpty.c
In file included from ../includes.h:174,
from bsd-openpty.c:35:
../openbsd-compat/openbsd-compat.h:185: warning: `struct winsize'
declared inside parameter list
../openbsd-compat/openbsd-compat.h:185: warning: its scope is only this
definition or declaration, which is probably not what you want
bsd-openpty.c:78: warning: `struct winsize' declared inside parameter
list
bsd-openpty.c:79: error: conflicting types for `openpty'
../openbsd-compat/openbsd-compat.h:185: error: previous declaration of
`openpty'
make.exe[1]: *** [bsd-openpty.o] Error 1
make.exe[1]: Leaving directory
`U:/ports/ssh/openssh-6.3p1-os2/openbsd-compat'
make: *** [openbsd-compat/libopenbsd-compat.a] Error 2
bsd-openpty.c:79: error: conflicting types for `openpty'
The above is what has got me puzzled.
bsd-openpty.c
int
openpty(int *amaster, int *aslave, char *name, struct termios *termp,
struct winsize *winp)
openbsd-compat.h
int openpty(int *, int *, char *, struct termios *, struct winsize *);
How do they differ?
Can I persuade gcc to give more info?
TIA
--
Regards
Dave Saville
[toc] | [next] | [standalone]
| From | Dave Yeo <dave.r.yeo@gmail.com> |
|---|---|
| Date | 2013-09-20 07:42 -0700 |
| Message-ID | <523c5ec3$0$12547$c3e8da3$69010069@news.astraweb.com> |
| In reply to | #1257 |
Dave Saville wrote: > bsd-openpty.c:79: error: conflicting types for `openpty' > > The above is what has got me puzzled. > > bsd-openpty.c > int > openpty(int *amaster, int *aslave, char *name, struct termios *termp, > struct winsize *winp) > > openbsd-compat.h > > int openpty(int *, int *, char *, struct termios *, struct winsize *); Have you updated to the layest 4.4.6 version of GCC? If not you should as it seems to fix this kind of bug Dave
[toc] | [prev] | [next] | [standalone]
| From | "Dave Saville" <dave@invalid.invalid> |
|---|---|
| Date | 2013-09-20 16:27 +0000 |
| Message-ID | <fV45K0OBJxbE-pn2-pXD6v8YDQYBT@paddington.bear.den> |
| In reply to | #1258 |
On Fri, 20 Sep 2013 14:42:09 UTC, Dave Yeo <dave.r.yeo@gmail.com> wrote: > Dave Saville wrote: > > bsd-openpty.c:79: error: conflicting types for `openpty' > > > > The above is what has got me puzzled. > > > > bsd-openpty.c > > int > > openpty(int *amaster, int *aslave, char *name, struct termios *termp, > > struct winsize *winp) > > > > openbsd-compat.h > > > > int openpty(int *, int *, char *, struct termios *, struct winsize *); > > Have you updated to the layest 4.4.6 version of GCC? If not you should > as it seems to fix this kind of bug > Dave No - Using Paul's build system but still on 335. Will try a later version. Ta. -- Regards Dave Saville
[toc] | [prev] | [next] | [standalone]
| From | "Dave Saville" <dave@invalid.invalid> |
|---|---|
| Date | 2013-09-20 18:30 +0000 |
| Message-ID | <fV45K0OBJxbE-pn2-LJbZ9f1FE7Xs@paddington.bear.den> |
| In reply to | #1258 |
On Fri, 20 Sep 2013 14:42:09 UTC, Dave Yeo <dave.r.yeo@gmail.com> wrote: > Dave Saville wrote: > > bsd-openpty.c:79: error: conflicting types for `openpty' > > > > The above is what has got me puzzled. > > > > bsd-openpty.c > > int > > openpty(int *amaster, int *aslave, char *name, struct termios *termp, > > struct winsize *winp) > > > > openbsd-compat.h > > > > int openpty(int *, int *, char *, struct termios *, struct winsize *); > > Have you updated to the layest 4.4.6 version of GCC? If not you should > as it seems to fix this kind of bug > Dave Later -rwxr-xr-x 1 0 0 212952 Apr 30 2012 gcc.exe No change :-( -- Regards Dave Saville
[toc] | [prev] | [next] | [standalone]
| From | Lars Erdmann <lars.erdmann@arcor.de> |
|---|---|
| Date | 2013-09-20 20:57 +0200 |
| Message-ID | <523c9a9c$0$6625$9b4e6d93@newsspool2.arcor-online.net> |
| In reply to | #1257 |
To me it sounds like either "struct termios" or "struct winsize" is not defined anywhere. That in turn sounds like some include file is missing or not properly included. Lars Dave Saville schrieb: > I am trying to build openssh 6.3p1 > > [U:\ports\ssh\openssh-6.3p1-os2]make > (cd openbsd-compat&& make.exe) > make.exe[1]: Entering directory > `U:/ports/ssh/openssh-6.3p1-os2/openbsd-compat' > gcc -D__EMX__ -DOS2 -DTCPV40HDRS -D__ST_MT_ERRNO__ -O2 -Wall > -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security > -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -fno-builtin-memset -I. > -I.. -I. -I./.. -DHAVE_CONFIG_H -c bsd-openpty.c > In file included from ../includes.h:174, > from bsd-openpty.c:35: > ../openbsd-compat/openbsd-compat.h:185: warning: `struct winsize' > declared inside parameter list > ../openbsd-compat/openbsd-compat.h:185: warning: its scope is only this > definition or declaration, which is probably not what you want > bsd-openpty.c:78: warning: `struct winsize' declared inside parameter > list > bsd-openpty.c:79: error: conflicting types for `openpty' > ../openbsd-compat/openbsd-compat.h:185: error: previous declaration of > `openpty' > > make.exe[1]: *** [bsd-openpty.o] Error 1 > make.exe[1]: Leaving directory > `U:/ports/ssh/openssh-6.3p1-os2/openbsd-compat' > make: *** [openbsd-compat/libopenbsd-compat.a] Error 2 > > bsd-openpty.c:79: error: conflicting types for `openpty' > > The above is what has got me puzzled. > > bsd-openpty.c > int > openpty(int *amaster, int *aslave, char *name, struct termios *termp, > struct winsize *winp) > > openbsd-compat.h > > int openpty(int *, int *, char *, struct termios *, struct winsize *); > > How do they differ? > > Can I persuade gcc to give more info? > > TIA
[toc] | [prev] | [next] | [standalone]
| From | "Dave Saville" <dave@invalid.invalid> |
|---|---|
| Date | 2013-09-21 14:25 +0000 |
| Message-ID | <fV45K0OBJxbE-pn2-DJcJyUqtL4ub@paddington.bear.den> |
| In reply to | #1263 |
On Fri, 20 Sep 2013 18:57:31 UTC, Lars Erdmann <lars.erdmann@arcor.de> wrote: > To me it sounds like either "struct termios" or "struct winsize" is not > defined anywhere. That in turn sounds like some include file is missing > or not properly included. > Got it in one - the former. This code as *so* many ifdefs it's very hard to figure out. -- Regards Dave Saville
[toc] | [prev] | [standalone]
Back to top | Article view | comp.os.os2.programmer.misc
csiph-web