Date: Sun, 23 Aug 2020 20:37:24 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 248859] x11-wm/piewm: [MAINTAINER] circumvent "ld: error: duplicate symbol: yylineno" Message-ID: <bug-248859-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248859 Bug ID: 248859 Summary: x11-wm/piewm: [MAINTAINER] circumvent "ld: error: duplicate symbol: yylineno" Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: david@catwhisker.org CC: dhw@FreeBSD.org Created attachment 217466 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D217466&action= =3Dedit Patch to x11-wm/piewm/Makefile to add the "-fcommon" flag. pkg-fallout@FreeBSD.org informs me that x11-wm/piewm is now failing to link under recent FreeEBSD head with the whine: ... --- piewm --- rm -f piewm cc -o piewm -L/usr/local/lib gram.o lex.o deftwmrc.o add_window.o g= c.o list.o twm.o parse.o menus.o events.o resize.o util.o version.o iconmgr.o cursor.o icons.o vdt.o move.o LocPixmap.o -lXmu -lXt -= lSM -lICE -lXext -lX11 -lXt -lSM -lICE -lXext -lXext -lX11 -lm -ll -lXpm=20=20= =20=20=20 -Wl,-rpath,/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 invocation) *** [piewm] Error code 1 make[1]: stopped in /wrkdirs/usr/ports/x11-wm/piewm/work/piewm-1.04 1 error I confess that I don't know enough about actually using lex, yacc, and their work-alikes to "un-duplicate" yylineno. I can, however, patch the port's Makefile to include "CFLAGS+=3D-fcommon", so that's what I'm doing for now. Note: I strongly suspect that x11-wm/tvtwm is similarly affected (and that = if a "real fix" is put forth for it, that a similar fix will apply to x11-wm/pie= wm). --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248859-7788>