[ntp:questions] Build failing

Gene Spafford spaf at cerias.purdue.edu
Mon Mar 1 17:54:41 UTC 2010


On Mar 1, 2010, at 10:35 AM, Kevin Oberman wrote:

>> From: Gene Spafford <spaf at cerias.purdue.edu>
>> Date: Thu, 25 Feb 2010 20:28:11 -0500
>> Sender: questions-bounces+oberman=es.net at lists.ntp.org
>> 
>> I am trying to build a recent version of the ntp suite.  Both 4.2.6
>> and 4.2.6p1 fail with the same errors.
>> 
>> I am building on a Sun under Solaris.  This is the output I get
>> (captured via script):
> 
> The output is missing from the mail. What you see above is what the list
> got, so there is not much we can say about the problem.

The output was attached as a file, and apparently the mailer software striped it out. :-(

I am enclosing the "typescript" file below.

As best as I can tell, the autoconf thinks that a couple of the types aren't defined and then generates conflicting definitions for them.  This is because the int types on my machine are defined via <inttypes.h> and <sys/inttypes.h> and not <sys/types.h> which is the file that is checked for them.

I can provide other files if this helps.


--spaf

Script started on Mon Mar 01 12:49:35 2010
dorsai> make clean
Making clean in util
rm -f ntptime tickadj ntp-keygen
test -z ".deps-ver" || rm -f .deps-ver
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
Making clean in sntp
Making clean in libopts
test -z "" || rm -f 
rm -rf .libs _libs
test -z "libopts.la" || rm -f libopts.la
rm -f "./so_locations"
rm -f *.o
rm -f *.lo
Making clean in .
rm -f sntp
test -z "check-COPYRIGHT-submake .deps-ver" || rm -f check-COPYRIGHT-submake .deps-ver
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
Making clean in kernel
Making clean in sys
rm -rf .libs _libs
rm -f *.lo
Making clean in .
rm -rf .libs _libs
rm -f *.lo
Making clean in clockstuff
test -z ".deps-ver" || rm -f .deps-ver
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
Making clean in adjtimed
test -z ".deps-ver" || rm -f .deps-ver
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
Making clean in parseutil
test -z ".deps-ver" || rm -f .deps-ver
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
Making clean in ntpsnmpd
test -z ".deps-ver" || rm -f .deps-ver
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
Making clean in ntpq
rm -f ntpq
test -z ".deps-ver" || rm -f .deps-ver
rm -rf .libs _libs
test -z "libntpq.a" || rm -f libntpq.a
rm -f *.o
rm -f *.lo
Making clean in ntpdc
rm -f ntpdc
test -z "check-layout layout.here nl.c ntpdc-layout .deps-ver" || rm -f check-layout layout.here nl.c ntpdc-layout .deps-ver
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
Making clean in ntpdate
rm -f ntpdate
test -z ".deps-ver" || rm -f .deps-ver
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
Making clean in ntpd
rm -f ntpd
test -z "check-saveconfig compsave.conf k-g-u-submake   .deps-ver" || rm -f check-saveconfig compsave.conf k-g-u-submake   .deps-ver
rm -rf .libs _libs
test -z "libntpd.a" || rm -f libntpd.a
rm -f *.o
rm -f *.lo
Making clean in libparse
test -z "libparse.a libparse_kernel.a info_trimble.c .deps-ver" || rm -f libparse.a libparse_kernel.a info_trimble.c .deps-ver
rm -rf .libs _libs
test -z "" || rm -f 
rm -f *.o
rm -f *.lo
Making clean in libntp
test -z ".deps-ver" || rm -f .deps-ver
rm -rf .libs _libs
test -z "libntp.a" || rm -f libntp.a
rm -f *.o
rm -f *.lo
Making clean in libopts
test -z "" || rm -f 
rm -rf .libs _libs
test -z "libopts.la" || rm -f libopts.la
rm -f "./so_locations"
rm -f *.o
rm -f *.lo
Making clean in ElectricFence
rm -rf .libs _libs
test -z "" || rm -f 
rm -f *.o
rm -f *.lo
Making clean in include
Making clean in isc
rm -rf .libs _libs
rm -f *.lo
Making clean in .
rm -rf .libs _libs
rm -f *.lo
Making clean in scripts
rm -rf .libs _libs
rm -f *.lo
Making clean in .
test -z "" || rm -f 
rm -rf .libs _libs
rm -f *.lo
dorsai> make
(bk version) >/dev/null 2>&1 && \
   cd . && \
   x=`bk -R prs -hr+ -nd:I: ChangeSet` && \
   y=`cat version 2>/dev/null` || true && \
   case "$x" in ''|$y) ;; *) echo $x > version ;; esac
