OS X Build Problem

Help
Adrian
2010-02-22
2013-05-08
  • Adrian

    Adrian - 2010-02-22

    Hi, having trouble building in OS X 10.6.2 - can anyone help? (details follow)

    Cheers,
    Adrian

    (I'm building into $HOME/local at the moment - I don't imagine this is causing the problem)

    ./configure CPPFLAGS="-I$HOME/local/include" -prefix=$HOME/local -disable-fuse

    make
    cd . && /bin/sh /Users/adrian/Downloads/afpfs-ng-0.8.1/missing -run aclocal-1.10
    cd . && /bin/sh /Users/adrian/Downloads/afpfs-ng-0.8.1/missing -run automake-1.10 -gnu
    cmdline/Makefile.am:8: compiling `cmdline_afp.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.ac'
    cd . && /bin/sh /Users/adrian/Downloads/afpfs-ng-0.8.1/missing -run autoconf
    /bin/sh ./config.status -recheck
    running CONFIG_SHELL=/bin/sh /bin/sh ./configure  CPPFLAGS=-I/Users/adrian/local/include -prefix=/Users/adrian/local -disable-fuse CFLAGS=-arch i386  -no-create -no-recursion
    checking for a BSD-compatible install… /usr/bin/install -c
    checking whether build environment is sane… yes
    checking for a thread-safe mkdir -p… ./install-sh -c -d
    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 ISO C89… none needed
    checking for style of include used by make… GNU
    checking dependency style of gcc… gcc3
    checking for a BSD-compatible install… /usr/bin/install -c
    checking build system type… i386-apple-darwin10.2.0
    checking host system type… i386-apple-darwin10.2.0
    checking for a sed that does not truncate output… /usr/bin/sed
    checking for grep that handles long lines and -e… /usr/bin/grep
    checking for egrep… /usr/bin/grep -E
    checking for fgrep… /usr/bin/grep -F
    checking for ld used by gcc… /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
    checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld… no
    checking for BSD- or MS-compatible name lister (nm)… /usr/bin/nm
    checking the name lister (/usr/bin/nm) interface… BSD nm
    checking whether ln -s works… yes
    checking the maximum length of command line arguments… 196608
    checking whether the shell understands some XSI constructs… yes
    checking whether the shell understands "+="… yes
    checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload object files… -r
    checking how to recognize dependent libraries… pass_all
    checking for ar… ar
    checking for strip… strip
    checking for ranlib… ranlib
    checking command to parse /usr/bin/nm output from gcc object… ok
    checking for dsymutil… dsymutil
    checking for nmedit… nmedit
    checking for lipo… lipo
    checking for otool… otool
    checking for otool64… no
    checking for -single_module linker flag… yes
    checking for -exported_symbols_list linker flag… yes
    checking how to run the C preprocessor… gcc -E
    checking for ANSI C header files… yes
    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 dlfcn.h… yes
    checking for objdir… .libs
    checking if gcc supports -fno-rtti -fno-exceptions… no
    checking for gcc option to produce PIC… -fno-common -DPIC
    checking if gcc PIC flag -fno-common -DPIC works… yes
    checking if gcc static flag -static works… no
    checking if gcc supports -c -o file.o… yes
    checking if gcc supports -c -o file.o… (cached) yes
    checking whether the gcc linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries… yes
    checking dynamic linker characteristics… darwin10.2.0 dyld
    checking how to hardcode library paths into programs… immediate
    checking whether stripping libraries is possible… yes
    checking if libtool supports shared libraries… yes
    checking whether to build shared libraries… yes
    checking whether to build static libraries… yes
    checking for main in -lncurses… yes
    checking for readline in -lreadline… yes
    checking for pthread_create in -lpthread… yes
    checking for ANSI C header files… (cached) yes
    checking arpa/inet.h usability… yes
    checking arpa/inet.h presence… yes
    checking for arpa/inet.h… yes
    checking fcntl.h usability… yes
    checking fcntl.h presence… yes
    checking for fcntl.h… yes
    checking limits.h usability… yes
    checking limits.h presence… yes
    checking for limits.h… yes
    checking netdb.h usability… yes
    checking netdb.h presence… yes
    checking for netdb.h… yes
    checking stddef.h usability… yes
    checking stddef.h presence… yes
    checking for stddef.h… yes
    checking for stdlib.h… (cached) yes
    checking for string.h… (cached) yes
    checking for strings.h… (cached) yes
    checking sys/socket.h usability… yes
    checking sys/socket.h presence… yes
    checking for sys/socket.h… yes
    checking sys/time.h usability… yes
    checking sys/time.h presence… yes
    checking for sys/time.h… yes
    checking syslog.h usability… yes
    checking syslog.h presence… yes
    checking for syslog.h… yes
    checking for unistd.h… (cached) yes
    checking utime.h usability… yes
    checking utime.h presence… yes
    checking for utime.h… yes
    checking iconv.h usability… yes
    checking iconv.h presence… yes
    checking for iconv.h… yes
    checking for an ANSI C-conforming const… yes
    checking for uid_t in sys/types.h… yes
    checking for mode_t… yes
    checking for off_t… yes
    checking for size_t… yes
    checking whether time.h and sys/time.h may both be included… yes
    checking for pid_t… yes
    checking vfork.h usability… no
    checking vfork.h presence… no
    checking for vfork.h… no
    checking for fork… yes
    checking for vfork… yes
    checking for working fork… yes
    checking for working vfork… (cached) yes
    checking for stdlib.h… (cached) yes
    checking for GNU libc compatible malloc… yes
    checking sys/select.h usability… yes
    checking sys/select.h presence… yes
    checking for sys/select.h… yes
    checking for sys/socket.h… (cached) yes
    checking types of arguments for select… int,fd_set *,struct timeval *
    checking for bzero… yes
    checking for gethostbyname… yes
    checking for gettimeofday… yes
    checking for inet_ntoa… yes
    checking for memset… yes
    checking for select… yes
    checking for socket… yes
    checking for strchr… yes
    checking for strerror… yes
    checking for strstr… yes
    checking for strtol… yes
    checking for gcry_cipher_open in -lgcrypt… no
    checking for correct gcrypt version… yes
    checking for __gmpz_init in -lgmp… no
    configure: creating ./config.status
    /bin/sh ./config.status
    config.status: creating lib/Makefile
    config.status: creating fuse/Makefile
    config.status: creating cmdline/Makefile
    config.status: creating Makefile
    config.status: creating docs/Makefile
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands
    config.status: executing libtool commands
    cd . && /bin/sh /Users/adrian/Downloads/afpfs-ng-0.8.1/missing -run autoheader
    rm -f stamp-h1
    touch config.h.in
    make  all-recursive
    Making all in lib
    /bin/sh ../libtool -tag=CC   -mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -I/Users/adrian/local/include -D_FILE_OFFSET_BITS=64 -I../include -arch i386 -arch i386 -MT libafpclient_la-afp.lo -MD -MP -MF .deps/libafpclient_la-afp.Tpo -c -o libafpclient_la-afp.lo `test -f 'afp.c' || echo './'`afp.c
    ../libtool: line 807: X-tag=CC: command not found
    ../libtool: line 840: libtool: ignoring unknown tag : command not found
    ../libtool: line 807: X-mode=compile: command not found
    ../libtool: line 973: *** Warning: inferring the mode of operation is deprecated.: command not found
    ../libtool: line 974: *** Future versions of Libtool will require -mode=MODE be specified.: command not found
    ../libtool: line 1117: Xgcc: command not found
    ../libtool: line 1117: X-DHAVE_CONFIG_H: command not found
    ../libtool: line 1117: X-I.: command not found
    ../libtool: line 1117: X-I..: command not found
    ../libtool: line 1117: X-I/Users/adrian/local/include: No such file or directory
    ../libtool: line 1117: X-D_FILE_OFFSET_BITS=64: command not found
    ../libtool: line 1117: X-I../include: No such file or directory
    ../libtool: line 1117: X-arch: command not found
    ../libtool: line 1117: Xi386: command not found
    ../libtool: line 1117: X-arch: command not found
    ../libtool: line 1117: Xi386: command not found
    ../libtool: line 1117: X-MT: command not found
    ../libtool: line 1117: Xlibafpclient_la-afp.lo: command not found
    ../libtool: line 1117: X-MD: command not found
    ../libtool: line 1117: X-MP: command not found
    ../libtool: line 1117: X-MF: command not found
    ../libtool: line 1117: X.deps/libafpclient_la-afp.Tpo: No such file or directory
    ../libtool: line 1117: X-c: command not found
    ../libtool: line 1169: Xlibafpclient_la-afp.lo: command not found
    ../libtool: line 1174: libtool: compile: cannot determine name of library object from `': command not found
    make: ***  Error 1
    make: ***  Error 1
    make: ***  Error 2

     
  • Alex deVries

    Alex deVries - 2010-02-22

    Well… to start with, you should run 'glibtoolize' before running configure.

    But this is not your larger problem. There are definite problems getting it to work with macfuse, and Mac OS X exposes a lot of existing problems around threading.  Basically, you shouldn't do this.  I am slowly working on doing my development of afpfs-ng on Mac OS X. 

    What are you really trying to do?  The AFP client built into Mac OS X really is the best one out there…

    - A

     
  • Adrian

    Adrian - 2010-02-22

    Thanks for getting back to me so quickly. - glibtoolize seems to have solved it.

    I'm not using fuse; I'm looking for a way to discover an AFP server's shares from the command line. afp_mount assumes you already know the share name (unless I'm missing something). Looks like I might be able to build a tool to do so using your library - sure beats implementing an AFP client from scratch.

     
  • bitterrotten

    bitterrotten - 2011-10-27

    Could I trouble you to break down how to run glibtoolize on this? It didn't work for me and I'm not sure if I'm missing important arguments.

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks