Date: Sun, 23 Aug 2020 12:35:04 -0700 From: David Wolfskill <david@catwhisker.org> To: freebsd-ports@freebsd.org Subject: x11-wm/piewm: "ld: error: duplicate symbol: yylineno" Message-ID: <20200823193504.GB5141@albert.catwhisker.org>
next in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200823193504.GB5141>