pkgsrc-Users archive

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

Re: Patch for seamonkey-2.53.2nb5



A third patch is needed for sparc64 for the www/seamonkey to  finally build:

__sparc64__ is missing in the definition of CURL_SIZEOF_LONG

bash-5.0# diff -u curlbuild.h.broken curlbuild.h
--- curlbuild.h.broken  2020-09-01 10:50:32.734526345 +0200
+++ curlbuild.h 2020-09-01 10:51:17.511976545 +0200
@@ -155,7 +155,7 @@

 /* The size of `long', as computed by sizeof. */
 #if defined(_M_X64) || (defined(__x86_64__) && !defined(__ILP32__)) ||      \
-    defined(__aarch64__) || (defined(__mips__) && _MIPS_SIM == _ABI64)
+    defined(__aarch64__) || defined(__sparc64__) ||
(defined(__mips__) && _MIPS_SIM == _ABI64)
 #define CURL_SIZEOF_LONG 8
 #else
 #define CURL_SIZEOF_LONG 4


Otherwise it will print this errors during compilation:

gmake[3]: Entering directory
'/usr/pkgsrc/www/seamonkey/work/build/toolkit/components/telemetry/pingsender'
/usr/pkgsrc/www/seamonkey/work/.cwrapper/bin/c++ -o
Unified_cpp_pingsender0.o -c
-I/usr/pkgsrc/www/seamonkey/work/build/dist/system_wrappers -include
/usr/pkgsrc/www/seamonkey/work/seamonkey-2.53.2/mozilla/config/gcc_hidden.h
-DNDEBUG=1 -DTRIMMED=1 -DMOZ_HAS_MOZGLUE
-I/usr/pkgsrc/www/seamonkey/work/seamonkey-2.53.2/mozilla/toolkit/components/telemetry/pingsender
-I/usr/pkgsrc/www/seamonkey/work/build/toolkit/components/telemetry/pingsender
-I/usr/pkgsrc/www/seamonkey/work/seamonkey-2.53.2/mozilla/toolkit/crashreporter/google-breakpad/src
-I/usr/pkgsrc/www/seamonkey/work/build/dist/include
-I/usr/pkg/include/nspr -I/usr/pkg/include/nss -I/usr/pkg/include/nspr
-I/usr/pkgsrc/www/seamonkey/work/build/dist/include/nss
-I/usr/X11R7/include/pixman-1 -fPIC -DPIC -DMOZILLA_CLIENT -include
/usr/pkgsrc/www/seamonkey/work/build/mozilla-config.h
-DPNG_NO_ASSEMBLER_CODE -I/usr/pkg/include -I/usr/pkg/include/glib-2.0
-I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include
-I/usr/include -I/usr/pkg/include/nspr -I/usr/pkg/include/nss/nss
-I/usr/X11R7/include -I/usr/X11R7/include/libdrm
-I/usr/pkg/include/ffmpeg4 -I/usr/X11R7/include/freetype2 -Wall
-Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith
-Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings
-Wno-invalid-offsetof -Wc++1z-compat -Wduplicated-cond
-Wimplicit-fallthrough -Wno-error=maybe-uninitialized
-Wno-error=deprecated-declarations -Wno-error=array-bounds
-Wno-error=free-nonheap-object -Wformat -Wformat-overflow=2 -O2
-D_FORTIFY_SOURCE=2 -I/usr/X11R7/include/pixman-1 -I/usr/pkg/include
-I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0
-I/usr/pkg/lib/glib-2.0/include -I/usr/include -I/usr/pkg/include/nspr
-I/usr/pkg/include/nss/nss -I/usr/X11R7/include
-I/usr/X11R7/include/libdrm -I/usr/pkg/include/ffmpeg4
-I/usr/X11R7/include/freetype2 -fno-exceptions -fno-strict-aliasing
-Dunix -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe
-I/usr/pkg/include -g -O2 -fomit-frame-pointer   -MD -MP -MF
.deps/Unified_cpp_pingsender0.o.pp
/usr/pkgsrc/www/seamonkey/work/build/toolkit/components/telemetry/pingsender/Unified_cpp_pingsender0.cpp

In file included from
/usr/pkgsrc/www/seamonkey/work/seamonkey-2.53.2/mozilla/toolkit/crashreporter/google-breakpad/src/third_party/curl/curl.h:44:0,
                 from
/usr/pkgsrc/www/seamonkey/work/seamonkey-2.53.2/mozilla/toolkit/components/telemetry/pingsender/pingsender_unix_common.cpp:13,
                 from
/usr/pkgsrc/www/seamonkey/work/build/toolkit/components/telemetry/pingsender/Unified_cpp_pingsender0.cpp:11:
/usr/pkgsrc/www/seamonkey/work/seamonkey-2.53.2/mozilla/toolkit/crashreporter/google-breakpad/src/third_party/curl/curlrules.h:144:41:
error: size of array '__curl_rule_01__' is negative
     [CurlchkszEQ(long, CURL_SIZEOF_LONG)];
                                         ^
/usr/pkgsrc/www/seamonkey/work/seamonkey-2.53.2/mozilla/toolkit/crashreporter/google-breakpad/src/third_party/curl/curlrules.h:154:53:
error: size of array '__curl_rule_02__' is negative
     [CurlchkszEQ(curl_off_t, CURL_SIZEOF_CURL_OFF_T)];
                                                     ^
gmake[3]: *** [/usr/pkgsrc/www/seamonkey/work/seamonkey-2.53.2/mozilla/config/rules.mk:1048:
Unified_cpp_pingsender0.o] Error 1
gmake[3]: Leaving directory
'/usr/pkgsrc/www/seamonkey/work/build/toolkit/components/telemetry/pingsender'
gmake[2]: *** [/usr/pkgsrc/www/seamonkey/work/seamonkey-2.53.2/mozilla/config/recurse.mk:73:
toolkit/components/telemetry/pingsender/target] Error 2


Home | Main Index | Thread Index | Old Index