Hi to you all, I'm new to this mailing list, and appreciate the opportunity.
I'm trying to build libsigrokdecode libray from current github source code. 
autogen.sh and configure don't show errors, but make sends a lot of warnings 
and a fatal apparently linker error. 

make output............


make  all-am
  CC       srd.lo
In file included from /usr/local/include/python3.6m/Python.h:8:0,
                 from libsigrokdecode-internal.h:27,
                 from srd.c:22:
/usr/local/include/python3.6m/pyconfig.h:1451:0: warning: "_POSIX_C_SOURCE" 
redefined
 #define _POSIX_C_SOURCE 200809L
 ^
In file included from srd.c:21:0:
./config.h:113:0: note: this is the location of the previous definition
 # define _POSIX_C_SOURCE 200112L
 ^
  CC       session.lo
In file included from /usr/local/include/python3.6m/Python.h:8:0,
                 from libsigrokdecode-internal.h:27,
                 from session.c:22:
/usr/local/include/python3.6m/pyconfig.h:1451:0: warning: "_POSIX_C_SOURCE" 
redefined
 #define _POSIX_C_SOURCE 200809L
 ^
In file included from session.c:21:0:
./config.h:113:0: note: this is the location of the previous definition
 # define _POSIX_C_SOURCE 200112L
 ^
  CC       decoder.lo
In file included from /usr/local/include/python3.6m/Python.h:8:0,
                 from libsigrokdecode-internal.h:27,
                 from decoder.c:22:
/usr/local/include/python3.6m/pyconfig.h:1451:0: warning: "_POSIX_C_SOURCE" 
redefined
 #define _POSIX_C_SOURCE 200809L
 ^
In file included from decoder.c:21:0:
./config.h:113:0: note: this is the location of the previous definition
 # define _POSIX_C_SOURCE 200112L
 ^
  CC       instance.lo
In file included from /usr/local/include/python3.6m/Python.h:8:0,
                 from libsigrokdecode-internal.h:27,
                 from instance.c:22:
/usr/local/include/python3.6m/pyconfig.h:1451:0: warning: "_POSIX_C_SOURCE" 
redefined
 #define _POSIX_C_SOURCE 200809L
 ^
In file included from instance.c:21:0:
./config.h:113:0: note: this is the location of the previous definition
 # define _POSIX_C_SOURCE 200112L
 ^
  CC       log.lo
In file included from /usr/local/include/python3.6m/Python.h:8:0,
                 from libsigrokdecode-internal.h:27,
                 from log.c:21:
/usr/local/include/python3.6m/pyconfig.h:1451:0: warning: "_POSIX_C_SOURCE" 
redefined
 #define _POSIX_C_SOURCE 200809L
 ^
In file included from log.c:20:0:
./config.h:113:0: note: this is the location of the previous definition
 # define _POSIX_C_SOURCE 200112L
 ^
  CC       util.lo
In file included from /usr/local/include/python3.6m/Python.h:8:0,
                 from libsigrokdecode-internal.h:27,
                 from util.c:22:
/usr/local/include/python3.6m/pyconfig.h:1451:0: warning: "_POSIX_C_SOURCE" 
redefined
 #define _POSIX_C_SOURCE 200809L
 ^
In file included from util.c:21:0:
./config.h:113:0: note: this is the location of the previous definition
 # define _POSIX_C_SOURCE 200112L
 ^
  CC       exception.lo
In file included from /usr/local/include/python3.6m/Python.h:8:0,
                 from libsigrokdecode-internal.h:27,
                 from exception.c:21:
/usr/local/include/python3.6m/pyconfig.h:1451:0: warning: "_POSIX_C_SOURCE" 
redefined
 #define _POSIX_C_SOURCE 200809L
 ^
In file included from exception.c:20:0:
./config.h:113:0: note: this is the location of the previous definition
 # define _POSIX_C_SOURCE 200112L
 ^
  CC       module_sigrokdecode.lo
In file included from /usr/local/include/python3.6m/Python.h:8:0,
                 from libsigrokdecode-internal.h:27,
                 from module_sigrokdecode.c:21:
/usr/local/include/python3.6m/pyconfig.h:1451:0: warning: "_POSIX_C_SOURCE" 
redefined
 #define _POSIX_C_SOURCE 200809L
 ^
In file included from module_sigrokdecode.c:20:0:
./config.h:113:0: note: this is the location of the previous definition
 # define _POSIX_C_SOURCE 200112L
 ^
  CC       type_decoder.lo
In file included from /usr/local/include/python3.6m/Python.h:8:0,
                 from libsigrokdecode-internal.h:27,
                 from type_decoder.c:21:
/usr/local/include/python3.6m/pyconfig.h:1451:0: warning: "_POSIX_C_SOURCE" 
redefined
 #define _POSIX_C_SOURCE 200809L
 ^
In file included from type_decoder.c:20:0:
./config.h:113:0: note: this is the location of the previous definition
 # define _POSIX_C_SOURCE 200112L
 ^
  CC       error.lo
  CC       version.lo
In file included from /usr/local/include/python3.6m/Python.h:8:0,
                 from libsigrokdecode-internal.h:27,
                 from version.c:21:
/usr/local/include/python3.6m/pyconfig.h:1451:0: warning: "_POSIX_C_SOURCE" 
redefined
 #define _POSIX_C_SOURCE 200809L
 ^
In file included from version.c:20:0:
./config.h:113:0: note: this is the location of the previous definition
 # define _POSIX_C_SOURCE 200112L
 ^
  CCLD     libsigrokdecode.la
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(abstract.o): relocation 
R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a 
shared object; recompile with -fPIC
/usr/local/lib/libpython3.6m.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:714: recipe for target 'libsigrokdecode.la' failed
make[1]: *** [libsigrokdecode.la] Error 1
Makefile:615: recipe for target 'all' failed
make: *** [all] Error 2



./configure output is as follows:



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... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) 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 whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
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 whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking whether ln -s works... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /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 the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu 
format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu 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 archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
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/bin/ld -m elf_x86_64) 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 pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.22... yes
checking for python3.7... no
checking for python3.6... python3.6
checking compiler flag for C99... -std=c99
checking compiler flag for visibility... -fvisibility=hidden
checking which C compiler warning flags to use... -Wall -Wextra 
-Wmissing-prototypes -Wshadow -Wformat=2 -Wno-format-nonliteral -Wfloat-equal
checking for library containing pow... -lm
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether byte ordering is bigendian... no
checking for LIBSIGROKDECODE... yes
checking for TESTS... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libsigrokdecode.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: creating version.h
config.status: version.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

libsigrokdecode configuration summary:
 - Package version................. 0.6.0-git-49d3e6f
 - Library ABI version............. 4:0:0
 - Prefix.......................... /usr/local
 - Building on..................... x86_64-pc-linux-gnu
 - Building for.................... x86_64-pc-linux-gnu
 - Building shared / static........ yes / yes

Compile configuration:
 - C compiler...................... gcc
 - C compiler version.............. gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 
20160609
 - C compiler flags................ -g -O2
 - Additional C compiler flags..... -std=c99 -fvisibility=hidden
 - C compiler warnings............. -Wall -Wextra -Wmissing-prototypes -Wshadow 
-Wformat=2 -Wno-format-nonliteral -Wfloat-equal
 - Linker flags.................... 

Detected libraries (required):
 - glib-2.0 >= 2.34................ 2.48.2
 - python3 >= 3.2.................. 3.6

Detected libraries (optional):
 - check >= 0.9.4.................. no


Any ideas of how to fix this ? 


Best.Rodrigo Rojas









 
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to