Mailing Lists: Apple Mailing Lists

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

RE: Error compiling DHCP v3



Hmm...

That seems to be the case. Apparently it worked in the Beta Days for OS X.
I wonder if there is a 'known bugs' area for the Apple GCC compiler? I
didn't see it in the Developer CD files.

Thanks,

John

> -----Original Message-----
> From: email@hidden
> [mailto:email@hidden]On Behalf Of
> email@hidden
> Sent: Tuesday, May 29, 2001 8:53 AM
> Cc: email@hidden
> Subject: Re: Error compiling DHCP v3
>
>
> I tried to compile a file with the single line:
> int __attribute__;
>
> That wouldn't compile. If you change the name for:
> int __myAttribute__;
>
> it compiles OK.
> So this is a problem with cc, you can't use __attribute__.
>
> -- Denis.
>
> On Monday, May 28, 2001, at 04:48 pm, John O'Shaughnessy wrote:
>
> > 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
> > _______________________________________________
> > darwinos-users mailing list
> > email@hidden
> > http://www.lists.apple.com/mailman/listinfo/darwinos-users
> _______________________________________________
> darwinos-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/darwinos-users


References: 
 >Re: Error compiling DHCP v3 (From: 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.