[mythtv-users] compile problem: scte65scan on mythbuntu 9.10 64 bit with HDHR support

Dave Richardson mythtv at derdev.com
Mon Nov 16 23:43:43 UTC 2009


I flashed my HDHR firmware to v20091024 using mythbuntu's pre-install
hdhomerun_config

Downloaded scte65scan and libhdhomerun 20091024

root at mythbackmaster:/usr/src/scte65scan-0.2.1/libhdhomerun# make

gcc -Wall -O2 -Wmissing-declarations -Wmissing-prototypes
-Wstrict-prototypes -Wpointer-arith hdhomerun_config.c
hdhomerun_os_posix.c hdhomerun_pkt.c hdhomerun_debug.c
hdhomerun_discover.c hdhomerun_channels.c hdhomerun_channelscan.c
hdhomerun_control.c hdhomerun_video.c hdhomerun_device.c
hdhomerun_device_selector.c -lpthread -lrt -o hdhomerun_config
strip hdhomerun_config
gcc -Wall -O2 -Wmissing-declarations -Wmissing-prototypes
-Wstrict-prototypes -Wpointer-arith -fPIC -DDLL_EXPORT -shared
-Wl,-soname,libhdhomerun.so hdhomerun_os_posix.c hdhomerun_pkt.c
hdhomerun_debug.c hdhomerun_discover.c hdhomerun_channels.c
hdhomerun_channelscan.c hdhomerun_control.c hdhomerun_video.c
hdhomerun_device.c hdhomerun_device_selector.c -lpthread -lrt -o
libhdhomerun.so

root at mythbackmaster:/usr/src/scte65scan-0.2.1/libhdhomerun# cd ..