cd . && \
./scripts/genver include/version.def
make  all-recursive
Making all in scripts
Making all in include
Making all in isc
Making all in ElectricFence
Making all in libopts
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I.. -D__EXTENSIONS__ -I/usr/local/ssl/include  -g -O2 -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow -Winit-self -Wno-strict-prototypes -MT libopts_la-libopts.lo -MD -MP -MF .deps/libopts_la-libopts.Tpo -c -o libopts_la-libopts.lo `test -f 'libopts.c' || echo './'`libopts.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -D__EXTENSIONS__ -I/usr/local/ssl/include -g -O2 -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow -Winit-self -Wno-strict-prototypes -MT libopts_la-libopts.lo -MD -MP -MF .deps/libopts_la-libopts.Tpo -c libopts.c -o libopts_la-libopts.o
In file included from libopts.c:2:
compat/compat.h:268: error: conflicting types for 'int8_t'
/usr/include/sys/int_types.h:62: error: previous declaration of 'int8_t' was here
In file included from libopts.c:2:
compat/compat.h:299:5: #error Cannot create a uint32_t type.
compat/compat.h:300: error: parse error before "Me"
compat/compat.h:316: error: conflicting types for 'intptr_t'
/usr/include/sys/int_types.h:110: error: previous declaration of 'intptr_t' was here
compat/compat.h:337: error: conflicting types for 'pid_t'
/pkgs/gcc/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.3/include/sys/types.h:455: error: previous declaration of 'pid_t' was here
In file included from autoopts.c:109,
                from libopts.c:14:
compat/pathfind.c: In function `pathfind':
compat/pathfind.c:96: error: `R_OK' undeclared (first use in this function)
compat/pathfind.c:96: error: (Each undeclared identifier is reported only once
compat/pathfind.c:96: error: for each function it appears in.)
compat/pathfind.c:97: error: `W_OK' undeclared (first use in this function)
compat/pathfind.c:98: error: `X_OK' undeclared (first use in this function)
compat/pathfind.c:104: error: `DIR' undeclared (first use in this function)
compat/pathfind.c:104: error: `dirP' undeclared (first use in this function)
compat/pathfind.c:113: warning: implicit declaration of function `opendir'
compat/pathfind.c:125: warning: implicit declaration of function `readdir'
compat/pathfind.c:125: warning: initialization makes pointer from integer without a cast
compat/pathfind.c:133: error: dereferencing pointer to incomplete type
compat/pathfind.c:139: warning: implicit declaration of function `access'
compat/pathfind.c:151: warning: implicit declaration of function `closedir'
In file included from autoopts.c:113,
                from libopts.c:14:
compat/snprintf.c:3:48: choke-me: no vprintf and no snprintf: No such file or directory
compat/snprintf.c:23:41: must-have-stdarg-or-varargs: No such file or directory
In file included from autoopts.c:113,
                from libopts.c:14:
