videolabs / libdsm

Defective SMb: A minimalist implementation of a client library for SMBv1 using Plain'Ol C
http://videolabs.github.io/libdsm
Other
208 stars 86 forks source link

Failed to build the lib on ubuntu14.04 #32

Closed freedxy closed 9 years ago

freedxy commented 9 years ago

Key logs:

In file included from src/netbios_ns.c:57:0: ./compat/compat.h:39:5: error: expected identifier before numeric constant ./compat/compat.h:43:3: error: conflicting types for ‘clockid_t’ /usr/include/time.h:92:21: note: previous declaration of ‘clockid_t’ was here ./compat/compat.h:44:5: error: conflicting types for ‘clock_gettime’ /usr/include/time.h:336:12: note: previous declaration of ‘clock_gettime’ was here src/netbios_ns.c: In function ‘netbios_ns_abort’: src/netbios_ns.c:627:10: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] make[1]: * [src/netbios_ns.lo] Error 1 make[1]: Leaving directory `/home/dxy/d120/vlc/contrib/src/libdsm-0.0.5/mastar-git/libdsm' make: * [all] Error 2

ramyD commented 9 years ago

I've encountered this error as well. It seems to affect v0.0.5 and v0.0.4 but not v0.0.3

jbkempf commented 9 years ago

The configure does not find clock_gettime at the configure stage?

ramyD commented 9 years ago

I can try and give a relevant configure output. Any version you'd prefer between v0.0.5 and v0.0.4?

jbkempf commented 9 years ago

0.0.5 or HEAD. And we probably need the config.log too.

jbkempf commented 9 years ago

Ping

ramyD commented 9 years ago

oups, sorry for the delay. here you go:

Configure ouput

checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking how to create a ustar tar archive... gnutar checking whether make supports nested variables... yes checking build system type... armv6l-unknown-linux-gnueabihf checking host system type... armv6l-unknown-linux-gnueabihf configure: dsm package version: 0.0.5 configure: dsm ABI version: 2.1.0 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... gcc3 checking for gcc option to accept ISO C99... -std=gnu99 checking whether gcc -std=gnu99 and cc understand -c and -o together... yes checking how to run the C preprocessor... gcc -std=gnu99 -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for iconv... yes checking for working iconv... yes checking for iconv declaration... extern size_t iconv (iconv_t cd, char * inbuf, size_t inbytesleft, char * outbuf, size_t outbytesleft); checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for ld used by gcc -std=gnu99... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert armv6l-unknown-linux-gnueabihf file names to armv6l-unknown-linux-gnueabihf format... func_convert_file_noop checking how to convert armv6l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump 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... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok checking for sysroot... no checking for mt... mt checking if mt is a manifest tool... no 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 -std=gnu99 supports -fno-rtti -fno-exceptions... no checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes checking if gcc -std=gnu99 static flag -static works... yes checking if gcc -std=gnu99 supports -c -o file.o... yes checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so 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 bash... /bin/bash checking if dolt supports this host... yes, replacing libtool checking if compiler needs -Werror to reject unknown flags... no 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... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking for PTHREAD_PRIO_INHERIT... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for TASN1... yes checking whether libtasn1 version >= 3.0... no checking for library containing strlcpy... no checking for strlcpy... no checking for clock_gettime... no checking bsd/string.h usability... no checking bsd/string.h presence... no checking for bsd/string.h... no checking langinfo.h usability... yes checking langinfo.h presence... yes checking for langinfo.h... yes checking for doxygen... doxygen configure: creating ./config.status config.status: creating doc/Doxyfile config.status: creating Makefile config.status: creating libdsm.pc config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands

Configure Log

This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.

It was created by libdsm configure 0.0.5, which was generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure --prefix=/usr

---------

Platform.

---------

hostname = karaoke-pi uname -m = armv6l uname -r = 3.18.11+ uname -s = Linux uname -v = #781 PREEMPT Tue Apr 21 18:02:18 BST 2015

/usr/bin/uname -p = unknown /bin/uname -X = unknown

/bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown

PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/local/games PATH: /usr/games

-----------

Core tests.

-----------

configure:2299: checking for a BSD-compatible install configure:2367: result: /usr/bin/install -c configure:2378: checking whether build environment is sane configure:2428: result: yes configure:2569: checking for a thread-safe mkdir -p configure:2608: result: /bin/mkdir -p configure:2621: checking for gawk configure:2651: result: no configure:2621: checking for mawk configure:2637: found /usr/bin/mawk configure:2648: result: mawk configure:2659: checking whether make sets $(MAKE) configure:2681: result: yes configure:2756: checking how to create a ustar tar archive configure:2769: tar --version tar (GNU tar) 1.26 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason. configure:2772: $? = 0 configure:2812: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar configure:2815: $? = 0 configure:2819: tar -xf - <conftest.tar configure:2822: $? = 0 configure:2835: result: gnutar configure:2854: checking whether make supports nested variables configure:2871: result: yes configure:2888: checking build system type configure:2902: result: armv6l-unknown-linux-gnueabihf configure:2922: checking host system type configure:2935: result: armv6l-unknown-linux-gnueabihf configure:2964: dsm package version: 0.0.5 configure:2966: dsm ABI version: 2.1.0 configure:2981: checking for style of include used by make configure:3009: result: GNU configure:3080: checking for gcc configure:3096: found /usr/bin/gcc configure:3107: result: gcc configure:3336: checking for C compiler version configure:3345: gcc --version >&5 gcc (Debian 4.6.3-14+rpi1) 4.6.3 Copyright (C) 2011 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.

configure:3356: $? = 0 configure:3345: gcc -v >&5 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.6/lto-wrapper Target: arm-linux-gnueabihf Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.3-14+rpi1' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf Thread model: posix gcc version 4.6.3 (Debian 4.6.3-14+rpi1) configure:3356: $? = 0 configure:3345: gcc -V >&5 gcc: error: unrecognized option '-V' gcc: fatal error: no input files compilation terminated. configure:3356: $? = 4 configure:3345: gcc -qversion >&5 gcc: error: unrecognized option '-qversion' gcc: fatal error: no input files compilation terminated. configure:3356: $? = 4 configure:3376: checking whether the C compiler works configure:3398: gcc conftest.c >&5 configure:3402: $? = 0 configure:3450: result: yes configure:3453: checking for C compiler default output file name configure:3455: result: a.out configure:3461: checking for suffix of executables configure:3468: gcc -o conftest conftest.c >&5 configure:3472: $? = 0 configure:3494: result: configure:3516: checking whether we are cross compiling configure:3524: gcc -o conftest conftest.c >&5 configure:3528: $? = 0 configure:3535: ./conftest configure:3539: $? = 0 configure:3554: result: no configure:3559: checking for suffix of object files configure:3581: gcc -c conftest.c >&5 configure:3585: $? = 0 configure:3606: result: o configure:3610: checking whether we are using the GNU C compiler configure:3629: gcc -c conftest.c >&5 configure:3629: $? = 0 configure:3638: result: yes configure:3647: checking whether gcc accepts -g configure:3667: gcc -c -g conftest.c >&5 configure:3667: $? = 0 configure:3708: result: yes configure:3725: checking for gcc option to accept ISO C89 configure:3788: gcc -c -g -O2 conftest.c >&5 configure:3788: $? = 0 configure:3801: result: none needed configure:3823: checking dependency style of gcc configure:3934: result: gcc3 configure:3949: checking for gcc option to accept ISO C99 configure:4098: gcc -c -g -O2 conftest.c >&5 conftest.c:61:29: error: expected ';', ',' or ')' before 'text' conftest.c: In function 'main': conftest.c:115:18: error: expected '=', ',', ';', 'asm' or 'attribute' before 'newvar' conftest.c:115:18: error: 'newvar' undeclared (first use in this function) conftest.c:115:18: note: each undeclared identifier is reported only once for each function it appears in conftest.c:125:3: error: 'for' loop initial declarations are only allowed in C99 mode conftest.c:125:3: note: use option -std=c99 or -std=gnu99 to compile your code configure:4098: $? = 1 configure: failed program was: /* confdefs.h _/ #define PACKAGE_NAME "libdsm" #define PACKAGE_TARNAME "libdsm" #define PACKAGE_VERSION "0.0.5" #define PACKAGE_STRING "libdsm 0.0.5" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "libdsm" #define VERSION "0.0.5" / end confdefs.h. / #include #include #include #include #include
// Check varargs macros. These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, VA_ARGS)
#define showlist(...) puts (#VA_ARGS)
#define report(test,...) ((test) ? puts (#test) : printf (VA_ARGS))
static void
test_varargs_macros (void)
{
int x = 1234;
int y = 5678;
debug ("Flag");
debug ("X = %d\n", x);
showlist (The first, second, and third items.);
report (x>y, "x is %d but y is %d", x, y);
}
// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
your preprocessor is broken;
#endif
#if BIG_OK
#else
your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;
struct incomplete_array
{
int datasize;
double data[];
};
struct named_init {
int number;
const wchar_t *name;
double average;
};
typedef const char *ccp;
static inline int
test_restrict (ccp restrict text)
{
// See if C++-style comments work.
// Iterate through items via the restricted pointer.
// Also check for declarations in for loops.
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
continue;
return 0;
}
// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
{
va_list args;
va_start (args, format);
va_list args_copy;
va_copy (args_copy, args);
const char *str;
int number;
float fnumber;
while (_format)
{
switch (_format++)
{
case 's': // string
str = va_arg (args_copy, const char *);
break;
case 'd': // int
number = va_arg (args_copy, int);
break;
case 'f': // float
fnumber = va_arg (args_copy, double);
break;
default:
break;
}
}
va_end (args_copy);
va_end (args);
}
int
main ()
{
// Check bool.
_Bool success = false;
// Check restrict.
if (test_restrict ("String literal") == 0)
success = true;
char *restrict newvar = "Another string";
// Check varargs.
test_varargs ("s, d' f .", "string", 65, 34.234);
test_varargs_macros ();
// Check flexible array members.
struct incomplete_array *ia =
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
ia->datasize = 10;
for (int i = 0; i < ia->datasize; ++i)
ia->data[i] = i * 1.234;
// Check named initializers.
struct named_init ni = {
.number = 34,
.name = L"Test wide string",
.average = 543.34343,
};
ni.number = 58;
int dynamic_array[ni.number];
dynamic_array[ni.number - 1] = 543;
// work around unused variable warnings
return (!success bignum == 0LL ubignum == 0uLL newvar[0] == 'x'
dynamic_array[ni.number - 1] != 543);
;
return 0;
}
configure:4098: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:4098: $? = 0 configure:4118: result: -std=gnu99 configure:4127: checking whether gcc -std=gnu99 and cc understand -c and -o together configure:4158: gcc -std=gnu99 -c conftest.c -o conftest2.o >&5 configure:4162: $? = 0 configure:4168: gcc -std=gnu99 -c conftest.c -o conftest2.o >&5 configure:4172: $? = 0 configure:4183: cc -c conftest.c >&5 configure:4187: $? = 0 configure:4195: cc -c conftest.c -o conftest2.o >&5 configure:4199: $? = 0 configure:4205: cc -c conftest.c -o conftest2.o >&5 configure:4209: $? = 0 configure:4227: result: yes configure:4259: checking how to run the C preprocessor configure:4290: gcc -std=gnu99 -E conftest.c configure:4290: $? = 0 configure:4304: gcc -std=gnu99 -E conftest.c conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:4304: $? = 1 configure: failed program was: / confdefs.h / #define PACKAGE_NAME "libdsm" #define PACKAGE_TARNAME "libdsm" #define PACKAGE_VERSION "0.0.5" #define PACKAGE_STRING "libdsm 0.0.5" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "libdsm" #define VERSION "0.0.5" / end confdefs.h. / #include configure:4329: result: gcc -std=gnu99 -E configure:4349: gcc -std=gnu99 -E conftest.c configure:4349: $? = 0 configure:4363: gcc -std=gnu99 -E conftest.c conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:4363: $? = 1 configure: failed program was: / confdefs.h / #define PACKAGE_NAME "libdsm" #define PACKAGE_TARNAME "libdsm" #define PACKAGE_VERSION "0.0.5" #define PACKAGE_STRING "libdsm 0.0.5" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "libdsm" #define VERSION "0.0.5" / end confdefs.h. / #include configure:4392: checking for grep that handles long lines and -e configure:4450: result: /bin/grep configure:4455: checking for egrep configure:4517: result: /bin/grep -E configure:5079: checking for iconv configure:5103: gcc -std=gnu99 -o conftest -g -O2 conftest.c >&5 configure:5103: $? = 0 configure:5137: result: yes configure:5140: checking for working iconv configure:5260: gcc -std=gnu99 -o conftest -g -O2 conftest.c >&5 configure:5260: $? = 0 configure:5260: ./conftest configure:5260: $? = 0 configure:5272: result: yes configure:5300: checking for iconv declaration configure:5329: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:5329: $? = 0 configure:5340: result: extern size_t iconv (iconv_t cd, char * inbuf, size_t inbytesleft, char * outbuf, size_t outbytesleft); configure:5435: checking how to print strings configure:5462: result: printf configure:5483: checking for a sed that does not truncate output configure:5547: result: /bin/sed configure:5565: checking for fgrep configure:5627: result: /bin/grep -F configure:5662: checking for ld used by gcc -std=gnu99 configure:5729: result: /usr/bin/ld configure:5736: checking if the linker (/usr/bin/ld) is GNU ld configure:5751: result: yes configure:5763: checking for BSD- or MS-compatible name lister (nm) configure:5812: result: /usr/bin/nm -B configure:5942: checking the name lister (/usr/bin/nm -B) interface configure:5949: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:5952: /usr/bin/nm -B "conftest.o" configure:5955: output 00000000 B some_variable configure:5962: result: BSD nm configure:5965: checking whether ln -s works configure:5969: result: yes configure:5977: checking the maximum length of command line arguments configure:6107: result: 1572864 configure:6124: checking whether the shell understands some XSI constructs configure:6134: result: yes configure:6138: checking whether the shell understands "+=" configure:6144: result: yes configure:6179: checking how to convert armv6l-unknown-linux-gnueabihf file names to armv6l-unknown-linux-gnueabihf format configure:6219: result: func_convert_file_noop configure:6226: checking how to convert armv6l-unknown-linux-gnueabihf file names to toolchain format configure:6246: result: func_convert_file_noop configure:6253: checking for /usr/bin/ld option to reload object files configure:6260: result: -r configure:6334: checking for objdump configure:6350: found /usr/bin/objdump configure:6361: result: objdump configure:6393: checking how to recognize dependent libraries configure:6591: result: pass_all configure:6676: checking for dlltool configure:6706: result: no configure:6736: checking how to associate runtime and link libraries configure:6763: result: printf %s\n configure:6823: checking for ar configure:6839: found /usr/bin/ar configure:6850: result: ar configure:6887: checking for archiver @FILE support configure:6904: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:6904: $? = 0 configure:6907: ar cru libconftest.a @conftest.lst >&5 configure:6910: $? = 0 configure:6915: ar cru libconftest.a @conftest.lst >&5 ar: conftest.o: No such file or directory configure:6918: $? = 1 configure:6930: result: @ configure:6988: checking for strip configure:7004: found /usr/bin/strip configure:7015: result: strip configure:7087: checking for ranlib configure:7103: found /usr/bin/ranlib configure:7114: result: ranlib configure:7216: checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object configure:7336: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:7339: $? = 0 configure:7343: /usr/bin/nm -B conftest.o sed -n -e 's/^.[ ]([ABCDGIRSTW][ABCDGIRSTW])[ ][ ]_([_A-Za-z][A-Za-z0-9])$/\1 \2 \2/p' sed '/ __gnu_lto/d' > conftest.nm configure:7346: $? = 0 configure:7412: gcc -std=gnu99 -o conftest -g -O2 conftest.c conftstm.o >&5 configure:7415: $? = 0 configure:7453: result: ok configure:7490: checking for sysroot configure:7520: result: no configure:7776: checking for mt configure:7792: found /bin/mt configure:7803: result: mt configure:7826: checking if mt is a manifest tool configure:7832: mt '-?' configure:7840: result: no configure:8477: checking for ANSI C header files configure:8497: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:8497: $? = 0 configure:8570: gcc -std=gnu99 -o conftest -g -O2 conftest.c >&5 configure:8570: $? = 0 configure:8570: ./conftest configure:8570: $? = 0 configure:8581: result: yes configure:8594: checking for sys/types.h configure:8594: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:8594: $? = 0 configure:8594: result: yes configure:8594: checking for sys/stat.h configure:8594: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:8594: $? = 0 configure:8594: result: yes configure:8594: checking for stdlib.h configure:8594: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:8594: $? = 0 configure:8594: result: yes configure:8594: checking for string.h configure:8594: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:8594: $? = 0 configure:8594: result: yes configure:8594: checking for memory.h configure:8594: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:8594: $? = 0 configure:8594: result: yes configure:8594: checking for strings.h configure:8594: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:8594: $? = 0 configure:8594: result: yes configure:8594: checking for inttypes.h configure:8594: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:8594: $? = 0 configure:8594: result: yes configure:8594: checking for stdint.h configure:8594: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:8594: $? = 0 configure:8594: result: yes configure:8594: checking for unistd.h configure:8594: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:8594: $? = 0 configure:8594: result: yes configure:8608: checking for dlfcn.h configure:8608: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:8608: $? = 0 configure:8608: result: yes configure:8814: checking for objdir configure:8829: result: .libs configure:9100: checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions configure:9118: gcc -std=gnu99 -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5 cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default] configure:9122: $? = 0 configure:9135: result: no configure:9462: checking for gcc -std=gnu99 option to produce PIC configure:9469: result: -fPIC -DPIC configure:9477: checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works configure:9495: gcc -std=gnu99 -c -g -O2 -fPIC -DPIC -DPIC conftest.c >&5 configure:9499: $? = 0 configure:9512: result: yes configure:9541: checking if gcc -std=gnu99 static flag -static works configure:9569: result: yes configure:9584: checking if gcc -std=gnu99 supports -c -o file.o configure:9605: gcc -std=gnu99 -c -g -O2 -o out/conftest2.o conftest.c >&5 configure:9609: $? = 0 configure:9631: result: yes configure:9639: checking if gcc -std=gnu99 supports -c -o file.o configure:9686: result: yes configure:9719: checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries configure:10876: result: yes configure:10913: checking whether -lc should be explicitly linked in configure:10921: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:10924: $? = 0 configure:10939: gcc -std=gnu99 -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2>&1 /bin/grep -lc >/dev/null 2>&1 configure:10942: $? = 0 configure:10956: result: no configure:11116: checking dynamic linker characteristics configure:11616: gcc -std=gnu99 -o conftest -g -O2 -Wl,-rpath -Wl,/foo conftest.c >&5 configure:11616: $? = 0 configure:11850: result: GNU/Linux ld.so configure:11957: checking how to hardcode library paths into programs configure:11982: result: immediate configure:12522: checking whether stripping libraries is possible configure:12527: result: yes configure:12562: checking if libtool supports shared libraries configure:12564: result: yes configure:12567: checking whether to build shared libraries configure:12588: result: yes configure:12591: checking whether to build static libraries configure:12595: result: yes configure:12639: checking for bash configure:12657: found /bin/bash configure:12669: result: /bin/bash configure:12677: checking if dolt supports this host configure:12709: result: yes, replacing libtool configure:12955: checking if compiler needs -Werror to reject unknown flags configure:12971: gcc -std=gnu99 -c -g -O2 -Werror -Wunknown-warning-option -Wsizeof-array-argument conftest.c >&5 cc1: error: unrecognized command line option '-Wunknown-warning-option' cc1: error: unrecognized command line option '-Wsizeof-array-argument' configure:12971: $? = 1 configure: failed program was: / confdefs.h / #define PACKAGE_NAME "libdsm" #define PACKAGE_TARNAME "libdsm" #define PACKAGE_VERSION "0.0.5" #define PACKAGE_STRING "libdsm 0.0.5" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "libdsm" #define VERSION "0.0.5" #define HAVE_ICONV 1 #define ICONV_CONST #define BDSM_DEBUG 1 #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" / end confdefs.h. / int foo(void); int main () { foo() ; return 0; } configure:12976: result: no configure:13042: checking for the pthreads library -lpthreads configure:13080: gcc -std=gnu99 -o conftest -g -O2 conftest.c -lpthreads >&5 /usr/bin/ld: cannot find -lpthreads collect2: ld returned 1 exit status configure:13080: $? = 1 configure: failed program was: / confdefs.h / #define PACKAGE_NAME "libdsm" #define PACKAGE_TARNAME "libdsm" #define PACKAGE_VERSION "0.0.5" #define PACKAGE_STRING "libdsm 0.0.5" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "libdsm" #define VERSION "0.0.5" #define HAVE_ICONV 1 #define ICONV_CONST #define BDSM_DEBUG 1 #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" / end confdefs.h. / #include static void routine(void *a) { a = 0; } static void start_routine(void a) { return a; } int main () { pthread_t th; pthread_attr_t attr; pthread_create(&th, 0, start_routine, 0); pthread_join(th, 0); pthread_attr_init(&attr); pthread_cleanup_push(routine, 0); pthread_cleanuppop(0) / ; _/ ; return 0; } configure:13089: result: no configure:12987: checking whether pthreads work without any flags configure:13080: gcc -std=gnu99 -o conftest -g -O2 conftest.c >&5 /tmp/ccEgu3lL.o: In function main': /home/pi/tmp/libdsm/conftest.c:33: undefined reference topthread_create' /home/pi/tmp/libdsm/conftest.c:34: undefined reference to pthread_join' /home/pi/tmp/libdsm/conftest.c:36: undefined reference topthread_register_cancel' /home/pi/tmp/libdsm/conftest.c:37: undefined reference to `pthread_unregister_cancel' collect2: ld returned 1 exit status configure:13080: $? = 1 configure: failed program was: / confdefs.h / #define PACKAGE_NAME "libdsm" #define PACKAGE_TARNAME "libdsm" #define PACKAGE_VERSION "0.0.5" #define PACKAGE_STRING "libdsm 0.0.5" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "libdsm" #define VERSION "0.0.5" #define HAVE_ICONV 1 #define ICONV_CONST #define BDSM_DEBUG 1 #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" / end confdefs.h. / #include static void routine(void *a) { a = 0; } static void start_routine(void a) { return a; } int main () { pthread_t th; pthread_attr_t attr; pthread_create(&th, 0, start_routine, 0); pthread_join(th, 0); pthread_attr_init(&attr); pthread_cleanup_push(routine, 0); pthread_cleanuppop(0) / ; _/ ; return 0; } configure:13089: result: no configure:12992: checking whether pthreads work with -Kthread configure:13080: gcc -std=gnu99 -o conftest -g -O2 -Kthread conftest.c >&5 gcc: error: unrecognized option '-Kthread' configure:13080: $? = 1 configure: failed program was: / confdefs.h / #define PACKAGE_NAME "libdsm" #define PACKAGE_TARNAME "libdsm" #define PACKAGE_VERSION "0.0.5" #define PACKAGE_STRING "libdsm 0.0.5" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "libdsm" #define VERSION "0.0.5" #define HAVE_ICONV 1 #define ICONV_CONST #define BDSM_DEBUG 1 #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" / end confdefs.h. / #include static void routine(void *a) { a = 0; } static void start_routine(void a) { return a; } int main () { pthread_t th; pthread_attr_t attr; pthread_create(&th, 0, start_routine, 0); pthread_join(th, 0); pthread_attr_init(&attr); pthread_cleanup_push(routine, 0); pthread_cleanuppop(0) / ; _/ ; return 0; } configure:13089: result: no configure:12992: checking whether pthreads work with -kthread configure:13080: gcc -std=gnu99 -o conftest -g -O2 -kthread conftest.c >&5 gcc: error: unrecognized option '-kthread' configure:13080: $? = 1 configure: failed program was: / confdefs.h / #define PACKAGE_NAME "libdsm" #define PACKAGE_TARNAME "libdsm" #define PACKAGE_VERSION "0.0.5" #define PACKAGE_STRING "libdsm 0.0.5" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "libdsm" #define VERSION "0.0.5" #define HAVE_ICONV 1 #define ICONV_CONST #define BDSM_DEBUG 1 #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" / end confdefs.h. / #include static void routine(void *a) { a = 0; } static void start_routine(void a) { return a; } int main () { pthread_t th; pthread_attr_t attr; pthread_create(&th, 0, start_routine, 0); pthread_join(th, 0); pthread_attr_init(&attr); pthread_cleanup_push(routine, 0); pthread_cleanuppop(0) / ; _/ ; return 0; } configure:13089: result: no configure:13042: checking for the pthreads library -llthread configure:13080: gcc -std=gnu99 -o conftest -g -O2 conftest.c -llthread >&5 /usr/bin/ld: cannot find -llthread collect2: ld returned 1 exit status configure:13080: $? = 1 configure: failed program was: / confdefs.h / #define PACKAGE_NAME "libdsm" #define PACKAGE_TARNAME "libdsm" #define PACKAGE_VERSION "0.0.5" #define PACKAGE_STRING "libdsm 0.0.5" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "libdsm" #define VERSION "0.0.5" #define HAVE_ICONV 1 #define ICONV_CONST #define BDSM_DEBUG 1 #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" / end confdefs.h. / #include static void routine(void *a) { a = 0; } static void start_routine(void a) { return a; } int main () { pthread_t th; pthread_attr_t attr; pthread_create(&th, 0, start_routine, 0); pthread_join(th, 0); pthread_attr_init(&attr); pthread_cleanup_push(routine, 0); pthread_cleanuppop(0) / ; _/ ; return 0; } configure:13089: result: no configure:12992: checking whether pthreads work with -pthread configure:13080: gcc -std=gnu99 -o conftest -g -O2 -pthread conftest.c >&5 configure:13080: $? = 0 configure:13089: result: yes configure:13108: checking for joinable pthread attribute configure:13123: gcc -std=gnu99 -o conftest -g -O2 -pthread conftest.c >&5 configure:13123: $? = 0 configure:13129: result: PTHREAD_CREATE_JOINABLE configure:13139: checking if more special flags are required for pthreads configure:13154: result: no configure:13160: checking for PTHREAD_PRIO_INHERIT configure:13177: gcc -std=gnu99 -o conftest -g -O2 -pthread conftest.c >&5 conftest.c: In function 'main': conftest.c:30:9: error: 'PTHREAD_PRIO_INHERIT' undeclared (first use in this function) conftest.c:30:9: note: each undeclared identifier is reported only once for each function it appears in configure:13177: $? = 1 configure: failed program was: / confdefs.h / #define PACKAGE_NAME "libdsm" #define PACKAGE_TARNAME "libdsm" #define PACKAGE_VERSION "0.0.5" #define PACKAGE_STRING "libdsm 0.0.5" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "libdsm" #define VERSION "0.0.5" #define HAVE_ICONV 1 #define ICONV_CONST #define BDSM_DEBUG 1 #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" / end confdefs.h. / #include int main () { int i = PTHREAD_PRIO_INHERIT; ; return 0; } configure:13186: result: no configure:13342: checking for pkg-config configure:13360: found /usr/bin/pkg-config configure:13372: result: /usr/bin/pkg-config configure:13397: checking pkg-config is at least version 0.9.0 configure:13400: result: yes configure:13410: checking for TASN1 configure:13417: $PKG_CONFIG --exists --print-errors "libtasn1" configure:13420: $? = 0 configure:13434: $PKG_CONFIG --exists --print-errors "libtasn1" configure:13437: $? = 0 configure:13495: result: yes configure:13501: checking whether libtasn1 version >= 3.0 configure:13517: gcc -std=gnu99 -c -g -O2 conftest.c >&5 conftest.c: In function 'main': conftest.c:32:2: error: unknown type name 'asn1_node' configure:13517: $? = 1 configure: failed program was: / confdefs.h / #define PACKAGE_NAME "libdsm" #define PACKAGE_TARNAME "libdsm" #define PACKAGE_VERSION "0.0.5" #define PACKAGE_STRING "libdsm 0.0.5" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "libdsm" #define VERSION "0.0.5" #define HAVE_ICONV 1 #define ICONV_CONST #define BDSM_DEBUG 1 #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" #define HAVE_PTHREAD 1 / end confdefs.h. /
#include
int
main ()
{
asn1_node test;
;
return 0;
}
configure:13525: result: no configure:13558: checking for library containing strlcpy configure:13589: gcc -std=gnu99 -o conftest -g -O2 conftest.c >&5 /tmp/ccaakQtC.o: In function main': /home/pi/tmp/libdsm/conftest.c:39: undefined reference tostrlcpy' collect2: ld returned 1 exit status configure:13589: $? = 1 configure: failed program was: / confdefs.h / #define PACKAGE_NAME "libdsm" #define PACKAGE_TARNAME "libdsm" #define PACKAGE_VERSION "0.0.5" #define PACKAGE_STRING "libdsm 0.0.5" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "libdsm" #define VERSION "0.0.5" #define HAVE_ICONV 1 #define ICONV_CONST #define BDSM_DEBUG 1 #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" #define HAVE_PTHREAD 1 #define asn1_static_node ASN1_ARRAY_TYPE / end confdefs.h. /
/_ Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. _/
#ifdef __cplusplus
extern "C"
#endif
char strlcpy ();
int
main ()
{
return strlcpy ();
;
return 0;
}
configure:13589: gcc -std=gnu99 -o conftest -g -O2 conftest.c -lbsd >&5 /usr/bin/ld: cannot find -lbsd collect2: ld returned 1 exit status configure:13589: $? = 1 configure: failed program was: / confdefs.h / #define PACKAGE_NAME "libdsm" #define PACKAGE_TARNAME "libdsm" #define PACKAGE_VERSION "0.0.5" #define PACKAGE_STRING "libdsm 0.0.5" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "libdsm" #define VERSION "0.0.5" #define HAVE_ICONV 1 #define ICONV_CONST #define BDSM_DEBUG 1 #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" #define HAVE_PTHREAD 1 #define asn1_static_node ASN1_ARRAY_TYPE / end confdefs.h. /
/_ Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. _/
#ifdef __cplusplus
extern "C"
#endif
char strlcpy ();
int
main ()
{
return strlcpy ();
;
return 0;
}
configure:13606: result: no configure:13618: checking for strlcpy configure:13618: gcc -std=gnu99 -o conftest -g -O2 conftest.c >&5 /tmp/ccslKvRH.o: In function main': /home/pi/tmp/libdsm/conftest.c:62: undefined reference tostrlcpy' collect2: ld returned 1 exit status configure:13618: $? = 1 configure: failed program was: / confdefs.h / #define PACKAGE_NAME "libdsm" #define PACKAGE_TARNAME "libdsm" #define PACKAGE_VERSION "0.0.5" #define PACKAGE_STRING "libdsm 0.0.5" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "libdsm" #define VERSION "0.0.5" #define HAVE_ICONV 1 #define ICONV_CONST #define BDSM_DEBUG 1 #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" #define HAVE_PTHREAD 1 #define asn1_static_node ASN1_ARRAY_TYPE / end confdefs.h. / /_ Define strlcpy to an innocuous variant, in case declares strlcpy. For example, HP-UX 11i declares gettimeofday. _/ #define strlcpy innocuous_strlcpy
/_ System header to define __stub macros and hopefully few prototypes,
which can conflict with char strlcpy (); below.
Prefer to if STDC is defined, since
exists even on freestanding compilers. _/
#ifdef STDC
# include
#else
# include
#endif
#undef strlcpy
/_ Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. _/
#ifdef __cplusplus
extern "C"
#endif
char strlcpy ();
/_ The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with _ and the normal name is an alias. /
#if defined __stub_strlcpy defined __stub___strlcpy
choke me
#endif
int
main ()
{
return strlcpy ();
;
return 0;
}
configure:13618: result: no configure:13632: checking for clock_gettime configure:13632: gcc -std=gnu99 -o conftest -g -O2 conftest.c >&5 /tmp/ccAaQV7p.o: In function main': /home/pi/tmp/libdsm/conftest.c:62: undefined reference toclock_gettime' collect2: ld returned 1 exit status configure:13632: $? = 1 configure: failed program was: / confdefs.h / #define PACKAGE_NAME "libdsm" #define PACKAGE_TARNAME "libdsm" #define PACKAGE_VERSION "0.0.5" #define PACKAGE_STRING "libdsm 0.0.5" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "libdsm" #define VERSION "0.0.5" #define HAVE_ICONV 1 #define ICONV_CONST #define BDSM_DEBUG 1 #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" #define HAVE_PTHREAD 1 #define asn1_static_node ASN1_ARRAY_TYPE / end confdefs.h. / /_ Define clock_gettime to an innocuous variant, in case declares clock_gettime. For example, HP-UX 11i declares gettimeofday. _/ #define clock_gettime innocuous_clock_gettime
/_ System header to define **stub macros and hopefully few prototypes,
which can conflict with char clock_gettime (); below.
Prefer to if __STDC** is defined, since
exists even on freestanding compilers. _/
#ifdef STDC
# include
#else
# include
#endif
#undef clock_gettime
/_ Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. _/
#ifdef __cplusplus
extern "C"
#endif
char clock_gettime ();
/_ The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with _ and the normal name is an alias. /
#if defined __stub_clock_gettime defined __stub___clock_gettime
choke me
#endif
int
main ()
{
return clock_gettime ();
;
return 0;
}

