compilation error

Bug #73248 reported by alex
6
Affects Status Importance Assigned to Milestone
udpcast (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: udpcast

The package used in ubuntu (also in Debian??) is an old one. So I downloaded a new version on udpcast.linux.lu.
./configure works fine, but make give me the following errors:
gcc -g -O2 -Wall -Wall -Wshadow -DBB_FEATURE_UDPCAST_FEC -D_FILE_OFFSET_BITS=64 -DUSE_SYSLOG -DUSE_ASSEMBLER -O6 -DNO_BB -I. -I. -c -o udp-receiver.o udp-receiver.c
gcc -g -O2 -Wall -Wall -Wshadow -DBB_FEATURE_UDPCAST_FEC -D_FILE_OFFSET_BITS=64 -DUSE_SYSLOG -DUSE_ASSEMBLER -O6 -DNO_BB -I. -I. -c -o socklib.o socklib.c
In file included from socklib.c:40:
/usr/include/linux/ethtool.h:18: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/ethtool.h:35: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/ethtool.h:52: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/ethtool.h:60: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/ethtool.h:66: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/ethtool.h:74: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/ethtool.h:83: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/ethtool.h:179: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/ethtool.h:201: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/ethtool.h:226: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/ethtool.h:239: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/ethtool.h:248: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/ethtool.h:254: error: expected specifier-qualifier-list before ‘__u32’
socklib.c: In function ‘hasLink’:
socklib.c:512: error: ‘struct ethtool_value’ has no member named ‘cmd’
socklib.c:521: error: ‘struct ethtool_value’ has no member named ‘data’
socklib.c: In function ‘udpc_isFullDuplex’:
socklib.c:541: error: ‘struct ethtool_cmd’ has no member named ‘cmd’
socklib.c:550: error: ‘struct ethtool_cmd’ has no member named ‘duplex’
make: *** [socklib.o] Error 1

Alain (Alain Knaff, developer of udpcast) reported me, that the package compiles under Suse, Fedora and other ones.

As he is no expert in ubuntu, he don't know how to resolve this error.

Thanx

Al

alex (alex-linux-lu)
Changed in udpcast:
assignee: nobody → alex-linux-lu
status: Unconfirmed → Confirmed
Revision history for this message
Lluis Gras (serni) wrote :

It seems that changing lines 35-38 in socklib.c helps.

#ifdef __linux__
typedef unsigned long long u64;
typedef unsigned int u32;
typedef unsigned short u16;
typedef unsigned char u8;

to

#ifdef __linux__
typedef unsigned long long __u64;
typedef unsigned int __u32;
typedef unsigned short __u16;
typedef unsigned char __u8;

Revision history for this message
alex (alex-linux-lu) wrote :

Thank you.
But why does ubuntu need this?

Revision history for this message
alex (alex-linux-lu) wrote :

This is only needed in Ubuntu

Changed in udpcast:
status: Confirmed → Fix Committed
Revision history for this message
Lluis Gras (serni) wrote : Re: [Bug 73248] Re: compilation error

> This is only needed in Ubuntu
>
> ** Changed in: udpcast (Ubuntu)
> Status: Confirmed => Fix Committed
>
> --
> compilation error
> https://launchpad.net/bugs/73248
>
>

Sorry ... i'm not a C coder, only a teacher cloning hd at school ;-)

I've seen it at
http://<email address hidden>/msg09154.html
when i was compiling under Debian testing.

Revision history for this message
alex (alex-linux-lu) wrote :

Can't it be upgraded to a new version in the repositories, because these use a very old package (from 2004).

Al

William Grant (wgrant)
Changed in udpcast:
assignee: alex-linux-lu → nobody
status: Fix Committed → Confirmed
Phillip Susi (psusi)
Changed in udpcast (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.