pkgsrc-Bugs archive

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

pkg/56336: m4 fails to build on Solaris 10



>Number:         56336
>Category:       pkg
>Synopsis:       m4 fails to build on Solaris 10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 29 23:40:00 +0000 2021
>Originator:     Hiroshi Hakoyama
>Release:        pkgsrc current
>Organization:
Institute of Freshwater Biology, Nagano University
>Environment:
SunOS ec21 5.10 Generic_147147-26 sun4u sparc SUNW,Sun-Blade-1000
>Description:
m4 was updated to m4-1.4.19 and a build error occured.

# cd /usr/pkgsrc/devel/m4
# make
...
  CC       stackvma.o
In file included from stackvma.c:1476:0:
/usr/include/sys/procfs.h:44:2: error: #error "Cannot use procfs in the large file compilation environment"
 #error "Cannot use procfs in the large file compilation environment"
  ^
*** Error code 1
...

This error is similar to the report at 
https://lists.gnu.org/r/bug-m4/2021-05/msg00020.html
https://lists.gnu.org/r/bug-m4/2021-05/txtSlhgMVQhua.txt

So, I patched ./lib/stackvma.c like:

--- lib/stackvma.c.orig
+++ lib/stackvma.c
@@ -17,6 +17,10 @@
 
 #include <config.h>
 
+#if defined __sun || defined __ANDROID__
+# undef _FILE_OFFSET_BITS
+#endif
+
 /* Specification.  */
 #include "stackvma.h"

m4 was able to built by this patch, but the execution of m4 showed an error:

# ./m4
*** stack smashing detected ***:  terminated
./m4: internal error detected; please report this bug to <bug-m4%gnu.org@localhost>: Illegal instruction

# /usr/pkgsrc/devel/m4/work/.destdir/usr/pkg/bin/gm4 
*** stack smashing detected ***:  terminated
/usr/pkgsrc/devel/m4/work/.destdir/usr/pkg/bin/gm4: internal error detected; please report this bug to <bug-m4%gnu.org@localhost>: Illegal instruction

>How-To-Repeat:
(1)
# cd /usr/pkgsrc/devel/m4
# make

(2)

patch stackvma.c

--- lib/stackvma.c.orig
+++ lib/stackvma.c
@@ -17,6 +17,10 @@
 
 #include <config.h>
 
+#if defined __sun || defined __ANDROID__
+# undef _FILE_OFFSET_BITS
+#endif
+
 /* Specification.  */
 #include "stackvma.h"

# cd /usr/pkgsrc/devel/m4
# make


>Fix:
unknown



Home | Main Index | Thread Index | Old Index