configure:13632: result: no configure:13649: checking bsd/string.h usability configure:13649: gcc -std=gnu99 -c -g -O2 conftest.c >&5 conftest.c:61:24: fatal error: bsd/string.h: No such file or directory compilation terminated. configure:13649: $? = 1 configure: failed program was: | / confdefs.h / | #define PACKAGE_NAME "libdsm" | #define PACKAGE_TARNAME "libdsm" | #define PACKAGE_VERSION "0.0.5" | #define PACKAGE_STRING "libdsm 0.0.5" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libdsm" | #define VERSION "0.0.5" | #define HAVE_ICONV 1 | #define ICONV_CONST | #define BDSM_DEBUG 1 | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_PTHREAD 1 | #define asn1_static_node ASN1_ARRAYTYPE | / end confdefs.h. _/ | #include | #ifdef HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #ifdef HAVE_SYS_STAT_H | # include <sys/stat.h> | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTDH | # include | #endif | #include <bsd/string.h> configure:13649: result: no configure:13649: checking bsd/string.h presence configure:13649: gcc -std=gnu99 -E conftest.c conftest.c:28:24: fatal error: bsd/string.h: No such file or directory compilation terminated. configure:13649: $? = 1 configure: failed program was: | / confdefs.h _/ | #define PACKAGE_NAME "libdsm" | #define PACKAGE_TARNAME "libdsm" | #define PACKAGE_VERSION "0.0.5" | #define PACKAGE_STRING "libdsm 0.0.5" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libdsm" | #define VERSION "0.0.5" | #define HAVE_ICONV 1 | #define ICONV_CONST | #define BDSM_DEBUG 1 | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_PTHREAD 1 | #define asn1_static_node ASN1_ARRAYTYPE | / end confdefs.h. */ | #include <bsd/string.h> configure:13649: result: no configure:13649: checking for bsd/string.h configure:13649: result: no configure:13661: checking langinfo.h usability configure:13661: gcc -std=gnu99 -c -g -O2 conftest.c >&5 configure:13661: $? = 0 configure:13661: result: yes configure:13661: checking langinfo.h presence configure:13661: gcc -std=gnu99 -E conftest.c configure:13661: $? = 0 configure:13661: result: yes configure:13661: checking for langinfo.h configure:13661: result: yes configure:13692: checking for doxygen configure:13708: found /usr/bin/doxygen configure:13719: result: doxygen configure:13902: creating ./config.status

