summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-07-19 01:51:04 +0000
committerAndy Dougherty <doughera@lafcol.lafayette.edu>1996-07-19 01:51:04 +0000
commit5400051929bf35fc95d68494446c45d50583bc1c (patch)
tree5209a0a5f91b7c010ded8e9399252f7840593879
parentd44e0d5ab2e8f460af0cf566f8f36a0cb9b9dcda (diff)
downloadperl-5400051929bf35fc95d68494446c45d50583bc1c.tar.gz
perl 5.003_03: hints/sunos_4_1.sh
Add brief note about GNU as and ld. Don't include <unistd.h> Add notes about WHOA THERE messages.
-rw-r--r--hints/sunos_4_1.sh24
1 files changed, 23 insertions, 1 deletions
diff --git a/hints/sunos_4_1.sh b/hints/sunos_4_1.sh
index ee42e2c448..21c5d3b364 100644
--- a/hints/sunos_4_1.sh
+++ b/hints/sunos_4_1.sh
@@ -3,7 +3,9 @@
# Andy Dougherty <doughera@lafcol.lafayette.edu>
case "$cc" in
-*gcc*) usevfork=false ;;
+*gcc*) usevfork=false
+ # GNU as and GNU ld might not work. See the INSTALL file.
+ ;;
*) usevfork=true ;;
esac
@@ -13,6 +15,26 @@ esac
# available in the System V environment.
d_tzname='undef'
+# Configure will issue a WHOA warning. The problem is that unistd.h
+# contains incorrect prototypes for some functions in the usual
+# BSD-ish environment. In particular, it has
+# extern int getgroups(/* int gidsetsize, gid_t grouplist[] */);
+# but groupslist[] ought to be of type int, not gid_t.
+# This is only really a problem for perl if the
+# user is using gcc, and not running in the SysV environment.
+# The gcc fix-includes script exposes those incorrect prototypes.
+# There may be other examples as well. Volunteers are welcome to
+# track them all down :-). In the meantime, we'll just skip unistd.h
+# for SunOS.
+i_unistd='undef'
+
+cat << 'EOM' >&4
+
+You will probably see *** WHOA THERE!!! *** messages from Configure for
+d_tzname and i_unistd. Keep the recommended values. See
+hints/sunos_4_1.sh for more information.
+EOM
+
# SunOS 4.1.3 has two extra fields in struct tm. This works around
# the problem. Other BSD platforms may have similar problems.
POSIX_cflags='ccflags="$ccflags -DSTRUCT_TM_HASZONE"'