Configure error - openSSL. Mac OS X

Mark Andrews marka at isc.org
Tue Mar 11 05:13:20 UTC 2014


Mark Andrews writes:
> 
> In message <CC69566A-E662-4CEE-AF15-A9629F591654 at bordo.com.au>, James Brown w
> ri
> tes:
> >
> > On 11 Mar 2014, at 2:15 pm, Mark Andrews <marka at isc.org> wrote:
> >
> > >
> > > The first thing is that configure has decided that we are cross
> > > compiling which is because the simple executable did not run.
> > >
> > > configure:3472: checking whether we are cross compiling
> > > configure:3510: result: yes
> > >
> > > I haven't upgraded my machine to Mavericks yet so I can't test this.
> > > The version of clang you are using works with 10.8.5 so the first
> > > thing I would do is make sure you are completely up to date at the
> > > OS level.
> > >
> > > The program that configure is trying to compile and run is:
> > >
> > > #include <stdio.h>
> > > int
> > > main ()
> > > {
> > > FILE *f = fopen ("conftest.out", "w");
> > > return ferror (f) || fclose (f) != 0;
> > >
> > >  ;
> > >  return 0;
> > > }
> > >
> > > So I would do that by hand.
> > >
> > > gcc -o conftest    conftest.c
> > > ./conftest
> >
> > gcc can't find contest.c, and neither can I!
> >
> > BordoDNS:bind-9.9.5 me$ gcc -o conftest    conftest.c
> > clang: error: no such file or directory: 'conftest.c'
> > clang: error: no input files
> 
> I didn't think I would need to say "save the contents of the program to
> conftest.c".
> 
> cat > conftest.c << 'EOF'
> #include <stdio.h>
> int
> main ()
> {
> FILE *f = fopen ("conftest.out", "w");
> return ferror (f) || fclose (f) != 0;
> 
> ;
>  return 0;
> }
> EOF
> gcc -o conftest    conftest.c
> ./conftest

and add "echo $?" at the end to report the exit status.
 
> > James.
> > --
> > Mark Andrews, ISC
> > 1 Seymour St., Dundas Valley, NSW 2117, Australia
> > PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org


More information about the bind-users mailing list