From owner-freebsd-ports@freebsd.org Sun Aug 23 19:35:10 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 805883C5C23 for ; Sun, 23 Aug 2020 19:35:10 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mx.catwhisker.org (mx.catwhisker.org [107.204.234.170]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4BZQSr5285z42kJ for ; Sun, 23 Aug 2020 19:35:06 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.16.1/8.15.2) with ESMTP id 07NJZ4rV008278 for ; Sun, 23 Aug 2020 19:35:04 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.16.1/8.16.1/Submit) id 07NJZ4ZB008277 for freebsd-ports@freebsd.org; Sun, 23 Aug 2020 12:35:04 -0700 (PDT) (envelope-from david) Date: Sun, 23 Aug 2020 12:35:04 -0700 From: David Wolfskill To: freebsd-ports@freebsd.org Subject: x11-wm/piewm: "ld: error: duplicate symbol: yylineno" Message-ID: <20200823193504.GB5141@albert.catwhisker.org> Reply-To: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7iMSBzlTiPOCCT2k" Content-Disposition: inline X-Rspamd-Queue-Id: 4BZQSr5285z42kJ X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of david@catwhisker.org designates 107.204.234.170 as permitted sender) smtp.mailfrom=david@catwhisker.org X-Spamd-Result: default: False [2.49 / 15.00]; HAS_REPLYTO(0.00)[freebsd-ports@freebsd.org]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[david]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:107.204.234.170]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_SHORT(-0.11)[-0.108]; DMARC_NA(0.00)[catwhisker.org]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:7018, ipnet:107.192.0.0/12, country:US]; MAILMAN_DEST(0.00)[freebsd-ports]; REPLYTO_EQ_TO_ADDR(5.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Aug 2020 19:35:11 -0000 --7iMSBzlTiPOCCT2k Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 23, 2020 at 06:39:10PM +0000, pkg-fallout@FreeBSD.org wrote: > You are receiving this mail as a port that you maintain > is failing to build on the FreeBSD package build server. > Please investigate the failure and submit a PR to fix > build. >=20 > Maintainer: david@catwhisker.org > Last committer: swills@FreeBSD.org > Ident: $FreeBSD: head/x11-wm/piewm/Makefile 519608 2019-12-09 13= :47:16Z swills $ > Log URL: http://beefy18.nyi.freebsd.org/data/head-amd64-default/p5= 45731_s364466/logs/piewm-1.04_4.log > Build URL: http://beefy18.nyi.freebsd.org/build.html?mastername=3Dhe= ad-amd64-default&build=3Dp545731_s364466 > ... > --- piewm --- > rm -f piewm > cc -o piewm -L/usr/local/lib gram.o lex.o deftwmrc.o add_window.o= gc.o list.o twm.o parse.o menus.o events.o resize.o util.o version.o ico= nmgr.o cursor.o icons.o vdt.o move.o LocPixmap.o -lXmu -lXt -lSM -lICE -l= Xext -lX11 -lXt -lSM -lICE -lXext -lXext -lX11 -lm -ll -lXpm -Wl,-rpat= h,/usr/local/lib > ld: error: duplicate symbol: yylineno > >>> defined at gram.c > >>> gram.o:(yylineno) > >>> defined at lex.c > >>> lex.o:(.data+0x0) > cc: error: linker command failed with exit code 1 (use -v to see invocati= on) > *** [piewm] Error code 1 >=20 > make[1]: stopped in /wrkdirs/usr/ports/x11-wm/piewm/work/piewm-1.04 > 1 error >=20 > make[1]: stopped in /wrkdirs/usr/ports/x11-wm/piewm/work/piewm-1.04 > =3D=3D=3D> Compilation failed unexpectedly. > Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failur= e to > the maintainer. > *** Error code 1 >=20 > Stop. > make: stopped in /usr/ports/x11-wm/piewm So... I confess a lack of familiarity with lex, yacc, and their work-alikes. It also appears that x11-wm/tvtwm (for which MAINTAINER is this list -- ports@FreeBSD.org) is likely similarly affected. I understand that the immediate cause is a recent change; in http://docs.FreeBSD.org/cgi/mid.cgi?B7F9F85B-60A4-4A87-9911-BDE1CBC7BC91, dim@ mentioned: | This is because clang 11 (and gcc 10) now default to -fno-common. The | rationale is explained pretty well in... and goes on to state: | A quick fix is to add CFLAGS+=3D-fcommon to your make.conf, but that is | rather a big hammer. It is better to add it to just the ports that show | problems due to duplicated symbols. And ideally, those duplicated | symbols should be patched out of the ports. So: apparently *a* way around this is to change the Makefile (to include 'CFLAGS+=3D-fcommon') -- but I don't know if a "better" approach is feasible: we are dealing with some rather old (or, perhaps, "well-established") code, here. Advice/suggestions? Thanks! Peace, david --=20 David H. Wolfskill david@catwhisker.org "Those countries that have lost control of the virus like the United States are seeing economic forecasts constantly revised down and are weaker economically." -- Dominick Stephens, Westpac NZ's chief economist See http://www.catwhisker.org/~david/publickey.gpg for my public key. --7iMSBzlTiPOCCT2k Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEE4owz2QxMJyaxAefyQLJg+bY2PckFAl9CxOhfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUy OEMzM0Q5MEM0QzI3MjZCMTAxRTdGMjQwQjI2MEY5QjYzNjNEQzkACgkQQLJg+bY2 PclGLAf/UxMFI/LvKM8fuOwfRPE2nM4fdmVJ2U39H+9WxGl/D4Hr+hH935geglfZ n638bp4084U6EgEqf88o1EMgFYvIi8LQXax3AsiPNr05SEzfOYB/oAOZBpnfuxc3 hjtbnQwom0awVEGSqmJqxS5STgL5feITSAx41pC4DOIv4lwnUuy+KiiKDcaOhYve 4aXwW5M0Ncx4Qu0sPeeNBa9YIWb1Tw6ZU7+kdOb6heEfoH1deAxaBX2/P6r4xVu5 T8iCwd58O+WJOe5WAmcCCmb2hCOdi0GsdYAwzfGHKN+h5ILT2eF6zWWNQIOpL2Xk w7XS5oHrVX/tE/vdE7jy/dGMd0gOow== =WH7K -----END PGP SIGNATURE----- --7iMSBzlTiPOCCT2k--