From nobody Mon May 29 13:35:50 2023 X-Original-To: ruby@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QVGkb0B7Zz4XnWT for ; Mon, 29 May 2023 13:35:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QVGkZ3XGVz3KlK for ; Mon, 29 May 2023 13:35:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685367350; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=g4RDWWpq/4NlwM/KiDF/qaNgrKWV+0FTwNsBxHOQ7To=; b=XBPX6lWLNlJmSsxK/Y0/LpGJeeOmjP+LbLQOg3BXiufd5clrr2ndO8D0K6qHiYYJBKt57V vSV/mnE+dWTBnteilJ9QFJGWTB8lN0ESxuHh6GXcyTPzrA2uSIW6Ekhx9VuOm3hsWvUNBX Y18Dcj3ic40hc5Er5gD5v20aOqOzsqviU9oFVnH/SHBfkCs1Fo4ocJfZ6pAmuOwp05CUJh N/xO9+hkqjUiwKgSIT7bD3scJUNgNJhlbBHXcJHDGysuZhLZWfkGkS/IQarkr8CMcAaYBT P8OArT3b1pfjY9cAsp3hTp3uq5padW56lnepjyQS9EAWqHI9IyY70L5o6Q4pIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685367350; a=rsa-sha256; cv=none; b=AjCuBPnwYf3qjdCXv6cZM6n89PssFYmoSQzGNkyoxG9XXbITz8FqUwapuywpzP00BM97U/ 11RciaCdbTCZsiNwkVlO0Jp7NW2GmUQ1gCXzIFI4m4tT2B3WJd/jbcmzmBps63yIAcijpC 0ljT+2Z37GNjTSJBGZVJ441CH/C1qkazYdhSmDz6CrAScECNS3LvlK21morKv+1nx9jrvF ckuo5Pd47Uo983qI0Lw3DprWMTyw3odWTD8x4ahDcCHvKW/jfTGXio6K1ce1tqCQP2UECW Fgv56Z6mx4gCgq4BGCA7J3DN2kFY8Yuooa5C/njTaOydtX2zkvyyHW1Yu485QA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QVGkZ2dkcz1CYZ for ; Mon, 29 May 2023 13:35:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 34TDZoG7076828 for ; Mon, 29 May 2023 13:35:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34TDZoJQ076827 for ruby@FreeBSD.org; Mon, 29 May 2023 13:35:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: ruby@FreeBSD.org Subject: maintainer-feedback requested: [Bug 271706] graphics/rubygem-cairo: fix build with clang 16 Date: Mon, 29 May 2023 13:35:50 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ruby@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Ruby discussions List-Archive: https://lists.freebsd.org/archives/freebsd-ruby List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ruby@freebsd.org X-BeenThere: freebsd-ruby@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N Bugzilla Automation has asked freebsd-ruby (Nobody) for maintainer-feedback: Bug 271706: graphics/rubygem-cairo: fix build with clang 16 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271706 --- Description --- Clang 16 has a new error about incompatible function types, which shows up when building graphics/rubygem-cairo: rb_cairo_surface.c:2354:3: error: incompatible function pointer types pas= sing 'VALUE (int, VALUE *, VALUE)' (aka 'unsigned long (int, unsigned long *, unsigned long)') to parameter of type 'VALUE (*)(VALUE, VALUE)' (aka 'unsig= ned long (*)(unsigned long, unsigned long)') [-Wincompatible-function-pointer-types] rb_define_method (rb_cCairo_GLSurface, "initialize", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/ruby-3.1/ruby/internal/anyargs.h:287:135: note: expand= ed from macro 'rb_define_method' #define rb_define_method(klass, mid, func, arity)=09=20=20=20=20=20 RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid), (func), (arity)) =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 ^~~~~~ /usr/local/include/ruby-3.1/ruby/internal/anyargs.h:276:1: note: passing argument to parameter here RBIMPL_ANYARGS_DECL(rb_define_method, VALUE, const char *) ^ /usr/local/include/ruby-3.1/ruby/internal/anyargs.h:255:72: note: expanded from macro 'RBIMPL_ANYARGS_DECL' RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _01(__VA_ARGS__, VALUE(*)(VALUE, VALUE), int); \ ^ rb_cairo_surface.c:2368:3: error: incompatible function pointer types pas= sing 'VALUE (int, VALUE *, VALUE)' (aka 'unsigned long (int, unsigned long *, unsigned long)') to parameter of type 'VALUE (*)(VALUE, VALUE)' (aka 'unsig= ned long (*)(unsigned long, unsigned long)') [-Wincompatible-function-pointer-types] rb_define_method (rb_cCairo_GLTextureSurface, "initialize", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/ruby-3.1/ruby/internal/anyargs.h:287:135: note: expand= ed from macro 'rb_define_method' #define rb_define_method(klass, mid, func, arity)=09=20=20=20=20=20 RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid), (func), (arity)) =09=09=09=09=09=09=09=09=09=20=20=20=20=20=20=20 ^~~~~~ /usr/local/include/ruby-3.1/ruby/internal/anyargs.h:276:1: note: passing argument to parameter here RBIMPL_ANYARGS_DECL(rb_define_method, VALUE, const char *) ^ /usr/local/include/ruby-3.1/ruby/internal/anyargs.h:255:72: note: expanded from macro 'RBIMPL_ANYARGS_DECL' RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _01(__VA_ARGS__, VALUE(*)(VALUE, VALUE), int); \ ^ This is because rb_define_method's last argument is the 'arity' of the method, and in case of cr_gl_surface_initialize() and cr_gl_texture_surface_initialize() it should be -1 to indicate a variable number of arguments.