Bug 142684 - Rebuild of dhcpd impossible with gcc
Summary: Rebuild of dhcpd impossible with gcc
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-12-12 17:40 UTC by Niels Basjes
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: 3.4.2-9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-12-12 20:05:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Niels Basjes 2004-12-12 17:40:12 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5)
Gecko/20041107 Firefox/1.0

Description of problem:
I have gcc-3.4.2-6.fc3 and downloaded the Fedora Core 3 dhcp sources
from
http://download.fedora.redhat.com/pub/fedora/linux/core/3/SRPMS/dhcp-3.0.1-11.src.rpm

Now I do 
   rpmbuild --rebuild dhcp-3.0.1-11.src.rpm
I get a lot of messages regarding the build process (all fine) until I
get:

Making all in common
make[2]: Entering directory
`/usr/src/redhat/BUILD/dhcp-3.0.1/work.linux-2.2/common'
cc -g  -I/usr/src/redhat/BUILD/dhcp-3.0.1 
-I/usr/src/redhat/BUILD/dhcp-3.0.1/includes -DLINUX_MAJOR=2
-DLINUX_MINOR=6  -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -fpic 
 -c -o raw.o raw.c
In file included from raw.c:53:
/usr/src/redhat/BUILD/dhcp-3.0.1/includes/dhcpd.h:309: error: mode
`byte' applied to inappropriate type
/usr/src/redhat/BUILD/dhcp-3.0.1/includes/dhcpd.h:310: error: mode
`byte' applied to inappropriate type
/usr/src/redhat/BUILD/dhcp-3.0.1/includes/dhcpd.h:311: error: mode
`byte' applied to inappropriate type
make[2]: *** [raw.o] Error 1
make[2]: Leaving directory
`/usr/src/redhat/BUILD/dhcp-3.0.1/work.linux-2.2/common'
make[1]: *** [all] Error 1
make[1]: Leaving directory
`/usr/src/redhat/BUILD/dhcp-3.0.1/work.linux-2.2'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.35487 (%build)

After searching the internet for what might cause this I found this:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18282
The strange thing is that according to this bug report it should not
occur in gcc 3.4.2 (which I have), then again I don't know what
patches have been included in the FC3 specific release of gcc-3.4.2. 




Version-Release number of selected component (if applicable):
gcc-3.4.2-6.fc3 

How reproducible:
Always

Steps to Reproduce:
As described above.

Actual Results:  error: mode `byte' applied to inappropriate type

Expected Results:  No errors.

Additional info:

I also downloaded the vanilla 
ftp://ftp.isc.org/isc/dhcp/dhcp-3.0.1.tar.gz and the error message is
the same when I try to compile that.


Note You need to log in before you can comment on or make changes to this bug.