#8 ./configure problems on Tiger (Mac OS X)


On Mac OS X 10.4.(3,4,5) with Xcode 2.2.1 (gcc 4.0.1)
the configure command don't work

is there a way to fix this?

> % ./configure
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking for style of include used by make... GNU
> checking dependency style of gcc... gcc3
> checking whether make sets $(MAKE)... (cached) yes
> checking for ranlib... ranlib
> checking for bison... bison -y
> checking for flex... flex
> checking for yywrap in -lfl... yes
> checking lex output file root... lex.yy
> checking whether yytext is a pointer... yes
> checking whether to enable maintainer-specific portions of
Makefiles... no
> checking for library containing syslog... no
> checking for vsyslog... no
> checking whether byte ordering is bigendian... yes
> checking how to run the C preprocessor... gcc -E
> checking for egrep... grep -E
> checking for ANSI C header files... no
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for byte... no
> checking for ushort... yes
> checking for ulong... no
> checking for u16... no
> checking for u32... no
> checking for u64... no
> checking for unsigned short... yes
> checking size of unsigned short... configure: error: cannot compute
> sizeof (unsigned short), 77
> See `config.log' for more details.


configure:4889: checking size of unsigned short
configure:5208: gcc -o conftest -g -O2 -static -static conftest.c >&5
ld: can't locate file for: -lcrt0.o
configure:5211: $? = 1
configure: program exited with status 1


  • Richard van den Berg

    • assigned_to: nobody --> rvdb
    • status: open --> pending
  • Richard van den Berg

    Logged In: YES

    It seems that Mac OS X does not support static linking.
    Aide is linked statically by default for security reasons.

    In the configure script, find the lines that say:


    Just above them, add this line:


    This should make configure use dynamic linking.

    Please report back here how it goes. It might be a good idea
    to make a --disable-static option for configure.

  • Nobody/Anonymous

    Logged In: NO

    Hi rvdb,
    thanks for your fast reply ...

    ./configure now works ... but ... the problem is in the 'make' process ...

    make all-recursive
    Making all in src
    bison -y -d -p conf -o conf_yacc.c /Users/test/aide-0.11/src/conf_yacc.y
    if gcc -DHAVE_CONFIG_H -I. -I/Users/test/aide-0.11/src -I.. -I/Users/test/
    aide-0.11/include -g -O2 -g -O2 -MT conf_yacc.o -MD -MP -MF ".deps/
    conf_yacc.Tpo" -c -o conf_yacc.o conf_yacc.c; \ then mv -f ".deps/conf_yacc.Tpo" ".deps/conf_yacc.Po"; else rm -f ".deps/
    conf_yacc.Tpo"; exit 1; fi
    flex -l -Pconf -oconf_lex.c /Users/test/aide-0.11/src/conf_lex.l
    if gcc -DHAVE_CONFIG_H -I. -I/Users/test/aide-0.11/src -I.. -I/Users/test/
    aide-0.11/include -g -O2 -g -O2 -MT conf_lex2.o -MD -MP -MF ".deps/
    conf_lex2.Tpo" -c -o conf_lex2.o conf_lex2.c; \ then mv -f ".deps/conf_lex2.Tpo" ".deps/conf_lex2.Po"; else rm -f ".deps/
    conf_lex2.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I/Users/test/aide-0.11/src -I.. -I/Users/test/
    aide-0.11/include -g -O2 -g -O2 -MT getopt.o -MD -MP -MF ".deps/
    getopt.Tpo" -c -o getopt.o getopt.c; \ then mv -f ".deps/getopt.Tpo" ".deps/getopt.Po"; else rm -f ".deps/
    getopt.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I/Users/test/aide-0.11/src -I.. -I/Users/test/
    aide-0.11/include -g -O2 -g -O2 -MT getopt1.o -MD -MP -MF ".deps/
    getopt1.Tpo" -c -o getopt1.o getopt1.c; \ then mv -f ".deps/getopt1.Tpo" ".deps/getopt1.Po"; else rm -f ".deps/
    getopt1.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I/Users/test/aide-0.11/src -I.. -I/Users/test/
    aide-0.11/include -g -O2 -g -O2 -MT gnu_regex.o -MD -MP -MF ".deps/
    gnu_regex.Tpo" -c -o gnu_regex.o gnu_regex.c; \ then mv -f ".deps/gnu_regex.Tpo" ".deps/gnu_regex.Po"; else rm -f ".deps/
    gnu_regex.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I/Users/test/aide-0.11/src -I.. -I/Users/test/
    aide-0.11/include -g -O2 -g -O2 -MT error.o -MD -MP -MF ".deps/
    error.Tpo" -c -o error.o error.c; \ then mv -f ".deps/error.Tpo" ".deps/error.Po"; else rm -f ".deps/error.Tpo";
    exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I/Users/test/aide-0.11/src -I.. -I/Users/test/
    aide-0.11/include -g -O2 -g -O2 -MT md.o -MD -MP -MF ".deps/
    md.Tpo" -c -o md.o md.c; \ then mv -f ".deps/md.Tpo" ".deps/md.Po"; else rm -f ".deps/md.Tpo"; exit 1;
    if gcc -DHAVE_CONFIG_H -I. -I/Users/test/aide-0.11/src -I.. -I/Users/test/
    aide-0.11/include -g -O2 -g -O2 -MT db.o -MD -MP -MF ".deps/db.Tpo"
    -c -o db.o db.c; \ then mv -f ".deps/db.Tpo" ".deps/db.Po"; else rm -f ".deps/db.Tpo"; exit 1; fi
    In file included from db.c:45:
    /Users/test/aide-0.11/include/util.h:60: error: conflicting types for 'strnstr'
    /usr/include/string.h:103: error: previous declaration of 'strnstr' was here
    db.c: In function 'base64totime_t':
    db.c:440: warning: pointer targets in passing argument 1 of 'strtol' differ in
    make[2]: *** [db.o] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2

    any tips ??

    thanks again

  • Richard van den Berg

    Logged In: YES

    Ok, there is a conflict with strnstr. I think I resolved
    this in the new CVS version. Please try
    http://www.vdberg.org/aide-CVS-20060317.tar.gz and report
    back here. You will need to tweak the configure script again.

  • Nobody/Anonymous

    Logged In: NO

    IT WORKS !!

    i've tested the building (configure, make, make install) process on three hosts
    running gcc4 and 4.01 and it worked lie a charm !!

    i can't test with Mac OS X 10.3.x and/or gcc 3.3 / 3.0 cause i haven't installed
    it... but if you are interesed i can install and post the results.

    thanks a million ...

  • Richard van den Berg

    Logged In: YES

    You can use the CVS snapshot of aide at
    and use configure with the --disable-static option. Please
    open a new bug if aide does not work on any of the other
    systems you try.

  • Richard van den Berg

    • status: pending --> closed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks