obexftp does not compile on Mandrake

Help
Anonymous
2004-10-26
2013-05-01
  • Anonymous - 2004-10-26

    Hello you all. I downloaded obexftp-0.10.4 but I consistently fail to compile it. I use Mandrake Linux 10.0 Official (system is x86, kernel is 2.6.3) . The error seems to happen when compiling cobex_bfb.c.

    This is the GCC version
    ---------------------------------------
    [cyclopia@localhost obexftp-0.10.4]$ gcc --version
    gcc (GCC) 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)
    ------------------------------------------------

    This is the ./configure output :
    ------------------------------------------------------------
    [cyclopia@localhost obexftp-0.10.4]$ ./configure
    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 style of include used by make... GNU
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    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 ANSI C... none needed
    checking dependency style of gcc... gcc3
    checking for strerror in -lcposix... no
    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 ANSI C... (cached) none needed
    checking dependency style of gcc... (cached) gcc3
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking for a BSD-compatible install... /usr/bin/install -c
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for a sed that does not truncate output... /bin/sed
    checking for egrep... grep -E
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking whether ln -s works... yes
    checking how to recognise dependent libraries... pass_all
    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 dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking how to run the C++ preprocessor... g++ -E
    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... 32768
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if gcc static flag  works... yes
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    checking if gcc supports -c -o file.o... yes
    checking whether the gcc 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
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    checking for ld used by g++... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC
    checking if g++ PIC flag -fPIC works... yes
    checking if g++ supports -c -o file.o... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    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... yes
    checking for g77 option to produce PIC... -fPIC
    checking if g77 PIC flag -fPIC works... yes
    checking if g77 supports -c -o file.o... yes
    checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
    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 for ANSI C header files... (cached) yes
    checking for dirent.h that defines DIR... yes
    checking for library containing opendir... none required
    checking arpa/inet.h usability... yes
    checking arpa/inet.h presence... yes
    checking for arpa/inet.h... yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking netdb.h usability... yes
    checking netdb.h presence... yes
    checking for netdb.h... yes
    checking netinet/in.h usability... yes
    checking netinet/in.h presence... yes
    checking for netinet/in.h... yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking sys/ioctl.h usability... yes
    checking sys/ioctl.h presence... yes
    checking for sys/ioctl.h... yes
    checking sys/socket.h usability... yes
    checking sys/socket.h presence... yes
    checking for sys/socket.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking termios.h usability... yes
    checking termios.h presence... yes
    checking for termios.h... yes
    checking for unistd.h... (cached) yes
    checking sys/select.h usability... yes
    checking sys/select.h presence... yes
    checking for sys/select.h... yes
    checking for openobex-config... /usr/bin/openobex-config
    checking for openobex - version >= 1.0.0... yes
    checking for Bluetooth support... no
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating doc/Makefile
    config.status: creating contrib/Makefile
    config.status: creating apps/Makefile
    config.status: creating bfb/Makefile
    config.status: creating cobexbfb/Makefile
    config.status: creating obexftp/Makefile
    config.status: creating obexftp.spec
    config.status: creating config.h
    config.status: executing depfiles commands
    ----------------------------------------

    This is the make output error:
    ----------------------------------------
    [cyclopia@localhost obexftp-0.10.4]$ make
    [..omissis...]
    gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I.. -I../includes -g -O2 -g -Wall -Wmissing-declarations -Wmissing-prototypes -Wall -MT cobex_bfb.lo -MD -MP -MF .deps/cobex_bfb.Tpo -c cobex_bfb.c  -fPIC -DPIC -o .libs/cobex_bfb.o
    cobex_bfb.c:52:27: openobex/obex.h: No such file or directory
    In file included from cobex_bfb.c:53:
    cobex_bfb.h:35: error: parse error before '*' token
    cobex_bfb.h:36: warning: type defaults to `int' in declaration of `cobex_ctrans'
    cobex_bfb.h:36: warning: data definition has no type or storage class
    cobex_bfb.h:37: error: parse error before '*' token
    cobex_bfb.h:41: error: parse error before '*' token
    cobex_bfb.h:42: error: parse error before '*' token
    cobex_bfb.h:43: error: parse error before '*' token
    cobex_bfb.h:44: error: parse error before '*' token
    cobex_bfb.c:77: error: parse error before '*' token
    cobex_bfb.c:78: warning: no previous prototype for `cobex_connect'
    cobex_bfb.c: In function `cobex_connect':
    cobex_bfb.c:81: error: `self' undeclared (first use in this function)
    cobex_bfb.c:81: error: (Each undeclared identifier is reported only once
    cobex_bfb.c:81: error: for each function it appears in.)
    cobex_bfb.c:82: error: `data' undeclared (first use in this function)
    cobex_bfb.c: At top level:
    cobex_bfb.c:104: error: parse error before '*' token
    cobex_bfb.c:105: warning: no previous prototype for `cobex_disconnect'
    cobex_bfb.c: In function `cobex_disconnect':
    cobex_bfb.c:107: error: `self' undeclared (first use in this function)
    cobex_bfb.c:108: error: `data' undeclared (first use in this function)
    cobex_bfb.c: At top level:
    cobex_bfb.c:117: error: parse error before '*' token
    cobex_bfb.c:118: warning: no previous prototype for `cobex_write'
    cobex_bfb.c: In function `cobex_write':
    cobex_bfb.c:121: error: `self' undeclared (first use in this function)
    cobex_bfb.c:122: error: `data' undeclared (first use in this function)
    cobex_bfb.c:127: error: `length' undeclared (first use in this function)
    cobex_bfb.c:130: error: `buffer' undeclared (first use in this function)
    cobex_bfb.c: At top level:
    cobex_bfb.c:151: error: parse error before '*' token
    cobex_bfb.c:152: warning: no previous prototype for `cobex_handleinput'
    cobex_bfb.c: In function `cobex_handleinput':
    cobex_bfb.c:164: error: `self' undeclared (first use in this function)
    cobex_bfb.c:165: error: `data' undeclared (first use in this function)
    cobex_bfb.c:175: error: `timeout' undeclared (first use in this function)
    cobex_bfb.c:197: warning: implicit declaration of function `OBEX_CustomDataFeed'
    cobex_bfb.c: At top level:
    cobex_bfb.c:256: error: parse error before '*' token
    cobex_bfb.c:256: warning: return type defaults to `int'
    cobex_bfb.c: In function `cobex_ctrans':
    cobex_bfb.c:257: error: `obex_ctrans_t' undeclared (first use in this function)
    cobex_bfb.c:257: error: `ctrans' undeclared (first use in this function)
    cobex_bfb.c: At top level:
    cobex_bfb.c:277: error: parse error before '*' token
    cobex_bfb.c:278: warning: no previous prototype for `cobex_free'
    cobex_bfb.c: In function `cobex_free':
    cobex_bfb.c:281: error: `ctrans' undeclared (first use in this function)
    make[2]: *** [cobex_bfb.lo] Error 1
    make[2]: Leaving directory `/home/software/source/obexftp-0.10.4/cobexbfb'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/software/source/obexftp-0.10.4'
    make: *** [all] Error 2
    -----------------------------------------------------------
    Any hint about this? Remember I'm no C programmer...
    Thanks a lot!

     
    • Luke Skywalker

      Luke Skywalker - 2005-01-05

      You need openobex header files installed first:

      cobex_bfb.c:52:27: openobex/obex.h: No such file or directory

       

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks