compilation error
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_
gcc -g -O2 -Wall -Wall -Wshadow -DBB_FEATURE_
In file included from socklib.c:40:
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
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_isFullDup
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
Changed in udpcast: | |
assignee: | nobody → alex-linux-lu |
status: | Unconfirmed → Confirmed |
Changed in udpcast: | |
assignee: | alex-linux-lu → nobody |
status: | Fix Committed → Confirmed |
Changed in udpcast (Ubuntu): | |
status: | Confirmed → Invalid |
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;