From nobody Fri Mar 25 22:12:40 2022 X-Original-To: ports-bugs@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 CE3921A2F453 for ; Fri, 25 Mar 2022 22:12:40 +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 4KQGYN14YJz3JMr for ; Fri, 25 Mar 2022 22:12:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 EEC57150A7 for ; Fri, 25 Mar 2022 22:12:39 +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 22PMCdO8079681 for ; Fri, 25 Mar 2022 22:12:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22PMCdNo079680 for ports-bugs@FreeBSD.org; Fri, 25 Mar 2022 22:12:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 262814] converters/wkhtmltopdf: fix build with clang 14, by future-proofing compiler version check Date: Fri, 25 Mar 2022 22:12:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None 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: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pi@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648246360; 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; bh=NNYn68psKQxiom61Jy91tOqiz1BVTSJD1cHQgoNbyNA=; b=hl04pDxzCYEHOW7e+cJ7aSBHV99FttIP8bNdk7wwFfnjWJN8mpGovfPPAlYfgNk5wA2rlA E3t7La9r8NOddL5Dnu7RQZGT+jOQpLop27x8NdXVBbS0JqrNEIUt1+x1W+q4rjxgQ82hd3 XP45zN3yNikMiUXYPfmd4HxA9CWYUe3tox/POOQ7ZX+1esNWDlP7amu7m77HA+yhnJp4Fz f8VAb9mOLx802A31pTjK4tGW2bOTQeSDPwoDyl3RL8OReLf0L6vnCNMAgdi/T4x3bCrCtX /kp9Pc3wL+zy8HxTHQXieJuHHfAfGqjV9L/fCE4hWazmDi1voTTVjYyy3gr+qw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648246360; a=rsa-sha256; cv=none; b=Tyh5377hb61/EnDrJcvm5V4ZAJDFWNjHEID/p0EJm0c/uZxLjlOU4VGr1ZckIOOAhkQncs XnejDCGgMbBzAyog6R5NpaFoMF3aFqCXlPnsy0dzH/O9DGlJNQ97vKR9Iy3Q5wZDJbrMzP 8NQFE86Fj/kSuMQQi1p/Chu40ADMLTP8cKFR+XkqcbWRb/viCkgLhWSpN2vrAqOWOnse9Y s6q2Bo/FcoAv4AdHVRsH8rojgXZBOj9IU9rlztxGgYPJDC71C8arpgYTmGGtKRWpVCc+i8 j/iClUEJu+vI1m06c53X1RpGs4UwwkTTgXUkNsg0M8U2wcKViSOtTdviMuyhZg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262814 Bug ID: 262814 Summary: converters/wkhtmltopdf: fix build with clang 14, by future-proofing compiler version check Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: pi@FreeBSD.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(pi@FreeBSD.org) Assignee: pi@FreeBSD.org During an exp-run for llvm 14 (see bug 261742), it turned out that converters/wkhtmltopdf fails to build with clang 14: c++ -Wl,-rpath=3D/usr/local/lib/gcc8 -Wl,-O1 -pthread -shared -Wl,-soname,libwkhtmltox.so.0 -o libwkhtmltox.so.0.12.6 loadsettings.o logging.o multipageloader.o tempfile.o converter.o websettings.o reflect.o utilities.o pdfsettings.o pdfconverter.o outline.o tocstylesheet.o imagesettings.o imageconverter.o pdf_c_bindings.o image_c_bindings.o moc_multipageloader_p.o moc_converter_p.o moc_pdfconverter_p.o moc_imageconverter_p.o moc_pdf_c_bindings_p.o moc_image_c_bindings_p.o moc_converter.o moc_multipageloader.o moc_utilities.o moc_pdfconverter.o moc_imageconverter.o qrc_wkhtmltopdf.o -L/usr/local/lib -L/wrkdirs/usr/ports/converters/wkhtmltopdf/work/wkhtmltopdf-0.12.6/build/q= t/lib -L/wrkdirs/usr/ports/converters/wkhtmltopdf/work/wkhtmltopdf-0.12.6/build/q= t/plugins/codecs -lqcncodecs -L/wrkdirs/usr/ports/converters/wkhtmltopdf/work/wkhtmltopdf-0.12.6/build/q= t/lib -L/usr/local/lib -lqjpcodecs -lqkrcodecs -lqtwcodecs -lQtWebKit -lQtSvg -lQtXmlPatterns -lQtGui -ljpeg -lpng -lXrender -lfontconfig -lfreetype -lXe= xt -lX11 -lQtNetwork -lssl -lcrypto -lQtCore -lz -lm ld: error: unable to find library -lQtWebKit c++: error: linker command failed with exit code 1 (use -v to see invocatio= n) gmake[2]: *** [Makefile:164: ../../bin/libwkhtmltox.so.0.12.6] Error 1 Ultimately this is caused by incorrect compiler version detection in wkhtmltopdf's configure script. Something similar was fixed for clang 12 in ports commit 1049d80399ac327964eca41e4188f988430c5f7c, and later for clang = 13 in ports commit ad5fedf36832fd7e2447d8c4cb6b54128a2fcb20. I would to propose fixing this for a long time, and for most possible versi= on numbers, so this exercise won't have to be repeated again and again if we upgrade compilers. :) --=20 You are receiving this mail because: You are the assignee for the bug.=