Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error compiling DHCP v3



Greetings,

After some exchanges with Ted Lemon, the DHCP guru, I've gotten past the ./configure for DHCP v3, but the compiler stops at the point below, perhaps indicating a problem with __attribute__

Looking through the last 8 weeks of this list's archives, plus the compiler release notes, nothing is jumping out at me. Any ideas on why this isn't compiling? The Compiler Doc seems to imply the __attribute__ should be OK.

When I attempt the make, it starts to complain about dhcpd.h as listed below:

[localhost:~/Documents/Downloads/dhcp-3.0rc7] osh% make
Making all in common
cc -g -I../.. -I../../includes -Wall -Wno-unused -Wno-implicit -Wno-comment -Wno-uninitialized -Wno-switch -Werror -pipe -c -o raw.o raw.c
../../includes/dhcpd.h:284: illegal member declaration, missing name, found `__attribute__'
../../includes/dhcpd.h:285: syntax error, found `)'


and so on...

Looking at that header file, that error occurs near here:
# define EPHEMERAL_FLAGS (MS_NULL_TERMINATION | UNICAST_BROADCAST_HACK)

binding_state_t __attribute__ ((mode (__byte__))) binding_state;


Current compiler info is as follows:

[localhost:Downloads/dhcp-3.0rc7/includes] osh% cc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/2.95.2/specs
Apple Computer, Inc. version gcc-926, based on gcc version 2.95.2 19991024 (release)


Thanks,

John

--
John O'Shaughnessy email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.