compat/snprintf.c: At top level:
compat/snprintf.c:28: warning: static declaration of 'snprintf' follows non-static declaration
compat/snprintf.c: In function `snprintf':
compat/snprintf.c:29: error: `va_list' undeclared (first use in this function)
compat/snprintf.c:29: error: parse error before "ap"
compat/snprintf.c:40: warning: implicit declaration of function `VA_START'
compat/snprintf.c:40: error: `ap' undeclared (first use in this function)
compat/snprintf.c:42: warning: implicit declaration of function `VA_END'
compat/snprintf.c: At top level:
compat/snprintf.c:53: error: parse error before "va_list"
compat/snprintf.c:54: warning: static declaration of 'vsnprintf' follows non-static declaration
compat/snprintf.c: In function `vsnprintf':
compat/snprintf.c:54: error: number of arguments doesn't match prototype
cc1: error: prototype declaration
compat/snprintf.c:58: error: `str' undeclared (first use in this function)
compat/snprintf.c:58: error: `fmt' undeclared (first use in this function)
compat/snprintf.c:58: error: `ap' undeclared (first use in this function)
In file included from autoopts.c:117,
                from libopts.c:14:
compat/strdup.c: At top level:
compat/strdup.c:7: error: redefinition of 'ao_strdup'
autoopts.c:97: error: previous definition of 'ao_strdup' was here
In file included from autoopts.c:121,
                from libopts.c:14:
compat/strchr.c: In function `index':
compat/strchr.c:32: warning: return discards qualifiers from pointer target type
compat/strchr.c: In function `rindex':
compat/strchr.c:49: warning: return discards qualifiers from pointer target type
In file included from libopts.c:14:
autoopts.c: In function `handleOption':
autoopts.c:140: warning: cast discards qualifiers from pointer target type
autoopts.c:161: error: `SHRT_MAX' undeclared (first use in this function)
autoopts.c:179: warning: cast discards qualifiers from pointer target type
autoopts.c: In function `longOptionFind':
autoopts.c:383: error: `SHRT_MAX' undeclared (first use in this function)
autoopts.c: In function `shortOptionFind':
autoopts.c:449: error: `SHRT_MAX' undeclared (first use in this function)
autoopts.c: In function `findOptDesc':
autoopts.c:513: warning: cast discards qualifiers from pointer target type
autoopts.c:515: error: `SHRT_MAX' undeclared (first use in this function)
autoopts.c: In function `doPresets':
autoopts.c:885: error: `SHRT_MAX' undeclared (first use in this function)
autoopts.c: In function `checkConsistency':
autoopts.c:959: error: `SHRT_MAX' undeclared (first use in this function)
autoopts.c: In function `optionProcess':
autoopts.c:1153: error: `SHRT_MAX' undeclared (first use in this function)
In file included from libopts.c:15:
boolean.c: In function `optionBooleanVal':
boolean.c:80: warning: cast discards qualifiers from pointer target type
In file included from libopts.c:16:
configfile.c: In function `optionFindValue':
configfile.c:185: warning: cast discards qualifiers from pointer target type
configfile.c: In function `optionFindNextValue':
configfile.c:262: warning: cast discards qualifiers from pointer target type
configfile.c: In function `optionGetValue':
configfile.c:325: warning: cast discards qualifiers from pointer target type
configfile.c: In function `optionNextValue':
configfile.c:386: warning: cast discards qualifiers from pointer target type
In file included from libopts.c:18:
enumeration.c: In function `findName':
enumeration.c:182: warning: cast discards qualifiers from pointer target type
enumeration.c:186: warning: cast discards qualifiers from pointer target type
enumeration.c:199: warning: cast discards qualifiers from pointer target type
enumeration.c:199: warning: cast discards qualifiers from pointer target type
enumeration.c: In function `optionEnumerationVal':
enumeration.c:313: warning: cast discards qualifiers from pointer target type
In file included from libopts.c:19:
environment.c: In function `doEnvPresets':
environment.c:207: error: `SHRT_MAX' undeclared (first use in this function)
In file included from libopts.c:20:
file.c: In function `optionFileCheck':
file.c:125: warning: implicit declaration of function `open'
file.c:134: warning: cast discards qualifiers from pointer target type
file.c:154: warning: cast discards qualifiers from pointer target type
In file included from libopts.c:22:
load.c: In function `insertProgramPath':
load.c:225: warning: cast discards qualifiers from pointer target type
load.c:257: warning: cast discards qualifiers from pointer target type
In file included from libopts.c:23:
makeshell.c: In function `optionParseShell':
makeshell.c:471: error: `STDOUT_FILENO' undeclared (first use in this function)
In file included from libopts.c:24:
nested.c: In function `scanXmlEntry':
nested.c:443: warning: cast discards qualifiers from pointer target type
nested.c: In function `unloadNestedArglist':
nested.c:559: warning: cast discards qualifiers from pointer target type
nested.c: In function `optionUnloadNested':
nested.c:590: warning: cast discards qualifiers from pointer target type
nested.c: In function `sortNestedList':
nested.c:611: warning: cast discards qualifiers from pointer target type
nested.c:612: warning: cast discards qualifiers from pointer target type
nested.c:621: warning: cast discards qualifiers from pointer target type
nested.c: In function `optionNestedVal':
nested.c:746: warning: cast discards qualifiers from pointer target type
nested.c: In function `get_special_char':
nested.c:782: warning: cast discards qualifiers from pointer target type
In file included from libopts.c:25:
numeric.c: In function `optionNumericVal':
numeric.c:154: warning: cast discards qualifiers from pointer target type
In file included from libopts.c:27:
putshell.c: In function `optionPutShell':
putshell.c:184: warning: cast discards qualifiers from pointer target type
putshell.c:256: warning: cast discards qualifiers from pointer target type
In file included from libopts.c:28:
reset.c: In function `optionResetOpt':
reset.c:83: warning: implicit declaration of function `_exit'
reset.c:110: warning: cast discards qualifiers from pointer target type
In file included from libopts.c:29:
restore.c: In function `optionFree':
restore.c:185: warning: cast discards qualifiers from pointer target type
In file included from libopts.c:30:
save.c: In function `findFileName':
save.c:215: warning: cast discards qualifiers from pointer target type
save.c:234: warning: cast discards qualifiers from pointer target type
save.c:248: warning: cast discards qualifiers from pointer target type
save.c:267: warning: cast discards qualifiers from pointer target type
save.c:274: warning: implicit declaration of function `unlink'
save.c: In function `print_a_value':
save.c:386: warning: cast discards qualifiers from pointer target type
save.c: In function `printValueList':
save.c:462: warning: cast discards qualifiers from pointer target type
save.c: In function `printHierarchy':
save.c:496: warning: cast discards qualifiers from pointer target type
save.c: In function `openSaveFile':
save.c:537: warning: cast discards qualifiers from pointer target type
save.c:542: warning: cast discards qualifiers from pointer target type
save.c: In function `printEnumArg':
save.c:621: warning: cast discards qualifiers from pointer target type
save.c: In function `printSetMemberArg':
save.c:636: warning: cast discards qualifiers from pointer target type
save.c:642: warning: cast discards qualifiers from pointer target type
In file included from libopts.c:32:
stack.c: In function `optionUnstackArg':
stack.c:142: warning: cast discards qualifiers from pointer target type
stack.c:50: warning: unused variable `res'
stack.c: In function `optionStackArg':
stack.c:247: warning: cast discards qualifiers from pointer target type
In file included from libopts.c:34:
text_mmap.c: In function `text_mmap':
text_mmap.c:138: error: `O_RDWR' undeclared (first use in this function)
text_mmap.c:140: error: `O_RDONLY' undeclared (first use in this function)
text_mmap.c:147: error: `O_EXCL' undeclared (first use in this function)
text_mmap.c:256: warning: implicit declaration of function `read'
text_mmap.c:284: warning: implicit declaration of function `close'
text_mmap.c: In function `text_munmap':
text_mmap.c:364: warning: implicit declaration of function `lseek'
text_mmap.c:365: warning: implicit declaration of function `write'
In file included from libopts.c:35:
tokenize.c: In function `copy_cooked':
tokenize.c:53: warning: cast discards qualifiers from pointer target type
In file included from time.c:40,
                from libopts.c:36:
parse-duration.c: In function `str_const_to_ul':
parse-duration.c:62: warning: cast discards qualifiers from pointer target type
parse-duration.c: In function `str_const_to_l':
parse-duration.c:68: warning: cast discards qualifiers from pointer target type
In file included from libopts.c:36:
time.c: In function `optionTimeVal':
time.c:68: warning: cast discards qualifiers from pointer target type
*** Error code 1
make: Fatal error: Command failed for target `libopts_la-libopts.lo'
Current working directory /private/ntp/ntp-4.2.6p1-RC5/libopts
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /private/ntp/ntp-4.2.6p1-RC5
*** Error code 1
make: Fatal error: Command failed for target `all'
dorsai> 
script done on Mon Mar 01 12:50:04 2010




More information about the questions mailing list