View previous topic :: View next topic |
Author |
Message |
silverter Guru
Joined: 10 Apr 2002 Posts: 491 Location: Ulm, DE
|
Posted: Thu Aug 29, 2002 3:40 pm Post subject: Problem compiling ntp |
|
|
I'm not getting ntp to compile on my gentoo system (running 1.3b with gcc-3.1.1). I get the following error message:
Code: |
Making all in ntpd
make[2]: Entering directory `/usr/tmp/portage/ntp-4.1.1a/work/ntp-4.1.1a/ntpd'
source='cmd_args.c' object='cmd_args.o' libtool=no \
depfile='.deps/cmd_args.Po' tmpdepfile='.deps/cmd_args.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../librsaref -O3 -march=pentium2 -pipe -fforce-addr -fomit-frame-pointer -frerun-loop-opt -frerun-cse-after-loop -mmmx -Wall -Wcast-qual -Wmissing-prototypes -Wshadow -Wstrict-prototypes -pipe -c `test -f cmd_args.c || echo './'`cmd_args.c
source='map_vme.c' object='map_vme.o' libtool=no \
depfile='.deps/map_vme.Po' tmpdepfile='.deps/map_vme.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../librsaref -O3 -march=pentium2 -pipe -fforce-addr -fomit-frame-pointer -frerun-loop-opt -frerun-cse-after-loop -mmmx -Wall -Wcast-qual -Wmissing-prototypes -Wshadow -Wstrict-prototypes -pipe -c `test -f map_vme.c || echo './'`map_vme.c
source='ntp_config.c' object='ntp_config.o' libtool=no \
depfile='.deps/ntp_config.Po' tmpdepfile='.deps/ntp_config.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../librsaref -O3 -march=pentium2 -pipe -fforce-addr -fomit-frame-pointer -frerun-loop-opt -frerun-cse-after-loop -mmmx -Wall -Wcast-qual -Wmissing-prototypes -Wshadow -Wstrict-prototypes -pipe -c `test -f ntp_config.c || echo './'`ntp_config.c
ntp_config.c:130: `CONFIG_PHONE' undeclared here (not in a function)
ntp_config.c:130: initializer element is not constant
ntp_config.c:130: (near initialization for `keywords[21].keytype')
ntp_config.c:130: initializer element is not constant
ntp_config.c:130: (near initialization for `keywords[21]')
ntp_config.c:131: initializer element is not constant
ntp_config.c:131: (near initialization for `keywords[22]')
ntp_config.c:132: initializer element is not constant
ntp_config.c:132: (near initialization for `keywords[23]')
ntp_config.c:133: initializer element is not constant
ntp_config.c:133: (near initialization for `keywords[24]')
ntp_config.c:134: initializer element is not constant
ntp_config.c:134: (near initialization for `keywords[25]')
ntp_config.c:135: initializer element is not constant
ntp_config.c:135: (near initialization for `keywords[26]')
ntp_config.c:136: initializer element is not constant
ntp_config.c:136: (near initialization for `keywords[27]')
ntp_config.c:137: initializer element is not constant
ntp_config.c:137: (near initialization for `keywords[28]')
ntp_config.c:138: initializer element is not constant
ntp_config.c:138: (near initialization for `keywords[29]')
ntp_config.c:139: initializer element is not constant
ntp_config.c:139: (near initialization for `keywords[30]')
ntp_config.c:140: initializer element is not constant
ntp_config.c:140: (near initialization for `keywords[31]')
ntp_config.c:141: initializer element is not constant
ntp_config.c:141: (near initialization for `keywords[32]')
ntp_config.c:142: initializer element is not constant
ntp_config.c:142: (near initialization for `keywords[33]')
ntp_config.c:143: initializer element is not constant
ntp_config.c:143: (near initialization for `keywords[34]')
ntp_config.c: In function `getconfig':
ntp_config.c:1619: `CONFIG_PHONE' undeclared (first use in this function)
ntp_config.c:1619: (Each undeclared identifier is reported only once
ntp_config.c:1619: for each function it appears in.)
source='ntp_control.c' object='ntp_control.o' libtool=no \
depfile='.deps/ntp_control.Po' tmpdepfile='.deps/ntp_control.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../librsaref -O3 -march=pentium2 -pipe -fforce-addr -fomit-frame-pointer -frerun-loop-opt -frerun-cse-after-loop -mmmx -Wall -Wcast-qual -Wmissing-prototypes -Wshadow -Wstrict-prototypes -pipe -c `test -f ntp_control.c || echo './'`ntp_control.c
make[2]: *** [ntp_config.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/usr/tmp/portage/ntp-4.1.1a/work/ntp-4.1.1a/ntpd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/tmp/portage/ntp-4.1.1a/work/ntp-4.1.1a'
make: *** [all] Error 2
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 10, Exitcode 2
!!! (no error message)
!!! emerge aborting on /usr/portage/net-misc/ntp/ntp-4.1.1a.ebuild .
|
Does anyone has a clue what I might be missing?
regards, _________________ -- A Guru was once a Beginner -- |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Thu Aug 29, 2002 4:00 pm Post subject: |
|
|
Moved from Installing Gentoo to Networking & Security. Quote: | Installing Gentoo
If you've finished the install guide, look somewhere else. But if you're still working your way through it, or just need some info before you start your install, this is the place. |
_________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Thu Aug 29, 2002 6:15 pm Post subject: Re: Problem compiling ntp |
|
|
silverter wrote: | I'm not getting ntp to compile on my gentoo system (running 1.3b with gcc-3.1.1). |
Works for me with GCC 3.1, USE="berkdb canna crypt esd -gnome -gpm gtk jpeg java maildir pdflib mozilla mule ncurses mysql perl png readline ssl truetype X xml2 zlib", CFLAGS="-march=athlon -mmmx -m3dnow -O3 -pipe" _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
silverter Guru
Joined: 10 Apr 2002 Posts: 491 Location: Ulm, DE
|
Posted: Mon Sep 02, 2002 1:08 pm Post subject: |
|
|
I still haven't got this issue solved. I set my CFLAGS and CXXFLAGS to the basic:
Code: | CFLAGS=-march=pentium2 -O3 -pipe
CXXFLAGS=-march=pentium2 -O3 -pipe |
But still get the same error message. Could this has to do with a compilation option in the kernel? I'm just guessing, I really don't know where and how to solve this....
regards, _________________ -- A Guru was once a Beginner -- |
|
Back to top |
|
|
anidel n00b
Joined: 04 Sep 2002 Posts: 9 Location: Baltimore
|
Posted: Mon Nov 18, 2002 12:03 pm Post subject: Re: Problem compiling ntp |
|
|
Did you get it compiled?
I'm having EXACTLY the same problem and I figured out that the, I don't know why, CONFIG_PHONE define of NTP conflicts with the kernel CONFIG_PHONE!
So I opened the ntp tar.gz file, modified the CONFIG_PHONE entries in include/ntp_config.h and ntpd/ntp_config.c and did a new tar.gz file with this patch.
Then I ran emerge ntp but it stopped, of course, because of the mismatched MD5 checksum, but, luckily, it gives you the "wrong" one. So I modified my ntp digest file to reflect the new MD5 checksum and the new size of the package.
I hope this will solve you problem too.
Anidel _________________ See also:
http://www.tcfs.it |
|
Back to top |
|
|
|