----------------------

Running config.status.

----------------------

This file was extended by libdsm config.status 0.0.5, which was generated by GNU Autoconf 2.69. Invocation command line was

CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status

on karaoke-pi

config.status:1117: creating doc/Doxyfile config.status:1117: creating Makefile config.status:1117: creating libdsm.pc config.status:1117: creating config.h config.status:1346: executing depfiles commands config.status:1346: executing libtool commands

----------------

Cache variables.

----------------

ac_cv_build=armv6l-unknown-linux-gnueabihf ac_cv_c_compiler_gnu=yes ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_PKG_CONFIG_LIBDIR_set= ac_cv_env_PKG_CONFIG_LIBDIR_value= ac_cv_env_PKG_CONFIG_PATH_set= ac_cv_env_PKG_CONFIG_PATH_value= ac_cv_env_PKG_CONFIG_set= ac_cv_env_PKG_CONFIG_value= ac_cv_env_TASN1_CFLAGS_set= ac_cv_env_TASN1_CFLAGS_value= ac_cv_env_TASN1_LIBS_set= ac_cv_env_TASN1_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_func_clock_gettime=no ac_cv_func_strlcpy=no ac_cv_header_bsd_string_h=no ac_cv_header_dlfcn_h=yes ac_cv_header_inttypes_h=yes ac_cv_header_langinfo_h=yes ac_cv_header_memory_h=yes ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_unistd_h=yes ac_cv_host=armv6l-unknown-linux-gnueabihf ac_cv_objext=o ac_cv_path_DOLT_BASH=/bin/bash ac_cv_path_EGREP='/bin/grep -E' ac_cv_path_FGREP='/bin/grep -F' ac_cv_path_GREP=/bin/grep ac_cv_path_SED=/bin/sed ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=mawk ac_cv_prog_CPP='gcc -std=gnu99 -E' ac_cv_prog_DOXYGEN=doxygen ac_cv_prog_ac_ct_AR=ar ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_MANIFEST_TOOL=mt ac_cv_prog_ac_ct_OBJDUMP=objdump ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_cc_c89= ac_cv_prog_cc_c99=-std=gnu99 ac_cv_prog_cc_g=yes ac_cv_prog_cc_gcc_c_o=yes ac_cv_prog_make_make_set=yes ac_cv_search_strlcpy=no am_cv_CC_dependencies_compiler_type=gcc3 am_cv_func_iconv=yes am_cv_func_iconv_works=yes am_cv_lib_iconv=no am_cv_make_support_nested_variables=yes am_cv_prog_tar_ustar=gnutar am_cv_proto_iconv='extern size_t iconv (iconv_t cd, char * _inbuf, size_t inbytesleft, char * outbuf, size_t outbytesleft);' am_cv_proto_iconv_arg1= ax_cv_PTHREAD_PRIO_INHERIT=no lt_cv_ar_at_file=@ lt_cv_archive_cmds_need_lc=no lt_cv_deplibs_check_method=pass_all lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_ld_reload_flag=-r lt_cv_nm_interface='BSD nm' lt_cv_objdir=.libs lt_cv_path_LD=/usr/bin/ld lt_cv_path_NM='/usr/bin/nm -B' lt_cv_path_mainfest_tool=no lt_cv_prog_compiler_c_o=yes lt_cv_prog_compiler_pic='-fPIC -DPIC' lt_cv_prog_compiler_pic_works=yes lt_cv_prog_compiler_rtti_exceptions=no lt_cv_prog_compiler_static_works=yes lt_cv_prog_gnu_ld=yes lt_cv_sharedlib_from_linklib_cmd='printf %s\n' lt_cv_shlibpath_overrides_runpath=no lt_cv_sys_global_symbolpipe='sed -n -e '\''s/^. [ ][ ]_([_A-Za-z][A-Za-z0-9])$/\1 \2 \2/p'\'' | sed '\''/ __gnu_lto/d'\''' lt_cv_sys_global_symbol_to_c_nameaddress='sed -n -e '\''s/^: ([^ ])[ ]_$/ {\"\1\", (void ) 0},/p'\'' -e '\''s/^[ABCDGIRSTW] ([^ ]) ([^ ])$/ {"\2", (void ) &\2},/p'\''' lt_cv_sys_global_symbol_to_c_name_address_libprefix='sed -n -e '\''s/^: ([^ ])[ ]$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW] ([^ ]) (lib[^ ])$/ {"\2", (void ) &\2},/p'\'' -e '\''s/^[ABCDGIRSTW] ([^ ]) ([^ ])$/ {"lib\2", (void _) &\2},/p'\''' lt_cv_sys_global_symbol_tocdecl='sed -n -e '\''s/^T . (.)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW] .* (.*)$/extern char \1;/p'\''' lt_cv_sys_max_cmd_len=1572864 lt_cv_to_host_file_cmd=func_convert_file_noop lt_cv_to_tool_file_cmd=func_convert_file_noop pkg_cv_TASN1_CFLAGS=' ' pkg_cv_TASN1_LIBS='-ltasn1 '

-----------------

Output variables.

-----------------

ACLOCAL='${SHELL} /home/pi/tmp/libdsm/missing --run aclocal-1.11' AMDEPBACKSLASH='\' AMDEP_FALSE='#' AMDEP_TRUE='' AMTAR='$${TAR-tar}' AM_BACKSLASH='\' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='0' AM_V='$(V)' AR='ar' AUTOCONF='${SHELL} /home/pi/tmp/libdsm/missing --run autoconf' AUTOHEADER='${SHELL} /home/pi/tmp/libdsm/missing --run autoheader' AUTOMAKE='${SHELL} /home/pi/tmp/libdsm/missing --run automake-1.11' AWK='mawk' BDSM_ABI_VERSION='2.1.0' BDSM_LIBTOOL_VERSION='2:1:0' BDSM_LIB_LOG='' BDSM_PACKAGE_VERSION='0.0.5' CC='gcc -std=gnu99' CCDEPMODE='depmode=gcc3' CFLAGS='-g -O2 ' CPP='gcc -std=gnu99 -E' CPPFLAGS='' CYGPATH_W='echo' DEBUG_FALSE='#' DEBUG_TRUE='' DEFS='-DHAVE_CONFIG_H' DEPDIR='.deps' DLLTOOL='false' DOLT_BASH='/bin/bash' DOLT_CLEANFILES='doltlibtool doltcompile' DOXYGEN='doxygen' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/bin/grep -E' EXEEXT='' FGREP='/bin/grep -F' GREP='/bin/grep' HAVE_DOXYGEN_FALSE='#' HAVE_DOXYGEN_TRUE='' HAVE_TASN1_3PLUS_FALSE='' HAVE_TASN1_3PLUS_TRUE='#' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='/usr/bin/ld' LDFLAGS='' LIBICONV='' LIBOBJS=' ${LIBOBJDIR}strlcpy$U.o ${LIBOBJDIR}clock_gettime$U.o' LIBS='' LIBTOOL='$(top_builddir)/doltlibtool' LIPO='' LN_S='ln -s' LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)' LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)' LTLIBICONV='' LTLIBOBJS=' ${LIBOBJDIR}strlcpy$U.lo ${LIBOBJDIR}clock_gettime$U.lo' MAKEINFO='${SHELL} /home/pi/tmp/libdsm/missing --run makeinfo' MANIFEST_TOOL=':' MKDIR_P='/bin/mkdir -p' NM='/usr/bin/nm -B' NMEDIT='' OBJDUMP='objdump' OBJEXT='o' OTOOL64='' OTOOL='' PACKAGE='libdsm' PACKAGE_BUGREPORT='' PACKAGE_NAME='libdsm' PACKAGE_STRING='libdsm 0.0.5' PACKAGE_TARNAME='libdsm' PACKAGE_URL='' PACKAGE_VERSION='0.0.5' PATH_SEPARATOR=':' PKG_CONFIG='/usr/bin/pkg-config' PKG_CONFIG_LIBDIR='' PKG_CONFIG_PATH='' PROGRAMS_FALSE='#' PROGRAMS_TRUE='' PTHREAD_CC='gcc -std=gnu99' PTHREAD_CFLAGS='-pthread' PTHREAD_LIBS='' RANLIB='ranlib' SED='/bin/sed' SET_MAKE='' SHELL='/bin/bash' STRIP='strip' TASN1_CFLAGS=' ' TASN1_LIBS='-ltasn1 ' VERSION='0.0.5' ac_ct_AR='ar' ac_ct_CC='gcc' ac_ct_DUMPBIN='' amEXEEXT_FALSE='' am__EXEEXT_TRUE='#' amfastdepCC_FALSE='#' amfastdepCC_TRUE='' aminclude='include' amisrc='' am__leading_dot='.' amnodep='_no' amquote='' amtar='tar --format=ustar -chf - "$$tardir"' am__untar='tar -xf -' ax_pthread_config='' bindir='${exec_prefix}/bin' build='armv6l-unknown-linux-gnueabihf' build_alias='' build_cpu='armv6l' build_os='linux-gnueabihf' build_vendor='unknown' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='${prefix}' host='armv6l-unknown-linux-gnueabihf' host_alias='' host_cpu='armv6l' host_os='linux-gnueabihf' host_vendor='unknown' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='${SHELL} /home/pi/tmp/libdsm/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='/bin/mkdir -p' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/usr' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias=''

-----------

confdefs.h.

-----------

/* confdefs.h */

define PACKAGE_NAME "libdsm"

define PACKAGE_TARNAME "libdsm"

define PACKAGE_VERSION "0.0.5"

define PACKAGE_STRING "libdsm 0.0.5"

define PACKAGE_BUGREPORT ""

define PACKAGE_URL ""

define PACKAGE "libdsm"

define VERSION "0.0.5"

define HAVE_ICONV 1

define ICONV_CONST

define BDSM_DEBUG 1

define STDC_HEADERS 1

define HAVE_SYS_TYPES_H 1

define HAVE_SYS_STAT_H 1

define HAVE_STDLIB_H 1

define HAVE_STRING_H 1

define HAVE_MEMORY_H 1

define HAVE_STRINGS_H 1

define HAVE_INTTYPES_H 1

define HAVE_STDINT_H 1

define HAVE_UNISTD_H 1

define HAVE_DLFCN_H 1

define LT_OBJDIR ".libs/"

define HAVE_PTHREAD 1

define asn1_static_node ASN1_ARRAY_TYPE

define HAVE_LANGINFO_H 1

define URANDOM "/dev/urandom"

configure: exit 0

Make Output

make all-am make[1]: Entering directory '/home/pi/tmp/libdsm' asn1Parser -o contrib/spnego/spnego_asn1.c -n spnego_asn1_conf contrib/spnego/spnego.asn1 Done. CC contrib/spnego/spnego_asn1.lo CC src/hmac_md5.lo CC src/netbios_ns.lo In file included from src/netbios_ns.c:57:0: ./compat/compat.h:39:5: error: expected identifier before numeric constant ./compat/compat.h:43:3: error: conflicting types for ‘clockid_t’ /usr/include/time.h:92:21: note: previous declaration of ‘clockid_t’ was here ./compat/compat.h:44:5: error: conflicting types for ‘clock_gettime’ /usr/include/time.h:336:12: note: previous declaration of ‘clock_gettime’ was here Makefile:766: recipe for target 'src/netbios_ns.lo' failed make[1]: * [src/netbios_ns.lo] Error 1 make[1]: Leaving directory '/home/pi/tmp/libdsm' Makefile:426: recipe for target 'all' failed make: * [all] Error 2

ramyD commented 9 years ago

so the config does say its not there, but maybe it should return an error at the config stage?

jbkempf commented 9 years ago

clock_gettime is defined on Ubuntu. Something else is weird... http://manpages.ubuntu.com/manpages/trusty/man2/clock_getres.2.html

ramyD commented 9 years ago

sorry, I'm not on ubuntu. I'm not sure about @freedxy 's situation but I am working on a debian fork for the Raspberry Pi (rasbian) which is based on Debian Wheezy : https://www.raspberrypi.org/downloads/ uname -a Linux raspberrypi 3.18.11+ #781 PREEMPT Tue Apr 21 18:02:18 BST 2015 armv6l GNU/Linux

Flameeyes commented 9 years ago

I think I know, clock_gettime is defined in librt.so which is not linked in there, but it probably is in VLC where this is checked for.

Can you try ./configure LIBS=-lrt to confirm? If that works I may know how to fix this and can do that tomorrow.

ramyD commented 9 years ago

Adding the LIBS statement results in a successful make compilation.

jbkempf commented 9 years ago

Should be fixed!