Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems compiling nscan and sasc
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message

Joined: 21 Jan 2006
Posts: 187

PostPosted: Thu May 07, 2009 4:42 am    Post subject: problems compiling nscan and sasc Reply with quote

Both end in errors. It's a 64 bit system. Is there something wrong with my setup or something else? PLease help.

~/nscan-2.0.7/nscan-2.0.7 $ make
g++ -O2 -DVERSION=\"2.0.7\" -I/usr/local/src/v4l-dvb -c nutils.c
nutils.c: In function ‘u_int n_direct_hash(const void*)’:
nutils.c:1354: error: cast from ‘const void*’ to ‘u_int’ loses precision
make: *** [nutils.o] Error 1

~/opensasc $ make
g++ -Wall -D__user= -Werror  -g -o objs/forward.o -c  -DRELEASE_VERSION=\"0.0.2\" -Idvbloopback/src -I/usr/src/DVB//linux/include -Idvbloopback/module -I/lib/modules/2.6.28-r5c/build/include dvbloopback/src/forward.c
g++ -Wall -D__user= -Werror  -g -o objs/process_req.o -c  -DRELEASE_VERSION=\"0.0.2\" -Idvbloopback/src -I/usr/src/DVB//linux/include -Idvbloopback/module -I/lib/modules/2.6.28-r5c/build/include dvbloopback/src/process_req.c
g++ -Wall -D__user= -Werror  -g -o objs/msg_passing.o -c  -DRELEASE_VERSION=\"0.0.2\" -Idvbloopback/src -I/usr/src/DVB//linux/include -Idvbloopback/module -I/lib/modules/2.6.28-r5c/build/include dvbloopback/src/msg_passing.c
g++ -Wall -D__user= -Werror  -g -o objs/plugin_getsid.o -c  -DRELEASE_VERSION=\"0.0.2\" -Idvbloopback/src -I/usr/src/DVB//linux/include -Idvbloopback/module -I/lib/modules/2.6.28-r5c/build/include dvbloopback/src/plugin_getsid.c
g++ -Wall -D__user= -Werror  -g -o objs/plugin_ringbuf.o -c  -DRELEASE_VERSION=\"0.0.2\" -Idvbloopback/src -I/usr/src/DVB//linux/include -Idvbloopback/module -I/lib/modules/2.6.28-r5c/build/include dvbloopback/src/plugin_ringbuf.c
g++ -Wall -D__user= -Werror  -g -o objs/plugin_showioctl.o -c  -DRELEASE_VERSION=\"0.0.2\" -Idvbloopback/src -I/usr/src/DVB//linux/include -Idvbloopback/module -I/lib/modules/2.6.28-r5c/build/include dvbloopback/src/plugin_showioctl.c
g++ -Wall -D__user= -Werror  -g -o objs/plugin_legacysw.o -c  -DRELEASE_VERSION=\"0.0.2\" -Idvbloopback/src -I/usr/src/DVB//linux/include -Idvbloopback/module -I/lib/modules/2.6.28-r5c/build/include dvbloopback/src/plugin_legacysw.c
g++ -Wall -D__user= -Werror  -g -o objs/plugin_dss.o -c  -DRELEASE_VERSION=\"0.0.2\" -Idvbloopback/src -I/usr/src/DVB//linux/include -Idvbloopback/module -I/lib/modules/2.6.28-r5c/build/include dvbloopback/src/plugin_dss.c
g++ -Wall -D__user= -Werror  -g -o objs/plugin_cam.o -c  -DRELEASE_VERSION=\"0.0.2\" -Idvbloopback/src -I/usr/src/DVB//linux/include -Idvbloopback/module -I/lib/modules/2.6.28-r5c/build/include dvblb_plugins/plugin_cam.c
g++ -Wall -D__user= -Werror  -g -o objs/plugin_ffdecsa.o -c  -DRELEASE_VERSION=\"0.0.2\" -Idvbloopback/src -I/usr/src/DVB//linux/include -Idvbloopback/module -I/lib/modules/2.6.28-r5c/build/include dvblb_plugins/plugin_ffdecsa.c
g++ -Wall -D__user= -Werror  -g -o objs/plugin_scan.o -c  -DRELEASE_VERSION=\"0.0.2\" -Idvbloopback/src -I/usr/src/DVB//linux/include -Idvbloopback/module -I/lib/modules/2.6.28-r5c/build/include dvblb_plugins/plugin_scan.c
echo 'const char *source_version =' '"'`(svnversion /home/dave/opensasc 2>/dev/null) || echo Unknown`/`(svnversion /home/dave/opensasc/dvbloopback 2>/dev/null) || echo Unknown`'";' > ; diff objs/version.cpp > .vers.diff 2>&1 ; if test -s .vers.diff ; then mv -f objs/version.cpp ; fi ; rm -f .vers.diff
g++ -Wall -D__user= -Werror  -g -o objs/version.o -c -DRELEASE_VERSION=\"0.0.2\" objs/version.cpp
g++ -Wall -D__user= -Werror  -g -o objs/misc.o -c  -DRELEASE_VERSION=\"0.0.2\" -I./sc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/DVB//linux/include -Idvbloopback/module -I/lib/modules/2.6.28-r5c/build/include sc/misc.cpp
g++ -Wall -D__user= -Werror  -g -o objs/dvbdevice.o -c  -DRELEASE_VERSION=\"0.0.2\" -I./sc/PLUGINS/src/sc-src -I./sc/include -I/usr/src/DVB//linux/include -Idvbloopback/module -I/lib/modules/2.6.28-r5c/build/include sc/dvbdevice.cpp
/usr/include/stdint.h:41: error: conflicting declaration ‘typedef long int int64_t’
/lib/modules/2.6.28-r5c/build/include/linux/types.h:125: error: ‘int64_t’ has a previous declaration as ‘typedef __s64 int64_t’
/usr/include/stdint.h:56: error: conflicting declaration ‘typedef long unsigned int uint64_t’
/lib/modules/2.6.28-r5c/build/include/linux/types.h:123: error: ‘uint64_t’ has a previous declaration as ‘typedef __u64 uint64_t’
/usr/include/sys/types.h:46: error: conflicting declaration ‘typedef __loff_t loff_t’
/lib/modules/2.6.28-r5c/build/include/linux/types.h:57: error: ‘loff_t’ has a previous declaration as ‘typedef __kernel_loff_t loff_t’
/usr/include/sys/types.h:62: error: conflicting declaration ‘typedef __dev_t dev_t’
/lib/modules/2.6.28-r5c/build/include/linux/types.h:19: error: ‘dev_t’ has a previous declaration as ‘typedef __kernel_dev_t dev_t’
/usr/include/time.h:105: error: conflicting declaration ‘typedef void* timer_t’
/lib/modules/2.6.28-r5c/build/include/linux/types.h:28: error: ‘timer_t’ has a previous declaration as ‘typedef __kernel_timer_t timer_t’
/usr/include/sys/types.h:204: error: conflicting declaration ‘typedef long unsigned int u_int64_t’
/lib/modules/2.6.28-r5c/build/include/linux/types.h:124: error: ‘u_int64_t’ has a previous declaration as ‘typedef __u64 u_int64_t’
/usr/include/sys/select.h:78: error: conflicting declaration ‘typedef struct fd_set fd_set’
/lib/modules/2.6.28-r5c/build/include/linux/types.h:18: error: ‘fd_set’ has a previous declaration as ‘typedef struct __kernel_fd_set fd_set’
/usr/include/sys/types.h:235: error: conflicting declaration ‘typedef __blkcnt_t blkcnt_t’
/lib/modules/2.6.28-r5c/build/include/linux/types.h:151: error: ‘blkcnt_t’ has a previous declaration as ‘typedef long unsigned int blkcnt_t’
make: *** [objs/dvbdevice.o] Error 1

emerge --info:
~/opensasc $ sudo emerge --info
Portage (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.28-r5c x86_64)
System uname: Linux-2.6.28-r5c-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-glibc2.2.5
Timestamp of tree: Wed, 06 May 2009 21:45:03 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.4.4-r13, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.28-r1
CFLAGS="-march=nocona -O2 -pipe"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
LINGUAS="en en_US"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="3dnow 3dnowext X a52 aac aalib accessibility acl acpi alsa amd64 audiofile berkdb bzip2 cairo cdaudio cdr clamav cli cracklib crypt cups curl dbus dga dio dri dv dvb dvd dvdr dvdread encode ffmpeg firefox fortran gdbm gif gpm gtk gtk2 hal howl iconv imagemagick ipv6 isdnlog jack java joystick jpeg jpeg2k kde libcaca lm_sensors midi mmx mmxext motif mp3 mpeg mudflap multilib musicbrainz mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre perl pni posix pppd python qt3 qt3support qt4 readline reflection samba session spell spl sse sse2 ssl ssse3 sysfs tcpd tiff truetype unicode usb v4l v4l2 vorbis wmf xcb xine xinerama xml xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nvidia"

Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum