Luke, Thanks for the reply.
Ok, the first error was an easy one. I did the bzero
replacement already. The next one was fairly easy too
just a proper casting. #3 however, is much more
adnsrblcheck.c:163: conversion from `u_long' to
non-scalar type `in_addr'
It corresponds to a line
I am not familiar with this so I took a chance and
just commented it out to see if it would compile and
I had to add 2 libraries -lws2_32 -liphlpapi to the
LIBS in the makefile. With those changes, it compiles
and links. I am sure it does not work completely
however, since I commented out that line.
Actually, I am using both the cygwin -mno-cygwin AND
the Dev-C++ compiler which is MinGW. The cygwin just
makes it easier to capture error messages.
I appreciate your patience with me. Thanks.
--- Luke Dunstan <coder_infidel@...> wrote:
> ----- Original Message -----
> From: "Andrew Lynch" <lynchaj@...>
> To: <mingw-users@...>
> Sent: Friday, November 29, 2002 9:31 AM
> Subject: [Mingw-users] Re: porting rblcheck to MinGW
> > OK,
> > I have tried to build a minimum rblcheck based on
> > linking to the adns dll supplied with the GNU
> > adns package.
> > http://adns.jgaa.com/
> > Basically, just unzip the attached file into a
> > directory and make
> > As you can see, the program does not compile as
> > g++.exe -c adnsrblcheck.c -o adnsrblcheck.o -I"./"
> > -g3 -mno-cygwin
> > adnsrblcheck.c: In function `int main(int,
> > adnsrblcheck.c:115: `bzero' undeclared (first use
> > function)
> > adnsrblcheck.c:115: (Each undeclared identifier is
> > reported only once for each
> > function it appears in.)
> > adnsrblcheck.c:161: invalid conversion from `int'
> > `adns_queryflags'
> > adnsrblcheck.c:163: conversion from `u_long' to
> > non-scalar type `in_addr'
> > requested
> > make: *** [adnsrblcheck.o] Error 1
> > bzero() is defined in string.h under regular
> > but cygwin (-mno-cygwin) MinGW apparently does not
> > support that function.
> Firstly, this list is for discussion of MinGW and
> using the Cygwin compiler
> with -mno-cygwin does not really come under this
> category, so IIRC this is
> off-topic. Anyway, you are correct that there is no
> bzero() in the MSVCRT
> library, because it is a BSD function not ANSI. If
> you look up the
> documentation for bzero (I don't know where) you'll
> find that memset() can
> easily be substituted. The other errors are probably
> because you are
> compiling the program as C++ when it is actually C
> (use gcc instead of g++).
> > I have included a simple Dev-C++ project.
> > I have tried building the GNU Win32 adns library
> > scratch, but it has so many errors and since the
> > adnsrblcheck does not compile yet, that seems kind
> > pointless right now.
> > Anyone have any ideas as to how to fix this?
> > Apologies to anyone who hates getting attachments
> > mailing lists, I really tried to make this as
> small as
> > possible to minimize the load.
> > Andrew Lynch
> > PS, I suspect once we get this to compile and
> > that we'll need to add the -mms-bitfields option
> > get it to link properly. We can burn that bridge
> > we get there :-)
> Luke Dunstan
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.