[Bug 248859] x11-wm/piewm: [MAINTAINER] circumvent "ld: error: duplicate symbol: yylineno"
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Aug 23 20:37:26 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248859
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 at FreeBSD.org
Reporter: david at catwhisker.org
CC: dhw at FreeBSD.org
Created attachment 217466
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=217466&action=edit
Patch to x11-wm/piewm/Makefile to add the "-fcommon" flag.
pkg-fallout at 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 gc.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
-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+=-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/piewm).
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list