rockdaboot / mget

Multithreaded metalink/file/website downloader (like Wget) and C library
GNU Lesser General Public License v3.0
113 stars 19 forks source link

help compiling on OS X 10.8? #1

Closed antbryan closed 10 years ago

antbryan commented 11 years ago

could you tell me what I'm doing wrong?

$ ./autogen.sh ./autogen.sh: line 3: gtkdocize: command not found Copying file config.rpath Creating directory m4 Copying file m4/codeset.m4 Copying file m4/fcntl-o.m4 Copying file m4/gettext.m4 Copying file m4/glibc2.m4 Copying file m4/glibc21.m4 Copying file m4/iconv.m4 Copying file m4/intdiv0.m4 Copying file m4/intl.m4 Copying file m4/intldir.m4 Copying file m4/intlmacosx.m4 Copying file m4/intmax.m4 Copying file m4/inttypes-pri.m4 Copying file m4/inttypes_h.m4 Copying file m4/lcmessage.m4 Copying file m4/lib-ld.m4 Copying file m4/lib-link.m4 Copying file m4/lib-prefix.m4 Copying file m4/lock.m4 Copying file m4/longlong.m4 Copying file m4/nls.m4 Copying file m4/po.m4 Copying file m4/printf-posix.m4 Copying file m4/progtest.m4 Copying file m4/size_max.m4 Copying file m4/stdint_h.m4 Copying file m4/threadlib.m4 Copying file m4/uintmax_t.m4 Copying file m4/visibility.m4 Copying file m4/wchar_t.m4 Copying file m4/wint_t.m4 Copying file m4/xsize.m4 Copying file po/Makefile.in.in Copying file po/Makevars.template Copying file po/Rules-quot Copying file po/boldquot.sed Copying file po/en@boldquot.header Copying file po/en@quot.header Copying file po/insert-header.sin Copying file po/quot.sed Copying file po/remove-potcdate.sin glibtoolize: putting auxiliary files in .'. glibtoolize: linking file./ltmain.sh' glibtoolize: putting macros in AC_CONFIG_MACRO_DIR, m4'. glibtoolize: linking filem4/libtool.m4' glibtoolize: linking file m4/ltoptions.m4' glibtoolize: linking filem4/ltsugar.m4' glibtoolize: linking file m4/ltversion.m4' glibtoolize: linking filem4/lt~obsolete.m4' configure.ac:75: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and will soon be removed. configure.ac:75: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead, configure.ac:75: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files. configure.ac:62: installing './compile' configure.ac:14: installing './config.guess' configure.ac:14: installing './config.sub' configure.ac:8: installing './install-sh' configure.ac:8: installing './missing' Makefile.am: installing './INSTALL' automake: error: cannot open < gtk-doc.make: No such file or directory autoreconf: automake failed with exit status: 1


Initialized build system. For a common configuration please run:

./configure --enable-gtk-doc

$ ./configure 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 whether make supports nested variables... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no 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 dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -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 minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define EXTENSIONS... yes checking build system type... x86_64-apple-darwin12.3.0 checking host system type... x86_64-apple-darwin12.3.0 checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/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 how to convert x86_64-apple-darwin12.3.0 file names to x86_64-apple-darwin12.3.0 format... func_convert_file_noop checking how to convert x86_64-apple-darwin12.3.0 file names to toolchain format... func_convert_file_noop checking for /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld option to reload object files... -r checking for objdump... no checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... no checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm output from gcc object... ok checking for sysroot... no checking for mt... no checking if : is a manifest tool... no 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 for -force_load linker flag... 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/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin12.3.0 dyld checking how to hardcode library paths into programs... immediate checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... yes 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 whether make supports nested variables... (cached) yes checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) none checking for flex... flex checking lex output file root... lex.yy checking lex library... none needed checking whether yytext is a pointer... no checking whether ln -s works... yes checking whether gcc and cc understand -c and -o together... yes checking for gcc option to accept ISO C99... none needed checking whether NLS is requested... yes checking for msgfmt... no checking for gmsgfmt... : checking for xgettext... no checking for msgmerge... no checking for ld used by GCC... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no checking for shared library run path origin... done checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking for GNU gettext in libc... no checking for iconv... no, consider installing GNU libiconv checking for GNU gettext in libintl... no checking whether to use NLS... no checking whether to generate man pages... no checking for gnutls_global_init in -lgnutls... no configure: WARNING: * GNUTLS was not found. You will not be able to use HTTPS or Metalink checksumming checking for deflate in -lz... no configure: WARNING: * ZLIB was not found. You will not be able to use gzip compression checking for idna_to_ascii_8z in -lidn... no configure: WARNING: * LIBIDN was not found. You will not be able to use IDN support checking for pthread_attr_init in -lpthread... no checking for clock_gettime in -lrt... no checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for inttypes.h... (cached) yes checking libintl.h usability... no checking libintl.h presence... no checking for libintl.h... no checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.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 for unistd.h... (cached) yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for inline... inline checking for int16_t... yes checking for int32_t... yes checking for int8_t... yes checking for off_t... yes checking for pid_t... yes checking for C/C++ restrict keyword... __restrict checking for size_t... yes checking for ssize_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint8_t... yes checking for ptrdiff_t... yes checking for working alloca.h... no checking for alloca... no checking whether alloca.c' needs Cray hooks... no checking stack direction for C alloca... -1 checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... no checking for vfork... no checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... no checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/param.h... yes checking for getpagesize... no checking for working mmap... no checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... no checking for clock_gettime... no checking for dprintf... no checking for dup2... no checking for futimens... no checking for gettimeofday... no checking for localtime_r... no checking for memchr... no checking for memmove... no checking for memset... no checking for mkdir... no checking for munmap... no checking for select... no checking for setlocale... no checking for socket... no checking for strcasecmp... no checking for strchr... no checking for strdup... no checking for strerror... no checking for strncasecmp... no checking for strndup... no checking for strrchr... no checking for strstr... no checking for strlcpy... no checking for vasprintf... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating po/Makefile.in config.status: error: cannot find input file:include/Makefile.in' Ants-MacBook-Pro:mget-master ant$ make cd . && /bin/sh ./config.status config.h config.status: creating config.h make all-recursive Making all in po make[2]: * No rule to make target `all'. Stop. make[1]: * [all-recursive] Error 1 make: * [all] Error 2

rockdaboot commented 11 years ago

Hi,

first of all, mget is not officially released yet, and i might introduce/fix faults from time to time... But i appreciate every question/suggestion/help.

You don't have gtk-doc-tools installed (that's the gtkdocize error).

config.status: creating po/Makefile.in config.status: error: cannot find input file: `include/Makefile.in'

I can't reproduce it here. Could you exchange the order of po/Makefile.in and include/Makefile in configure.ac and try again ?

Maybe you could give me a hint about your system and I could start a similar system as a virtual machine to test that behaviour.

Regards, Tim

rockdaboot commented 11 years ago

Sorry, just saw that this:

Am Friday 12 April 2013 schrieb antbryan:

configure: WARNING: * GNUTLS was not found. You will not be able to use HTTPS or Metalink checksumming checking for deflate in -lz... no configure: WARNING: * ZLIB was not found. You will not be able to use gzip compression checking for idna_to_ascii_8z in -lidn... no configure: WARNING: *\ LIBIDN was not found. You will not be able to use IDN support

I guess you want to try metalink... that only works with GnuTLS right now. Since I need GnuTLS anyway, I found it is a good reason to use it's checksum functionality.

Meanwhile I saw you are on Apple - never tried to compile there...

checking for ld used by GCC... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple- darwin11/4.2.1/ld

Regards, Tim

antbryan commented 11 years ago

yes, I'm using Mac OS X 10.8.3. just wanted to try mget out on another computer. so not essential & don't spend too much time on it.

just wanted to get it compiled before worrying about metalink stuff, but yes I eventually want to be able to use that :)

I have gnutls installed via homebrew

switching them didn't work

C_CONFIG_FILES([Makefile include/Makefile po/Makefile.in

dumb question, but is include/Makefile.in generated by autogen.sh? because I see it doesn't already exist

rockdaboot commented 11 years ago

dumb question, but is include/Makefile.in generated by autogen.sh? because I see it doesn't already exist

Yes. it is.

But from your original post, it looks like your machine isn't configured as a developer machine. You are missing many developer packages (I guess OSX has something similar like the *-dev packages on Debian).

I guess, you are missing GNU gettext stuff.

Please read the output from ./configure carefully to see what is missing.

Mget won't compile if one needed package is missing, even if ./configure runs without error.

The following packages are needed to build Mget:

And maybe something else, that I forgot (e.g. gettext).

Tim

magemore commented 10 years ago

libz >= 1.2.3 is libz and zlib the same?

rockdaboot commented 10 years ago

Yes, see also https://github.com/rockdaboot/mget/issues/7

rockdaboot commented 10 years ago

Feel free to reopen if something is still unclear.