Date: Sun, 4 Aug 2013 17:31:50 GMT From: Gary Aitken <garya@dreamchaser.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/181021: x11-toolkits/open-motif fails to build because YY_MAIN undefined for wmluiltok.c Message-ID: <201308041731.r74HVoEK008846@oldred.freebsd.org> Resent-Message-ID: <201308041740.r74He0NH005973@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 181021 >Category: ports >Synopsis: x11-toolkits/open-motif fails to build because YY_MAIN undefined for wmluiltok.c >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 04 17:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Gary Aitken >Release: 9.1-RELEASE >Organization: >Environment: FreeBSD breakaway.dreamchaser.org 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #0: Sat Jul 27 01:14:23 UTC 2013 root@amd64-builder.daem onology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: x11-toolkits/open-motif will not build because the symbol YY_MAIN is not defined when compiling wmluiltok.c. As a consequence, the .o does not have the "main" entry point, and the link process fails with an undefined symbol, "main". /usr/lib/crt1.o: In function `_start': crt1.c:(.text+0x8a): undefined reference to `main >How-To-Repeat: cd /usr/ports/x11-toolkits/open-motif make .. Making all in wml gmake[2]: Entering directory `/usr/ports/x11-toolkits/open-motif/work/motif-2.3.4/tools/wml' cc -DHAVE_CONFIG_H -I. -I../../include -I../../lib/Xm -I../../lib -I./../../lib -I./../../include -I/usr/local/include -DCSRG_BASED -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI -I/usr/local/include -I/usr/local/include -O2 -pipe -fno-strict-aliasing -std=gnu89 -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter -DCSRG_BASED -DXNO_MTSAFE_API -DXNO_MTSAFE_PWDAPI -D_THREAD_SAFE -I/usr/local/include/freetype2 -I/usr/local/include -MT wmluiltok.o -MD -MP -MF .deps/wmluiltok.Tpo -c -o wmluiltok.o wmluiltok.c mv -f .deps/wmluiltok.Tpo .deps/wmluiltok.Po /bin/sh ../../libtool --tag=CC --mode=link cc -O2 -pipe -fno-strict-aliasing -std=gnu89 -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter -DCSRG_BASED -DXNO_MTSAFE_API -DXNO_MTSAFE_PWDAPI -D_THREAD_SAFE -I/usr/local/include/freetype2 -I/usr/local/include -L/usr/local/lib -o wmluiltok wmluiltok.o -lXp -liconv -L/usr/local/lib -lXft -lXrender -L/usr/local/lib -lXft -ljpeg -lpng >Fix: This is a work-around, not a fix; unfortunately, I don't know enough to fix it properly. Manually add the argument -DYY_MAIN to the compile to produce a .o which contains a "main" entry point. cd /usr/ports/x11-toolkits/open-motif/work/motif-2.3.4/tools/wml cc -DHAVE_CONFIG_H -I. -I../../include -I../../lib/Xm -I../../lib -I./../../lib -I./../../include -I/usr/local/include -DCSRG_BASED -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI -I/usr/local/include -I/usr/local/include -O2 -pipe -fno-strict-aliasing -std=gnu89 -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter -DCSRG_BASED -DXNO_MTSAFE_API -DXNO_MTSAFE_PWDAPI -D_THREAD_SAFE -DYY_MAIN -I/usr/local/include/freetype2 -I/usr/local/include -MT wmluiltok.o -MD -MP -MF .deps/wmluiltok.Tpo -c -o wmluiltok.o wmluiltok.c mv -f .deps/wmluiltok.Tpo .deps/wmluiltok.Po /bin/sh ../../libtool --tag=CC --mode=link cc -O2 -pipe -fno-strict-aliasing -std=gnu89 -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter -DCSRG_BASED -DXNO_MTSAFE_API -DXNO_MTSAFE_PWDAPI -D_THREAD_SAFE -I/usr/local/include/freetype2 -I/usr/local/include -L/usr/local/lib -o wmluiltok wmluiltok.o -lXp -liconv -L/usr/local/lib -lXft -lXrender -L/usr/local/lib -lXft -ljpeg -lpng >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308041731.r74HVoEK008846>