Release 0.5.10 fails to build on FreeBSD 10.1-RELEASE (amd64)

Issue #85 resolved
Ashish SHUKLA created an issue

Build fails at configure stage with following messages:

-- The C compiler identification is Clang 3.4.1
-- The CXX compiler identification is Clang 3.4.1
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- system processor amd64
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for stdio.h
-- Looking for stdio.h - found
-- Looking for limits.h
-- Looking for limits.h - found
-- Looking for stdarg.h
-- Looking for stdarg.h - found
-- Looking for setjmp.h
-- Looking for setjmp.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for sched.h
-- Looking for sched.h - found
-- Looking for io.h
-- Looking for io.h - not found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for semaphore.h
-- Looking for semaphore.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of int
-- Check size of int - done
-- Check size of short
-- Check size of short - done
-- Check size of long
-- Check size of long - done
-- Check size of int64_t
-- Check size of int64_t - done
-- Check size of size_t
-- Check size of size_t - done
-- Check size of void*
-- Check size of void* - done
-- Check size of float
-- Check size of float - done
-- Check size of double
-- Check size of double - done
-- Check size of wchar_t
-- Check size of wchar_t - done
-- Looking for alloca.h
-- Looking for alloca.h - not found
-- Performing Test HAVE_ALLOCA
-- Performing Test HAVE_ALLOCA - Success
-- Performing Test HAVE_MUTEX_RECURSIVE
-- Performing Test HAVE_MUTEX_RECURSIVE - Success
-- Performing Test HAVE_MUTEX_RECURSIVE_NP
-- Performing Test HAVE_MUTEX_RECURSIVE_NP - Failed
-- Looking for sched_yield
-- Looking for sched_yield - found
-- Looking for nanosleep
-- Looking for nanosleep - found
-- Looking for select
-- Looking for select - found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for mmap
-- Looking for mmap - found
-- Architecture triple: x86_64-pc-freebsd
-- Install prefix: /usr/local
-- Fixup compiler flags x86_64
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.28") 
-- Boehm GC include dir: /usr/local/include
-- Performing Test GC_GET_PARALLEL_WORKS
-- Performing Test GC_GET_PARALLEL_WORKS - Success
-- Found Boehm_GC: /usr/local/lib/libgc-threaded.so  
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- operating system: FreeBSD
-- Adding symbolic link sagittarius -> sash
-- Stub generator /home/abbe/sagittarius-0.5.10/build/sagittarius
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.8") 
-- Looking for inflateReset2 in /usr/lib/libz.so
-- Looking for inflateReset2 in /usr/lib/libz.so - found
-- HAVE_ZLIB_INFLATE_RESET2 = 1
-- Looking for ffi.h
-- Looking for ffi.h - found
-- Looking for ffi_prep_cif_var in /usr/local/lib/libffi.so
-- Looking for ffi_prep_cif_var in /usr/local/lib/libffi.so - found
-- Sagittarius uses platform libffi
-- ODBC include dir - /usr/local/include/libiodbc
-- ODBC libraries - /usr/local/lib/libiodbc.so
-- Searching odbc - found
-- Sagittarius supports ODBC
-- Configuring done
CMake Error at src/CMakeLists.txt:102 (ADD_LIBRARY):
  Cannot find source file:

    regex_stub.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_CXX_FLAGS_RELEASE
    CMAKE_C_FLAGS_RELEASE
    CMAKE_EXE_LINKER_FLAGS
    CMAKE_MODULE_LINKER_FLAGS
    CMAKE_SHARED_LINKER_FLAGS
    THREADS_HAVE_PTHREAD_ARG


-- Build files have been written to: /home/abbe/sagittarius-0.5.10

I've tried to figure out, but my cmake-foo is not quite strong.

If you need any other information, please let me know.

Thanks in advance

Comments (3)

  1. Takashi Kato repo owner

    I believe you have cloned the repository and tried to build.

    This is a typical FAQ (I've got couple of exactly the same question/issue). Building from repository requires the latest Sagittarius installed from the tar ball. The error message from CMake is complaining that there is no regex_stub.c file which is generated by dist.sh during release process (or developing process).

    To build the developing repository, you need to do the following steps:

    1. Install the latest Sagittarius from tar ball
    2. Clone the repository
    3. Run ./dist.sh gen in the source directory to generated required files
    4. Run CMake

    This instruction is also written in HACKING file. I'll also make a page to describe the above steps.

  2. Ashish SHUKLA reporter

    Right, that's what I did. Building from tarball works. This issue can be resolved now.

    Thanks

  3. Log in to comment