ctntad-0.2.0 build failure

Discussions for Linux infiniTV installations
Post Reply
kyleechols

Posts: 7
Joined: Sun Jan 05, 2014 10:12 pm
Location:

HTPC Specs: Show details

ctntad-0.2.0 build failure

#1

Post by kyleechols » Sun Jan 05, 2014 10:21 pm

I've tried to build the ctntad driver on fedora 20 and Ubuntu 13.10, both ended up failing, while it succeeded in Ubuntu 12.04.
Configure output:

Code: Select all

$ ./configure --prefix=/usr
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
./configure: line 2567: m4-#: command not found
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
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 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 for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
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 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 dependency style of gcc... (cached) gcc3
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GUPNP... yes
checking for GUSB... yes
checking for stdlib.h... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
make output:

Code: Select all

$ make
make  all-recursive
make[1]: Entering directory `/myth_storage/b/db_backups/infinitv/ctntad-0.2.0'
Making all in src
make[2]: Entering directory `/myth_storage/b/db_backups/infinitv/ctntad-0.2.0/src'
  CC     main.o
main.c: In function âudcp_message_changedâ:
main.c:251:5: warning: format â%dâ expects argument of type âintâ, but argument 2 has type âgsizeâ [-Wformat=]
     g_print("mocur -> ta: %d bytes\n", len);
     ^
main.c: In function âta_message_readyâ:
main.c:305:5: warning: format â%dâ expects argument of type âintâ, but argument 2 has type âgssizeâ [-Wformat=]
     g_print("ta -> mocur: %d bytes\n", len);
     ^
main.c: In function âstdin_cbâ:
main.c:726:9: warning: âg_io_channel_readâ is deprecated (declared at /usr/include/glib-2.0/glib/giochannel.h:168): Use 'g_io_channel_read_chars' instead [-Wdeprecated-declarations]
         error = g_io_channel_read(iochannel, buffer, sizeof(buffer), &bytes_read);
         ^
main.c: In function âmainâ:
main.c:813:5: warning: âg_thread_initâ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:260) [-Wdeprecated-declarations]
     g_thread_init(NULL);
     ^
main.c:814:5: warning: âg_type_initâ is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:669) [-Wdeprecated-declarations]
     g_type_init();
     ^
  CC     octa_client.o
  CCLD   ctntad
/usr/bin/ld: main.o: undefined reference to symbol 'gssdp_resource_browser_get_type'
/usr/lib/libgssdp-1.0.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [ctntad] Error 1
make[2]: Leaving directory `/myth_storage/b/db_backups/infinitv/ctntad-0.2.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/myth_storage/b/db_backups/infinitv/ctntad-0.2.0'
make: *** [all] Error 2
gcc -v output

Code: Select all

 gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.8.1-10ubuntu9' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu9)
Thanks for any help you can give

kyleechols

Posts: 7
Joined: Sun Jan 05, 2014 10:12 pm
Location:

HTPC Specs: Show details

#2

Post by kyleechols » Fri Jan 10, 2014 3:48 am

In case anyone else runs into this problem, I had to get a new build of ctntad (0.2.1).

m260644

Posts: 2
Joined: Wed Mar 05, 2014 3:07 am
Location:

HTPC Specs: Show details

#3

Post by m260644 » Thu Mar 06, 2014 5:13 pm

What were your steps for building (configure, make, etc.) for the 0.2.1 ctntad?

I run into the error:
./configure: line 2690: syntax error near unexpected token `2.2.6'
./configure: line 2690: `LT_PREREQ(2.2.6)'

Had to run the auto reconfigure to get the configure files because all necessary files aren't in the ctntad 0.2.1 from github (https://github.com/ceton/ctntad). From where did you get yours?

I'm on UBUNTU 13.10.

Thanks

kyleechols

Posts: 7
Joined: Sun Jan 05, 2014 10:12 pm
Location:

HTPC Specs: Show details

#4

Post by kyleechols » Sat Mar 08, 2014 6:49 pm

Same steps, I had to open a ticket with Ceton to get the updated build. Looks like it's available on the download site, just hasn't been linked through the ceton linux pages, http://cetoncorp.com/downloads/ctntad-0.2.1.tar.gz

m260644

Posts: 2
Joined: Wed Mar 05, 2014 3:07 am
Location:

HTPC Specs: Show details

#5

Post by m260644 » Tue Mar 11, 2014 1:12 am

Thank you so much...That worked.

One last question for you...How do you have it running? Do you run after boot or do you have a script or do have you set this up as a service.

My UNIX/LINUX skills are a little more than noob, but a lot less than ADMIN.

Thanks again.

kyleechols

Posts: 7
Joined: Sun Jan 05, 2014 10:12 pm
Location:

HTPC Specs: Show details

#6

Post by kyleechols » Tue Mar 11, 2014 11:12 pm

I have it running as a service using this script, i would provide the source, but I can't find the link anymore.
Copy the content below to a new file, I used /etc/init.d/ctntad
chmod +x /etc/init.d/ctntad
sudo update-rc.d ctntad defaults

OR

Just put the path to the file in /etc/rc.local and it'll run on boot.

Code: Select all

#! /bin/sh
### BEGIN INIT INFO
# Provides:          Communication Module for Tuner Adapter
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Communication Module for Tuner Adapter
# Description:       This file should be used to construct scripts to be
#                    placed in /etc/init.d.
### END INIT INFO

# Author: <yourname here> 
#
# Please remove the "Author" lines above and replace them
# with your own name if you copy and modify this script.

# Do NOT "set -e"

# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Daemon used to control Tuning Adapters"
NAME=ctntad
DAEMON=/usr/bin/$NAME
SCRIPTNAME=/etc/init.d/$NAME

# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0

# Define LSB log_* functions.
# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
# and status_of_proc is working.
. /lib/lsb/init-functions

#
# Function that starts the daemon/service
#
do_start()
{
        # Return
        #   0 if daemon has been started
        #   1 if daemon was already running
        #   2 if daemon could not be started
        echo "starting $NAME"
        $DAEMON & > /dev/null
        return 0
}

#
# Function that stops the daemon/service
#
do_stop()
{
        # Return
        #   0 if daemon has been stopped
        #   1 if daemon was already stopped
        #   2 if daemon could not be stopped
        #   other if a failure occurred
        killall $NAME
        return 0
}

#
# Function that sends a SIGHUP to the daemon/service
#
do_reload() {
        return 0
         if [ "$count" == 0 ];
         then
                $DAEMON & > /dev/null
                return 0
        else
                killall $NAME
                $DAEMON & > /dev/null
                return 0
        fi
}

case "$1" in
  start)
        do_start
        ;;
  stop)
        do_stop
        ;;
  status)
        if [ "$count" == 0 ];
         then
                echo "$NAME is started"
                return 0
        else
                echo "$NAME is stopped"
                return 1
        fi

       ;;
  restart|reload|force-reload)
        #
        # If the "reload" option is implemented then remove the
        # 'force-reload' alias
        #
        do_stop
        do_start
        ;;
  *)
        echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
        exit 3
        ;;
esac

:

User avatar
Yippee38

Posts: 28
Joined: Fri May 09, 2014 11:35 pm
Location:

HTPC Specs: Show details

#7

Post by Yippee38 » Thu May 15, 2014 10:15 pm

kyleechols wrote:Same steps, I had to open a ticket with Ceton to get the updated build. Looks like it's available on the download site, just hasn't been linked through the ceton linux pages, http://cetoncorp.com/downloads/ctntad-0.2.1.tar.gz
Thanks for posting that link. That allowed me to get it installed.

Post Reply