sundermann / soup-sharp

C# Bindings for libsoup2.4
GNU Lesser General Public License v3.0
20 stars 91 forks source link

Unable to compile on debian wheezy #2

Open cebe opened 10 years ago

cebe commented 10 years ago
git clone https://github.com/xDarkice/soup-sharp
cd soup-sharp
./autogen.sh
make

results in

Making all in sources
make[1]: Entering directory `/opt/soup-sharp/sources'
/usr/bin/gmcs -nowarn:169 -unsafe -target:library \
        AssemblyInfo.cs   -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-3.0/glib-sharp.dll    generated/*.cs -out:../out/soup-sharp.dll
AssemblyInfo.cs(11,12): warning CS1699: Use compiler option `keyfile' or appropriate project settings instead of `AssemblyKeyFile' attribute
Compilation succeeded - 1 warning(s)
make[1]: Leaving directory `/opt/soup-sharp/sources'
Making all in sources/glue
make[1]: Entering directory `/opt/soup-sharp/sources/glue'
/bin/bash ../../libtool --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"soup-sharp\" -DPACKAGE_TARNAME=\"soup-sharp\" -DPACKAGE_VERSION=\"2.42.2\" -DPACKAGE_STRING=\"soup-sharp\ 2.42.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"soup-sharp\" -DVERSION=\"2.42.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -pthread -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -I../..    -DLIBSOUP_USE_UNSTABLE_REQUEST_API -MT generated.lo -MD -MP -MF .deps/generated.Tpo -c -o generated.lo generated.c
libtool: compile:  gcc -DPACKAGE_NAME=\"soup-sharp\" -DPACKAGE_TARNAME=\"soup-sharp\" -DPACKAGE_VERSION=\"2.42.2\" "-DPACKAGE_STRING=\"soup-sharp 2.42.2\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"soup-sharp\" -DVERSION=\"2.42.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -pthread -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I../.. -DLIBSOUP_USE_UNSTABLE_REQUEST_API -MT generated.lo -MD -MP -MF .deps/generated.Tpo -c generated.c  -fPIC -DPIC -o .libs/generated.o
generated.c: In function 'soupsharp_soup_authmanager_get_parent_offset':
generated.c:64:2: error: unknown type name 'SoupAuthManager'
generated.c: In function 'soupsharp_soup_cookiejardb_get_parent_offset':
generated.c:104:2: error: unknown type name 'SoupCookieJarDB'
make[1]: *** [generated.lo] Fehler 1
make[1]: Leaving directory `/opt/soup-sharp/sources/glue'
make: *** [all-recursive] Fehler 1

Same with master and 2.42.2 tag. Any idea how to fix this or where to look further?

cebe commented 10 years ago

autogen output if it may be helpful:

# ./autogen.sh 
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
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 whether to enable maintainer-specific portions of Makefiles... yes
checking how to print strings... printf
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 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 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 x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-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 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 object... ok
checking for sysroot... no
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 MONO_DEPENDENCY... yes
./configure: line 11576: 1: command not found
checking for mono... /usr/bin/mono
checking for gmcs... /usr/bin/gmcs
checking for gacutil... /usr/bin/gacutil
checking for GLIB_SHARP... yes
checking for GAPI... yes
checking for gapi3-parser... /usr/local/bin/gapi3-parser
checking for gapi3-fixup... /usr/local/bin/gapi3-fixup
checking for gapi3-codegen... /usr/local/bin/gapi3-codegen
checking for mdassembler... /usr/bin/mdassembler
checking for monodocer... /usr/bin/monodocer
checking for SOUP... yes
checking for GLIBSHARP... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sources/Makefile
config.status: creating sources/glue/Makefile
config.status: creating sources/AssemblyInfo.cs
config.status: creating soup-sharp-2.4.pc
config.status: creating doc/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default commands

Configuration summary
---------------------

   * Installation prefix: /usr/local
   * compiler: /usr/bin/gmcs
   * Documentation:  ()
cebe commented 10 years ago

Looks like the desired types are not available in the version of libsoup that is installed on debian wheezy which is 2.38: https://developer.gnome.org/libsoup/2.38/

Is it easily possible to create a soup-sharp release for 2.38?

bl8 commented 10 years ago

It seems libsoup 2.42 is required, as indicated in commit d1867c0a26

But a specific check for that version should be added in configure.ac

isomorphisms commented 9 years ago

I had this error too. (Ubuntu 12.04, here to get SparkleShare working)