bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] GNU bug (with TAR 1.16, but also other packages)


From: Nathan Reed
Subject: [Bug-tar] GNU bug (with TAR 1.16, but also other packages)
Date: Tue, 07 Nov 2006 15:11:39 -0800

To whom it may concern,
   I got the following error when trying to configure TAR 1.16:

checking sys/wait.h presence... yes
configure: WARNING: sys/wait.h: present but cannot be compiled
configure: WARNING: sys/wait.h:     check for missing prerequisite headers?
configure: WARNING: sys/wait.h: see the Autoconf documentation
configure: WARNING: sys/wait.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/wait.h: proceeding with the preprocessor's result
configure: WARNING: sys/wait.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------ ##
configure: WARNING:     ## Report this to address@hidden ##
configure: WARNING:     ## ------------------------------ ##

********************************

My environment:

# export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/lib:/usr/ucblib:/usr/ccs/lib:/
usr/local/mysql/lib:/usr/local/BerkeleyDB.4.2/lib:/opt/lib/cobol

# export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/ccs/bin:/us
r/ucb:/bin:/usr/local/ssl/bin

# env
TERM=vt100
SHELL=/bin/tcsh
SSH_TTY=/dev/pts/1
LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/lib:/usr/ucblib:/usr/ccs/lib:/usr/local
/mysql/lib:/usr/local/BerkeleyDB.4.2/lib:/opt/lib/cobol
HOSTTYPE=sun4
PWD=/k1/installs/GNU/tar-1.16

************************

I have run across this error in the Perl 5.8.7. package, the mod_perl package, and a series of other perl modules.  I am running Solaris 10 on a Sun T-2000 with an 8 core chip.  I have loaded the GCC 3.3 package from sunfreeware.com along with a host of other necessary packages for compiling/installation. 

This is the result of performing a make with the above configure error:

# make
make  all-recursive
make[1]: Entering directory `/k1/installs/GNU/tar-1.16'
Making all in doc
make[2]: Entering directory `/k1/installs/GNU/tar-1.16/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/k1/installs/GNU/tar-1.16/doc'
Making all in lib
make[2]: Entering directory `/k1/installs/GNU/tar-1.16/lib'
rm -f configmake.h-t configmake.h
( \
  echo '#define PREFIX "/usr/local"'; \
  echo '#define EXEC_PREFIX "/usr/local"'; \
  echo '#define BINDIR "/usr/local/bin"'; \
  echo '#define SBINDIR "/usr/local/sbin"'; \
  echo '#define LIBEXECDIR "/usr/local/libexec"'; \
  echo '#define DATAROOTDIR "/usr/local/share"'; \
  echo '#define DATADIR "/usr/local/share"'; \
  echo '#define SYSCONFDIR "/usr/local/etc"'; \
  echo '#define SHAREDSTATEDIR "/usr/local/com"'; \
  echo '#define LOCALSTATEDIR "/usr/local/var"'; \
  echo '#define INCLUDEDIR "/usr/local/include"'; \
  echo '#define OLDINCLUDEDIR "/usr/include"'; \
  echo '#define DOCDIR "/usr/local/share/doc/tar"'; \
  echo '#define INFODIR "/usr/local/share/info"'; \
  echo '#define HTMLDIR "/usr/local/share/doc/tar"'; \
  echo '#define DVIDIR "/usr/local/share/doc/tar"'; \
  echo '#define PDFDIR "/usr/local/share/doc/tar"'; \
  echo '#define PSDIR "/usr/local/share/doc/tar"'; \
  echo '#define LIBDIR "/usr/local/lib"'; \
  echo '#define LISPDIR ""'; \
  echo '#define LOCALEDIR "/usr/local/share/locale"'; \
  echo '#define MANDIR "/usr/local/share/man"'; \
  echo '#define MANEXT ""'; \
  echo '#define PKGLIBDIR "/usr/local/lib/tar"'; \
  echo '#define PKGINCLUDEDIR "/usr/local/include/tar"'; \
  echo '#define PKGDATADIR "/usr/local/share/tar"'; \
:) | sed '/""/d' >configmake.h-t
mv configmake.h-t configmake.h
make  all-am
make[3]: Entering directory `/k1/installs/GNU/tar-1.16/lib'
echo '#define LOCALEDIR "/usr/local/share/locale"' >localedir.h
echo "#ifndef DEFAULT_RMT_COMMAND" >> localedir.h
echo "# define DEFAULT_RMT_COMMAND \"/usr/local/libexec/`echo rmt | sed 's,x,x,'
`\"" >> localedir.h
echo "#endif" >> localedir.h
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr/local/include  -g -O2 -MT
rtapelib.o -MD -MP -MF ".deps/rtapelib.Tpo" -c -o rtapelib.o rtapelib.c; \
then mv -f ".deps/rtapelib.Tpo" ".deps/rtapelib.Po"; else rm -f ".deps/rtapelib.
Tpo"; exit 1; fi
In file included from /usr/include/sys/wait.h:24,
                 from system.h:335,
                 from rtapelib.c:35:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/sys/procset.h:24,
                 from /usr/include/sys/wait.h:25,
                 from system.h:335,
                 from rtapelib.c:35:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from system.h:335,
                 from rtapelib.c:35:
/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
In file included from rtapelib.c:56:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
make[3]: *** [rtapelib.o] Error 1
make[3]: Leaving directory `/k1/installs/GNU/tar-1.16/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/k1/installs/GNU/tar-1.16/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/k1/installs/GNU/tar-1.16'
make: *** [all] Error 2

**************************************************

The fix:

add
typedef id_t ctid_t;

before:
#include <signal.h>

in equivalent of

/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/unixish.h

of perl


Add
typedef id_t ctid_t;

to
/k1/installs/GNU/tar-1.16/lib/system.h

#include <sys/wait.h>

in TAR 1.16 package.

********************************


Fix this problem because it affects the signal processing interface, which is an integral part of the Solaris Unix interface.

This may need to be addressed in the GCC compiler because of a typedef'ing problem somewhere within wait.h/signal.h/etc.


Nathan K. Reed
Programmer/Analyst
University of California, Irvine
Office of Admissions and Relations with Schools
(949) 824-9631


reply via email to

[Prev in Thread] Current Thread [Next in Thread]