Subject: port-i386/34171: Compiling udpcast in NetBSD
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <elekktretterr@exemail.com.au>
List: netbsd-bugs
Date: 08/09/2006 07:20:01
>Number:         34171
>Category:       port-i386
>Synopsis:       Compiling udpcast in NetBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 09 07:20:00 +0000 2006
>Originator:     Petr
>Release:        3.0
>Organization:
>Environment:
etBSD neptune 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005  builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386

>Description:
Hey people,
Ive recently switched one of our servers from Linux to NetBSD. All works well except I cannot compile udpcast, and it cannot be ran through Linux emulation either.

Version of udpcast is 20060619
http://udpcast.linux.lu/download/udpcast-20060619.tar.gz

I get this error:

cc -Wall -Wshadow -DBB_FEATURE_UDPCAST_FEC -D_FILE_OFFSET_BITS=64 -DUSE_SYSLOG -DUSE_ASSEMBLER -O6 -DNO_BB  -c statistics.c
statistics.c: In function `printFilePosition':
statistics.c:40: error: `loff_t' undeclared (first use in this function)
statistics.c:40: error: (Each undeclared identifier is reported only once
statistics.c:40: error: for each function it appears in.)
statistics.c:40: error: parse error before "offset"
statistics.c:41: error: `offset' undeclared (first use in this function)
*** Error code 1

Im not a C or C++ programmer so I cant fix it myself, however its crucial that I get this to work because our system depends on udpcast to multicast images to many computers. udpcast mailing list didnt help me so Im turning to here. Can anyone help me make a patch PLEASE? It would be sweet if udpcast was in pkgsrc too..

Thanks,
Petr Janda
>How-To-Repeat:
Download udp cast and try to run make on it.

http://udpcast.linux.lu/download/udpcast-20060619.tar.gz
>Fix: