Problem building on Windows XP

Help
2008-04-12
2013-01-15
  • Mark Pilant

    Mark Pilant - 2008-04-12

    I'm trying to build Hamlib under Windows XP and running into problems.  From the README.win32 I used suggested autogen command (after checking out the 1.2.7 sources via CVS) with the following results:

    $ export CC="gcc -mno-cygwin"
    $ export CXX="g++ -mno-cygwin"
    $ ./autogen.sh --prefix=/usr/local --disable-static  \ > --without-rpc-backends --without-tcl-binding --without-perl-binding \ > --without-python-binding --build=i686-pc-cygwin --host=i686-pc-mingw32 \ > --target=i686-pc-mingw32
    /usr/share/aclocal/pstoedit.m4:7: warning: underquoted definition of AM_PATH_PSTOEDIT
      run info '(automake)Extending aclocal'
      or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
    /usr/share/aclocal/libsmi.m4:8: warning: underquoted definition of AM_PATH_LIBSMI
    /usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT
    /usr/share/aclocal/cppunit.m4:4: warning: underquoted definition of AM_PATH_CPPUNIT
    configure.ac: installing `./install-sh'
    configure.ac: installing `./missing'
    alinco/Makefile.am: installing `./depcomp'
    bindings/Makefile.am:111: installing `./py-compile'
    src/Makefile.am: installing `./compile'
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for i686-pc-mingw32-strip... no
    checking for strip... strip
    checking whether to enable maintainer-specific portions of Makefiles... yes
    checking for i686-pc-mingw32-gcc... gcc -mno-cygwin
    checking for C compiler default output file name... a.exe
    checking whether the C compiler works... yes
    checking whether we are cross compiling... yes
    checking for suffix of executables... .exe
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc -mno-cygwin accepts -g... yes
    checking for gcc -mno-cygwin option to accept ANSI C... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc -mno-cygwin... gcc3
    checking for i686-pc-mingw32-g++... g++ -mno-cygwin
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ -mno-cygwin accepts -g... yes
    checking dependency style of g++ -mno-cygwin... gcc3
    checking for gawk... (cached) gawk
    checking how to run the C preprocessor... gcc -mno-cygwin -E
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether ln -s works... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking for rpmbuild... rpmbuild
    checking for egrep... grep -E
    checking for AIX... no
    checking for library containing strerror... none required
    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 for i686-pc-mingw32-gcc... (cached) gcc -mno-cygwin
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc -mno-cygwin accepts -g... (cached) yes
    checking for gcc -mno-cygwin option to accept ANSI C... (cached) none needed
    checking dependency style of gcc -mno-cygwin... (cached) gcc3
    checking whether gcc -mno-cygwin needs -traditional... no
    checking for an ANSI C-conforming const... yes
    checking for inline... inline
    checking whether user wants warnings... yes
    checking whether gcc -mno-cygwin accepts -Wall... yes
    checking whether g++ -mno-cygwin accepts -Wall... yes
    checking whether g++ -mno-cygwin accepts -Woverloaded-virtual... yes
    checking whether gcc -mno-cygwin and cc understand -c and -o together... yes
    checking for dirent.h that defines DIR... yes
    checking for library containing opendir... none required
    checking for ANSI C header files... (cached) yes
    checking alloca.h usability... no
    checking alloca.h presence... no
    checking for alloca.h... no
    checking argz.h usability... no
    checking argz.h presence... no
    checking for argz.h... no
    checking malloc.h usability... yes
    checking malloc.h presence... yes
    checking for malloc.h... yes
    checking for memory.h... (cached) yes
    checking for string.h... (cached) yes
    checking for strings.h... (cached) yes
    checking for stdlib.h... (cached) yes
    checking values.h usability... yes
    checking values.h presence... yes
    checking for values.h... yes
    checking rpc/rpc.h usability... no
    checking rpc/rpc.h presence... no
    checking for rpc/rpc.h... no
    checking rpc/rpcent.h usability... no
    checking rpc/rpcent.h presence... no
    checking for rpc/rpcent.h... no
    checking net/errno.h usability... no
    checking net/errno.h presence... no
    checking for net/errno.h... no
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking sys/ioctl.h usability... no
    checking sys/ioctl.h presence... no
    checking for sys/ioctl.h... no
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    checking for unistd.h... (cached) yes
    checking getopt.h usability... yes
    checking getopt.h presence... yes
    checking for getopt.h... yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking sys/ioccom.h usability... no
    checking sys/ioccom.h presence... no
    checking for sys/ioccom.h... no
    checking sgtty.h usability... no
    checking sgtty.h presence... no
    checking for sgtty.h... no
    checking term.h usability... no
    checking term.h presence... no
    checking for term.h... no
    checking termio.h usability... no
    checking termio.h presence... no
    checking for termio.h... no
    checking termios.h usability... no
    checking termios.h presence... no
    checking for termios.h... no
    checking linux/ppdev.h usability... no
    checking linux/ppdev.h presence... no
    checking for linux/ppdev.h... no
    checking linux/parport.h usability... no
    checking linux/parport.h presence... no
    checking for linux/parport.h... no
    checking linux/ioctl.h usability... no
    checking linux/ioctl.h presence... no
    checking for linux/ioctl.h... no
    checking dev/ppbus/ppi.h usability... no
    checking dev/ppbus/ppi.h presence... no
    checking for dev/ppbus/ppi.h... no
    checking dev/ppbus/ppbconf.h usability... no
    checking dev/ppbus/ppbconf.h presence... no
    checking for dev/ppbus/ppbconf.h... no
    checking whether time.h and sys/time.h may both be included... yes
    checking for sys/types.h... (cached) yes
    checking windows.h usability... yes
    checking windows.h presence... yes
    checking for windows.h... yes
    checking for winioctl.h... yes
    checking for winbase.h... yes
    checking for getopt... yes
    checking for getopt_long... yes
    checking for usleep... no
    checking for gettimeofday... no
    checking for struct timezone... no
    checking for ssize_t... yes
    checking for getopt... (cached) yes
    checking for getopt_long... (cached) yes
    checking for usleep... (cached) no
    checking for gettimeofday... (cached) no
    checking for Sleep... yes
    checking build system type... i686-pc-cygwin
    checking host system type... i686-pc-mingw32
    checking for the pthreads library -lpthreads... no
    checking whether pthreads work without any flags... no
    checking whether pthreads work with -Kthread... no
    checking whether pthreads work with -kthread... no
    checking for the pthreads library -llthread... no
    checking whether pthreads work with -pthread... no
    checking whether pthreads work with -pthreads... no
    checking whether pthreads work with -mthreads... no
    checking for the pthreads library -lpthread... no
    checking whether pthreads work with --thread-safe... no
    checking whether pthreads work with -mt... no
    checking whether to build rigctld... no
    checking POSIX termios... no
    checking for size_t... yes
    checking whether time.h and sys/time.h may both be included... (cached) yes
    checking return type of signal handlers... void
    checking for siginfo_t... no
    checking for sin... yes
    checking for main in -linet... no
    checking for connect... no
    checking for main in -lsocket... no
    checking for accept... no
    checking for gethostbyname... no
    checking for main in -lnsl... no
    checking for syslog in -lsyslog... no
    checking for atexit... yes
    checking for snprintf... yes
    checking for select... no
    checking for memmove... yes
    checking for memset... yes
    checking for strcasecmp... yes
    checking for strchr... yes
    checking for strdup... yes
    checking for strerror... yes
    checking for strrchr... yes
    checking for strstr... yes
    checking for strtol... yes
    checking for cfmakeraw... no
    checking for setitimer... no
    checking for ioctl... no
    checking for working alloca.h... no
    checking for alloca... yes
    checking for vprintf... yes
    checking for _doprnt... no
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for ld used by gcc -mno-cygwin... /usr/i686-pc-mingw32/bin/ld.exe
    checking if the linker (/usr/i686-pc-mingw32/bin/ld.exe) is GNU ld... yes
    checking for /usr/i686-pc-mingw32/bin/ld.exe option to reload object files... -r
    checking for BSD-compatible nm... nm
    checking how to recognise dependent libraries... file_magic file format pei*-i386(.*architecture: i386)?
    checking for i686-pc-mingw32-dlltool... no
    checking for dlltool... dlltool
    checking for i686-pc-mingw32-as... no
    checking for as... as
    checking for i686-pc-mingw32-objdump... no
    checking for objdump... objdump
    checking dlfcn.h usability... no
    checking dlfcn.h presence... no
    checking for dlfcn.h... no
    checking how to run the C++ preprocessor... g++ -mno-cygwin -E
    checking for i686-pc-mingw32-g77... no
    checking for i686-pc-mingw32-f77... no
    checking for i686-pc-mingw32-xlf... no
    checking for i686-pc-mingw32-frt... no
    checking for i686-pc-mingw32-pgf77... no
    checking for i686-pc-mingw32-fort77... no
    checking for i686-pc-mingw32-fl32... no
    checking for i686-pc-mingw32-af77... no
    checking for i686-pc-mingw32-f90... no
    checking for i686-pc-mingw32-xlf90... no
    checking for i686-pc-mingw32-pgf90... no
    checking for i686-pc-mingw32-epcf90... no
    checking for i686-pc-mingw32-f95... no
    checking for i686-pc-mingw32-fort... no
    checking for i686-pc-mingw32-xlf95... no
    checking for i686-pc-mingw32-ifc... no
    checking for i686-pc-mingw32-efc... no
    checking for i686-pc-mingw32-pgf95... no
    checking for i686-pc-mingw32-lf95... no
    checking for i686-pc-mingw32-gfortran... no
    checking for g77... g77
    checking whether we are using the GNU Fortran 77 compiler... yes
    checking whether g77 accepts -g... yes
    checking the maximum length of command line arguments... 8192
    checking command to parse nm output from gcc -mno-cygwin object... ok
    checking for objdir... .libs
    checking for i686-pc-mingw32-ar... no
    checking for ar... ar
    checking for i686-pc-mingw32-ranlib... no
    checking for ranlib... ranlib
    checking for i686-pc-mingw32-strip... strip
    checking if gcc -mno-cygwin static flag  works... yes
    checking if gcc -mno-cygwin supports -fno-rtti -fno-exceptions... no
    checking for gcc -mno-cygwin option to produce PIC... -DDLL_EXPORT
    checking if gcc -mno-cygwin PIC flag -DDLL_EXPORT works... yes
    checking if gcc -mno-cygwin supports -c -o file.o... yes
    checking whether the gcc -mno-cygwin linker (/usr/i686-pc-mingw32/bin/ld.exe) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... yes
    checking dynamic linker characteristics... Win32 ld.exe
    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... no
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    checking for ld used by g++ -mno-cygwin... /usr/i686-pc-mingw32/bin/ld.exe
    checking if the linker (/usr/i686-pc-mingw32/bin/ld.exe) is GNU ld... yes
    checking whether the g++ -mno-cygwin linker (/usr/i686-pc-mingw32/bin/ld.exe) supports shared libraries... yes
    checking for g++ -mno-cygwin option to produce PIC... -DDLL_EXPORT
    checking if g++ -mno-cygwin PIC flag -DDLL_EXPORT works... yes
    checking if g++ -mno-cygwin supports -c -o file.o... yes
    checking whether the g++ -mno-cygwin linker (/usr/i686-pc-mingw32/bin/ld.exe) supports shared libraries... yes
    checking dynamic linker characteristics... Win32 ld.exe
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    appending configuration tag "F77" to libtool
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    checking for g77 option to produce PIC... -DDLL_EXPORT
    checking if g77 PIC flag -DDLL_EXPORT works... yes
    checking if g77 supports -c -o file.o... yes
    checking whether the g77 linker (/usr/i686-pc-mingw32/bin/ld.exe) supports shared libraries... yes
    checking dynamic linker characteristics... Win32 ld.exe
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking which extension is used for loadable modules... .dll
    checking which variable specifies run-time library path... PATH
    checking for the default library search path... /lib /usr/lib
    checking for objdir... .libs
    checking whether libtool supports -dlopen/-dlpreopen... yes
    checking for shl_load... no
    checking for shl_load in -ldld... no
    checking for dlopen in -ldl... no
    checking for dlopen in -lsvld... no
    checking for dld_link in -ldld... no
    checking for _dyld_func_lookup... no
    checking for _ prefix in compiled symbols... yes
    checking whether deplibs are loaded by dlopen... unknown
    checking for argz.h... (cached) no
    checking for error_t... no
    checking for argz_append... no
    checking for argz_create_sep... no
    checking for argz_insert... no
    checking for argz_next... no
    checking for argz_stringify... no
    checking assert.h usability... yes
    checking assert.h presence... yes
    checking for assert.h... yes
    checking ctype.h usability... yes
    checking ctype.h presence... yes
    checking for ctype.h... yes
    checking for errno.h... (cached) yes
    checking for malloc.h... (cached) yes
    checking for memory.h... (cached) yes
    checking for stdlib.h... (cached) yes
    checking stdio.h usability... yes
    checking stdio.h presence... yes
    checking for stdio.h... yes
    checking for unistd.h... (cached) yes
    checking dl.h usability... no
    checking dl.h presence... no
    checking for dl.h... no
    checking sys/dl.h usability... no
    checking sys/dl.h presence... no
    checking for sys/dl.h... no
    checking dld.h usability... no
    checking dld.h presence... no
    checking for dld.h... no
    checking mach-o/dyld.h usability... no
    checking mach-o/dyld.h presence... no
    checking for mach-o/dyld.h... no
    checking for string.h... (cached) yes
    checking for strchr... (cached) yes
    checking for strrchr... (cached) yes
    checking for memcpy... yes
    checking for memmove... (cached) yes
    checking for strcmp... yes
    checking for closedir... yes
    checking for opendir... yes
    checking for readdir... yes
    checking whether C99 struct/array initializers are supported... yes
    checking for xml2-config... /usr/bin/xml2-config
    checking for libxml - version >= 2.0.0... no
    *** Could not run libxml test program, checking why...
    *** The test program compiled, but did not run. This usually means
    *** that the run-time linker is not finding LIBXML or finding the wrong
    *** version of LIBXML. If it is not finding LIBXML, you'll need to set your
    *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
    *** to the installed location  Also, make sure you have run ldconfig if that
    *** is required on your system
    ***
    *** If you have an old version installed, it is best to remove it, although
    *** you may also be able to get things to work by modifying LD_LIBRARY_PATH
    checking whether to build rigmatrix... no
    checking whether to build C++ binding and demo... yes
    checking for perl headers... found /usr/lib/perl5/5.8/cygwin/CORE
    checking whether to build perl binding and demo... no
    checking for Tcl configuration... found /usr/lib/tclConfig.sh
    checking for existence of /usr/lib/tclConfig.sh... loading
    checking tcl.h usability... no
    checking tcl.h presence... no
    checking for tcl.h... no
    checking whether to build tcl binding and demo... no
    checking for python... /usr/bin/python
    checking for python version... 2.4
    checking for python platform... cygwin
    checking for python script directory... ${prefix}/lib/python2.4/site-packages
    checking for python extension module directory... ${exec_prefix}/lib/python2.4/site-packages
    checking for Python include path... /usr/include/python2.4
    checking Python.h usability... no
    checking Python.h presence... no
    checking for Python.h... no
    checking whether to build python binding and demo... no
    checking whether to build winradio backend... yes
    checking whether to build gnuradio backend... no
    checking whether to build USRP backend... no
    checking whether to build microtune backend... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking for libusb >= 0.1... configure: WARNING: libusb pkg-config not found, USB backends will be disabled
    checking usb.h usability... no
    checking usb.h presence... no
    checking for usb.h... no
    checking whether to build USB backends... no
    checking for rpcgen... yes
    checking whether to build rpc backends... no
    checking for swig... yes
    checking for swig... /usr/bin/swig
    checking for SWIG version... 1.3.25
    checking whether to build bindings... no
    configure: creating ./config.status
    config.status: creating Makefile
    .infig.status: error: cannot find input file: Makefile

    $ uname -a
    CYGWIN_NT-5.1 markxp1 1.5.19(0.150/4/2) 2006-01-20 13:28 i686 Cygwin

    Any ideas?

    - Mark

     
    • Stéphane Fillod

      The file README.win32 should be updated.
      The autogen.sh script is only needed for CVS checkouts.
      When unpacking from official tar.gz, running the configure script should be enough.

      If you do want to develop against CVS repository, then the autogen.sh may need some investigation under Cygwin. Can you report the various autotools version?
      autoconf --version
      autoheade --version
      automake --version
      aclocal --version
      libtoolize --version

      --
      Stephane

       
    • Mark Pilant

      Mark Pilant - 2008-04-25

      Here is the tool version information:

      $ autoconf --version
      autoconf (GNU Autoconf) 2.59
      Written by David J. MacKenzie and Akim Demaille.

      Copyright (C) 2003 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

      $ autoheader --version
      autoheader (GNU Autoconf) 2.59
      Written by Roland McGrath and Akim Demaille.

      Copyright (C) 2003 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

      $ automake --version
      automake (GNU automake) 1.9.6
      Written by Tom Tromey <tromey@redhat.com>.

      Copyright 2005 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

      $ aclocal --version
      aclocal (GNU automake) 1.9.6
      Written by Tom Tromey <tromey@redhat.com>

      Copyright (C) 2005 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

      $ libtoolize --version
      libtoolize (GNU libtool) 1.5.20

      Copyright (C) 2005 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

       
    • Mark Pilant

      Mark Pilant - 2008-05-06

      Just to close this topic out...

      The source of the problem was WinZip; the utility I used to extract the files from the tarball and create the local directory tree for development.  WinZip (I'm using a registered copy of 9.0) has
      a "Miscellaneous" configuration option which will enable "TAR file smart CR/LF conversion".  The problem with this is it will add carriage returns (\r) to files where they may not be expected.  In my case, these additional carriage returns were causing all manner of build problems.

      When I unchecked the conversion box (which was checked by default) WinZip produced the same file/tree structure as "tar xzf" and the build was now working as expected.

      Many thanks to Stephane for his time and patience helping me track this down.

       

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks