dhcp build problem
Zbigniew Luszpinski
zbiggy at o2.pl
Sat Mar 10 11:04:38 CET 2012
Dnia sobota, 10 marca 2012 01:57:56 Richard B. Pyne pisze:
> On 3/10/2012 1:01 AM, Zbigniew Luszpinski wrote:
> >> I'm haveing trouble getting dhcp to build on a new machine I'm
> >> building. The machine was built from lunar 1.6.5-x86_64.
> >>
> >> Any help will be greatly appreciated.
> >> gcc -DHAVE_CONFIG_H -I. -I../includes -I.. -DLOCALSTATEDIR='"/var"'
> >> -g -O2 -Wall -Werror -fno-strict-aliasing -I../bind/include -MT
> >> comapi.o -MD -MP -MF .deps/comapi.Tpo -c -o comapi.o comapi.c
> >
> > There is something wrong with your Lunar. It does not set CFLAGS just
> > before build. This is very strange.
> > That is why you got error. You may get errors in other modules because
> > this problem is not dhcp related but Lunar gcc problem only on your
> > machine.
> >
> > BUILD script of dhcp at the beginning adds to CFLAGS+=" -D_GNU_SOURCE
> > "
> > but this is not visible in your dhcp build log:
> > -g -O2 -Wall -Werror -fno-strict-aliasing
> > whats more:
> > -g -O2 -Wall -Werror -fno-strict-aliasing
> > CFLAGS are set by ./configure script of dhcp when user (Lunar) does
> > not
> > set any CFLAGS.
> >
> > Do not move further with your installation until you resolve this
> > because your Lunar will not work properly later.
> >
> > What you may try to fix:
> > run 'lunar' tool and go to: Option->Optimize Architecture->GCC_4_
> > (choose the latest). Set it as DEFAULT.
> > It is recommended to choose here safe flags:
> > default: [DEFAULT]
> > safe: [on]
> > bopt: [Faster]
> > cpu: [native] (if you have Intel/AMD cpu)
> > xtra: [] (do not set anything here if you chose native - all supported
> > extensions will be autodetected and used during build)
> > spd: [Pointers]
> > fpm: [SSE] (if you have cpu with sse2 or later, otherwise select 387)
> > cc_opt: [Pipe]
> >
> > do lunar update and lin gcc
> >
> > With these settings you can build speedy and stable Lunar.
>
> You are correct that there is something wrong with my lunar in that even
> though I have gcc 4.6.3 installed, the only option that shows in lunar
> is 4.4. This was a clean install from the 1.6.5-x86_64 iso yesterday,
> then followed the man lfirsttime process. Those are exactly the
> settings I used for the Optimize Architecture.
>
> I have already installed about a dozen other modules without any problem
> until I hit this one.
>
> I'm guessing that this is going to end up being a complete reinstall.
Check /usr/src looking what was not built. If everything installed clean
you should only have linux* directories there. If there are other
directories - these modules have broken build.
If you only have gcc 4.4 in menu you have only what was installed from CD.
If you have done 'lunar update' you should get gcc 4_6 in menu and this
one should be selected. gcc 4_6 will appear in menu when gcc from moonbase
will be correctly build.
More information about the Lunar
mailing list