Re: ProFTPd
Re: ProFTPd
- Subject: Re: ProFTPd
- From: Ondra Cada <email@hidden>
- Date: Sat, 16 Feb 2002 00:49:48 +0100
Jeff,
>
>>>>> Jeff Hergan (JH) wrote at Fri, 15 Feb 2002 13:01:10 -0600:
JH> >You have to find the place where either the OpenTransportProviders.h
JH> >header
JH> >is included, or (which is more probable), where some header which
JH> >includes it
JH> >eventually is included... do you follow?
JH>
JH> OK. I've been messing with this all morning, and I think it's time to
JH> ask for a little help.
JH> (I am having a lot of fun, though :-)
JH>
JH> When you say "I have to find the place where either the
JH> OpenTransportProviders.h header is included" I'm not quite sure _where_
JH> to start looking. I assume that the files I have to grep
The problem is that grep might not be sufficient. Let's see: you are just
compiling the file X.c. It included Y.h, which included Z.h, which....
which... which... which.... which included OpenTransportProviders.h.
This "stack" of included files might be shown by compiler, like this:
63 /tmp> cat > crash.c
#define typedef 0
#include <stdio.h>
64 /tmp> cc crash.c
...
In file included from /usr/include/machine/types.h:30,
from /usr/include/sys/types.h:70,
from /usr/include/stdio.h:64,
from crash.c:2:
/usr/include/ppc/types.h:69: parse error before `0'
...
In file included from /usr/include/stdio.h:64,
from crash.c:2:
/usr/include/sys/types.h:76: parse error before `0'
...
65 /tmp>
If it is so, you would immediately know that the place to add the #undef is
in crash.c before line 2.
If it is not, you have to find this stack manually, which is a boring task.
JH> #ifdef HAVE_NETINET_TCP_H
JH> #include <netinet/tcp.h>
JH> #endif
JH> And this seems like the bsd header that's causing the conflict, right?
If it is so (I dunno), well, just place the #undef immediately after it.
JH> But I'm thinking--after a lot of fiddling--that this is not the file I
JH> need to edit.
I guess simplest would be to add the undef directly to the
OpenTransportProviders.h file...
JH> I can also see there where the tcp.h comes in, but again, nothing about
JH> OpenTransportProviders.h
Well, from _somewhere_ (probably indirectly!!!!) it has to be included,
since the error's reported there ;)
JH> So I did a make -d to get more info.
That's not the kind of info you need. Including has *NOTHING* to do with make.
JH> In file included from
JH> /System/Library/Frameworks/CoreServices.framework/Frameworks/OT.framework/
JH> Headers/OT.h:29, from
JH> /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:25,
JH> from /usr/include/profile.h:17, from /usr/include/krb.h:154,
JH> from mod_unixpw.c:45:
JH> /System/Library/Frameworks/CoreServices.framework/Frameworks/OT.framework/
JH> Headers/OpenTransportProviders.h:110: parse error before `0x01' Got a
That's it, here it is explained in detail: one of the files you (well,
"make", rather ;) are compiling is "mod_unixpw.c". At line 45, it includes
krb.h; it includes profile.h at line 154, and it, at line 17 includes
CoreServices.h. CoreServices,h then, at line 25, includes OT.h, which at line
29 includes OpenTransportProviders.h.... ouch, that was long ;)
So, you might try to place the #undef to mod_unixpw.c before line 45. Or to
krb.h before line 154. Or to profile.h at line 17...
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.