root at mythbackmaster:/usr/src/scte65scan-0.2.1# make -f Makefile.hdhr
cc -O2 -DHDHR -I./libhdhomerun -c scte65scan.c -o scte65scan.o
cc -O2 -DHDHR -I./libhdhomerun -c tunerdmx.c -o tunerdmx.o
tunerdmx.c: In function ‘demux_read’:
tunerdmx.c:290: warning: format ‘%d’ expects type ‘int’, but argument 5
has type ‘size_t’
cc -O2 -DHDHR -I./libhdhomerun -c libhdhomerun/hdhomerun_pkt.c -o
libhdhomerun/hdhomerun_pkt.o
cc -O2 -DHDHR -I./libhdhomerun -c libhdhomerun/hdhomerun_debug.c -o
libhdhomerun/hdhomerun_debug.o
cc -O2 -DHDHR -I./libhdhomerun -c libhdhomerun/hdhomerun_discover.c -o
libhdhomerun/hdhomerun_discover.o
cc -O2 -DHDHR -I./libhdhomerun -c libhdhomerun/hdhomerun_channels.c -o
libhdhomerun/hdhomerun_channels.o
cc -O2 -DHDHR -I./libhdhomerun -c libhdhomerun/hdhomerun_channelscan.c -o
libhdhomerun/hdhomerun_channelscan.o
cc -O2 -DHDHR -I./libhdhomerun -c libhdhomerun/hdhomerun_control.c -o
libhdhomerun/hdhomerun_control.o
cc -O2 -DHDHR -I./libhdhomerun -c libhdhomerun/hdhomerun_video.c -o
libhdhomerun/hdhomerun_video.o
cc -O2 -DHDHR -I./libhdhomerun -c libhdhomerun/hdhomerun_device.c -o
libhdhomerun/hdhomerun_device.o
cc -O2 -DHDHR -I./libhdhomerun scte65scan.o tunerdmx.o
libhdhomerun/hdhomerun_pkt.o libhdhomerun/hdhomerun_debug.o
libhdhomerun/hdhomerun_discover.o libhdhomerun/hdhomerun_channels.o
libhdhomerun/hdhomerun_channelscan.o libhdhomerun/hdhomerun_control.o
libhdhomerun/hdhomerun_video.o libhdhomerun/hdhomerun_device.o -lpthread
-o scte65scan
libhdhomerun/hdhomerun_debug.o: In function `hdhomerun_debug_flush':
hdhomerun_debug.c:(.text+0x2c6): undefined reference to `getcurrenttime'
hdhomerun_debug.c:(.text+0x2fa): undefined reference to `msleep'
hdhomerun_debug.c:(.text+0x2ff): undefined reference to `getcurrenttime'
libhdhomerun/hdhomerun_debug.o: In function `hdhomerun_debug_thread_execute':
hdhomerun_debug.c:(.text+0x7e9): undefined reference to `msleep'
hdhomerun_debug.c:(.text+0x7f9): undefined reference to `getcurrenttime'
hdhomerun_debug.c:(.text+0x847): undefined reference to `getcurrenttime'
libhdhomerun/hdhomerun_discover.o: In function `hdhomerun_discover_sock_add':
hdhomerun_discover.c:(.text+0x17c): undefined reference to
`setsocknonblocking'
libhdhomerun/hdhomerun_discover.o: In function
`hdhomerun_discover_find_devices':
hdhomerun_discover.c:(.text+0x625): undefined reference to `getcurrenttime'
hdhomerun_discover.c:(.text+0x6c6): undefined reference to `getcurrenttime'
hdhomerun_discover.c:(.text+0x91c): undefined reference to `msleep'
libhdhomerun/hdhomerun_channelscan.o: In function `channelscan_detect':
hdhomerun_channelscan.c:(.text+0x2ea): undefined reference to
`getcurrenttime'
hdhomerun_channelscan.c:(.text+0x30b): undefined reference to
`getcurrenttime'
hdhomerun_channelscan.c:(.text+0x31a): undefined reference to `msleep'
hdhomerun_channelscan.c:(.text+0x370): undefined reference to
`getcurrenttime'
hdhomerun_channelscan.c:(.text+0x380): undefined reference to
`getcurrenttime'
hdhomerun_channelscan.c:(.text+0x5ce): undefined reference to
`getcurrenttime'
hdhomerun_channelscan.c:(.text+0x5e6): undefined reference to
`getcurrenttime'
hdhomerun_channelscan.c:(.text+0x5f6): undefined reference to
`getcurrenttime'
hdhomerun_channelscan.c:(.text+0x60c): undefined reference to `msleep'
hdhomerun_channelscan.c:(.text+0x765): undefined reference to
`getcurrenttime'
libhdhomerun/hdhomerun_control.o: In function
`hdhomerun_control_connect_sock':
hdhomerun_control.c:(.text+0x1f9): undefined reference to `setsocktimeout'
hdhomerun_control.c:(.text+0x218): undefined reference to `setsocktimeout'
libhdhomerun/hdhomerun_control.o: In function
`hdhomerun_control_send_recv_internal':
hdhomerun_control.c:(.text+0x462): undefined reference to `getcurrenttime'
hdhomerun_control.c:(.text+0x477): undefined reference to `getcurrenttime'
libhdhomerun/hdhomerun_video.o: In function `hdhomerun_video_create':
hdhomerun_video.c:(.text+0x9cd): undefined reference to `setsocktimeout'
hdhomerun_video.c:(.text+0x9e4): undefined reference to `setsocktimeout'
libhdhomerun/hdhomerun_device.o: In function
`hdhomerun_device_tuner_lockkey_request':
hdhomerun_device.c:(.text+0xcca): undefined reference to `getcurrenttime'
libhdhomerun/hdhomerun_device.o: In function
`hdhomerun_device_wait_for_lock':
hdhomerun_device.c:(.text+0x1940): undefined reference to `msleep'
hdhomerun_device.c:(.text+0x1945): undefined reference to `getcurrenttime'
hdhomerun_device.c:(.text+0x1974): undefined reference to `getcurrenttime'
hdhomerun_device.c:(.text+0x1983): undefined reference to `msleep'
libhdhomerun/hdhomerun_device.o: In function `hdhomerun_device_stream_start':
hdhomerun_device.c:(.text+0x1ae9): undefined reference to `msleep'
collect2: ld returned 1 exit status
make: *** [scte65scan] Error 1


SO I got sad, read a ton of web links about compile problems and tried
this...

root at mythbackmaster:/usr/src/scte65scan-0.2.1# CFLAGS="-I./libhdhomerun
-L./libhdhomerun" make -f Makefile.hdhr
cc -I./libhdhomerun -L./libhdhomerun -O2 -DHDHR -I./libhdhomerun
scte65scan.o tunerdmx.o libhdhomerun/hdhomerun_pkt.o
libhdhomerun/hdhomerun_debug.o libhdhomerun/hdhomerun_discover.o
libhdhomerun/hdhomerun_channels.o libhdhomerun/hdhomerun_channelscan.o
libhdhomerun/hdhomerun_control.o libhdhomerun/hdhomerun_video.o
libhdhomerun/hdhomerun_device.o -lpthread -o scte65scan
libhdhomerun/hdhomerun_debug.o: In function `hdhomerun_debug_flush':
hdhomerun_debug.c:(.text+0x2c6): undefined reference to `getcurrenttime'
hdhomerun_debug.c:(.text+0x2fa): undefined reference to `msleep'
hdhomerun_debug.c:(.text+0x2ff): undefined reference to `getcurrenttime'
libhdhomerun/hdhomerun_debug.o: In function `hdhomerun_debug_thread_execute':
hdhomerun_debug.c:(.text+0x7e9): undefined reference to `msleep'
hdhomerun_debug.c:(.text+0x7f9): undefined reference to `getcurrenttime'
hdhomerun_debug.c:(.text+0x847): undefined reference to `getcurrenttime'
libhdhomerun/hdhomerun_discover.o: In function `hdhomerun_discover_sock_add':
hdhomerun_discover.c:(.text+0x17c): undefined reference to
`setsocknonblocking'
libhdhomerun/hdhomerun_discover.o: In function
`hdhomerun_discover_find_devices':
hdhomerun_discover.c:(.text+0x625): undefined reference to `getcurrenttime'
hdhomerun_discover.c:(.text+0x6c6): undefined reference to `getcurrenttime'
hdhomerun_discover.c:(.text+0x91c): undefined reference to `msleep'
libhdhomerun/hdhomerun_channelscan.o: In function `channelscan_detect':
hdhomerun_channelscan.c:(.text+0x2ea): undefined reference to
`getcurrenttime'
hdhomerun_channelscan.c:(.text+0x30b): undefined reference to
`getcurrenttime'
hdhomerun_channelscan.c:(.text+0x31a): undefined reference to `msleep'
hdhomerun_channelscan.c:(.text+0x370): undefined reference to
`getcurrenttime'
hdhomerun_channelscan.c:(.text+0x380): undefined reference to
`getcurrenttime'
hdhomerun_channelscan.c:(.text+0x5ce): undefined reference to
`getcurrenttime'
hdhomerun_channelscan.c:(.text+0x5e6): undefined reference to
`getcurrenttime'
hdhomerun_channelscan.c:(.text+0x5f6): undefined reference to
`getcurrenttime'
hdhomerun_channelscan.c:(.text+0x60c): undefined reference to `msleep'
hdhomerun_channelscan.c:(.text+0x765): undefined reference to
`getcurrenttime'
libhdhomerun/hdhomerun_control.o: In function
`hdhomerun_control_connect_sock':
hdhomerun_control.c:(.text+0x1f9): undefined reference to `setsocktimeout'
hdhomerun_control.c:(.text+0x218): undefined reference to `setsocktimeout'
libhdhomerun/hdhomerun_control.o: In function
`hdhomerun_control_send_recv_internal':
hdhomerun_control.c:(.text+0x462): undefined reference to `getcurrenttime'
hdhomerun_control.c:(.text+0x477): undefined reference to `getcurrenttime'
libhdhomerun/hdhomerun_video.o: In function `hdhomerun_video_create':
hdhomerun_video.c:(.text+0x9cd): undefined reference to `setsocktimeout'
hdhomerun_video.c:(.text+0x9e4): undefined reference to `setsocktimeout'
libhdhomerun/hdhomerun_device.o: In function
`hdhomerun_device_tuner_lockkey_request':
hdhomerun_device.c:(.text+0xcca): undefined reference to `getcurrenttime'
libhdhomerun/hdhomerun_device.o: In function
`hdhomerun_device_wait_for_lock':
hdhomerun_device.c:(.text+0x1940): undefined reference to `msleep'
hdhomerun_device.c:(.text+0x1945): undefined reference to `getcurrenttime'
hdhomerun_device.c:(.text+0x1974): undefined reference to `getcurrenttime'
hdhomerun_device.c:(.text+0x1983): undefined reference to `msleep'
libhdhomerun/hdhomerun_device.o: In function `hdhomerun_device_stream_start':
hdhomerun_device.c:(.text+0x1ae9): undefined reference to `msleep'
collect2: ld returned 1 exit status
make: *** [scte65scan] Error 1


Where to turn please?  THANKS!!!!!!!










More information about the mythtv-users mailing list