* Conflict with zftp + tcp modules?
@ 2003-04-15 21:59 Bart Schaefer
2003-04-21 11:49 ` Borzenkov Andrey
0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2003-04-15 21:59 UTC (permalink / raw)
To: zsh-workers
I hadn't noticed this until I attempted to statically include both modules
in the same build:
In file included from zftp.c:53:
zftp.mdh:6: warning: `boot_' redefined
tcp.mdh:6: warning: this is the location of the previous definition
zftp.mdh:7: warning: `cleanup_' redefined
tcp.mdh:7: warning: this is the location of the previous definition
zftp.mdh:8: warning: `setup_' redefined
tcp.mdh:8: warning: this is the location of the previous definition
zftp.mdh:9: warning: `finish_' redefined
tcp.mdh:9: warning: this is the location of the previous definition
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Conflict with zftp + tcp modules?
2003-04-15 21:59 Conflict with zftp + tcp modules? Bart Schaefer
@ 2003-04-21 11:49 ` Borzenkov Andrey
2003-04-23 17:47 ` Peter Stephenson
0 siblings, 1 reply; 3+ messages in thread
From: Borzenkov Andrey @ 2003-04-21 11:49 UTC (permalink / raw)
To: 'Bart Schaefer', zsh-workers
>
> I hadn't noticed this until I attempted to statically include both modules
> in the same build:
>
> In file included from zftp.c:53:
> zftp.mdh:6: warning: `boot_' redefined
> tcp.mdh:6: warning: this is the location of the previous definition
> zftp.mdh:7: warning: `cleanup_' redefined
> tcp.mdh:7: warning: this is the location of the previous definition
> zftp.mdh:8: warning: `setup_' redefined
> tcp.mdh:8: warning: this is the location of the previous definition
> zftp.mdh:9: warning: `finish_' redefined
> tcp.mdh:9: warning: this is the location of the previous definition
it was never intended to work this way. Zftp.c includes zftp.mdh and tcp.h
that in turn includes tcp.mdh. mdh is expected to _the_ only and single mdh
for the module being compiled; having two mdh's is wrong.
Oliver, Peter, could you look in tcp and see if you can move tcp.mdh into
tcp.c?
-andrey
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Conflict with zftp + tcp modules?
2003-04-21 11:49 ` Borzenkov Andrey
@ 2003-04-23 17:47 ` Peter Stephenson
0 siblings, 0 replies; 3+ messages in thread
From: Peter Stephenson @ 2003-04-23 17:47 UTC (permalink / raw)
To: zsh-workers
Borzenkov Andrey wrote:
> it was never intended to work this way. Zftp.c includes zftp.mdh and tcp.h
> that in turn includes tcp.mdh. mdh is expected to _the_ only and single mdh
> for the module being compiled; having two mdh's is wrong.
>
> Oliver, Peter, could you look in tcp and see if you can move tcp.mdh =
> into
> tcp.c?
Seems to be trivial, at least it doesn't generate any new errors or
warnings here.
Index: Src/Modules/tcp.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/tcp.c,v
retrieving revision 1.34
diff -u -r1.34 tcp.c
--- Src/Modules/tcp.c 6 Feb 2003 12:21:49 -0000 1.34
+++ Src/Modules/tcp.c 23 Apr 2003 18:37:06 -0000
@@ -34,6 +34,7 @@
* doesn't exist on cygwin.
*/
#include "tcp.h"
+#include "tcp.mdh"
/*
* We use poll() in preference to select because some subset of manuals says
Index: Src/Modules/tcp.h
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/tcp.h,v
retrieving revision 1.6
diff -u -r1.6 tcp.h
--- Src/Modules/tcp.h 2 Oct 2001 02:35:01 -0000 1.6
+++ Src/Modules/tcp.h 23 Apr 2003 18:37:06 -0000
@@ -83,7 +83,6 @@
int flags;
};
-#include "tcp.mdh"
#include "tcp.pro"
#ifndef INET_ADDRSTRLEN
--
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
Work: pws@csr.com
Web: http://www.pwstephenson.fsnet.co.uk
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-04-23 18:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-15 21:59 Conflict with zftp + tcp modules? Bart Schaefer
2003-04-21 11:49 ` Borzenkov Andrey
2003-04-23 17:47 ` Peter Stephenson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).