Bug 194074 - misc/getopt does not compile on i386 RELENG_9_1 RELENG_10_0
Summary: misc/getopt does not compile on i386 RELENG_9_1 RELENG_10_0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: i386 Any
: Normal Affects Some People
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-01 15:38 UTC by Vikash Badal
Modified: 2014-10-09 08:13 UTC (History)
2 users (show)

See Also:
vikashb: maintainer-feedback? (sunpoet)


Attachments
getopt-i386.patch (412 bytes, patch)
2014-10-01 18:32 UTC, TEUBEL György
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vikash Badal 2014-10-01 15:38:34 UTC
misc/getopt

===>  Building for getopt-1.1.5
gmake[1]: Entering directory `/usr/ports/misc/getopt/work/getopt-1.1.5'
cc -c  -DLIBCGETOPT=0 -DWITHOUT_GETTEXT=0 -DLOCALEDIR=\"/usr/local/share/locale\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"getopt\"  -Dprogram_version=\"1.1.5\" -I./gnu  -O2 -pipe -I/usr/local/include -fno-strict-aliasing getopt.c -o getopt.o
msgfmt -o po/ca.mo po/ca.po
msgfmt -o po/cs.mo po/cs.po
msgfmt -o po/da.mo po/da.po
msgfmt -o po/de.mo po/de.po
msgfmt -o po/es.mo po/es.po
msgfmt -o po/et.mo po/et.po
msgfmt -o po/eu.mo po/eu.po
msgfmt -o po/fi.mo po/fi.po
msgfmt -o po/fr.mo po/fr.po
msgfmt -o po/gl.mo po/gl.po
msgfmt -o po/hu.mo po/hu.po
msgfmt -o po/id.mo po/id.po
msgfmt -o po/it.mo po/it.po
msgfmt -o po/ja.mo po/ja.po
msgfmt -o po/nl.mo po/nl.po
msgfmt -o po/pl.mo po/pl.po
msgfmt -o po/pt_BR.mo po/pt_BR.po
msgfmt -o po/ru.mo po/ru.po
msgfmt -o po/sl.mo po/sl.po
msgfmt -o po/sv.mo po/sv.po
msgfmt -o po/tr.mo po/tr.po
msgfmt -o po/uk.mo po/uk.po
msgfmt -o po/vi.mo po/vi.po
msgfmt -o po/zh_CN.mo po/zh_CN.po
msgfmt -o po/zh_TW.mo po/zh_TW.po
cc  -L/usr/local/lib -lintl -o getopt getopt.o gnu/getopt.o gnu/getopt1.o
gnu/getopt.o: file not recognized: File format not recognized
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [getopt] Error 1
gmake[1]: Leaving directory `/usr/ports/misc/getopt/work/getopt-1.1.5'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/misc/getopt


compiles with out any issue on amd64
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-10-01 15:38:34 UTC
Auto-assigned to maintainer sunpoet@FreeBSD.org
Comment 2 TEUBEL György 2014-10-01 18:32:20 UTC
Created attachment 147893 [details]
getopt-i386.patch

The source package contains two .o files in the gnu subdir and their's modification daet is later than the corresponding .c files, so make won't recompile the .c file. These .o files are x86-64 format, so the compiler does not accept them for i386 target.
Comment 3 commit-hook freebsd_committer freebsd_triage 2014-10-01 20:16:38 UTC
A commit references this bug:

Author: sunpoet
Date: Wed Oct  1 20:16:17 UTC 2014
New revision: 369764
URL: https://svnweb.freebsd.org/changeset/ports/369764

Log:
  - Cleanup *.o from tarball

  PR:		ports/194074
  Submitted by:	Vikash Badal <vikashb@where-ever.za.net>

Changes:
  head/misc/getopt/Makefile
Comment 4 Po-Chuan Hsieh freebsd_committer freebsd_triage 2014-10-01 20:17:14 UTC
Committed. Thanks!
Comment 5 kpaasial 2014-10-01 21:18:50 UTC
The patch is otherwise ok but WRKSRC is mispelled as WKRSRC. If changed to the proper WRKSRC the port builds fine.
Comment 6 commit-hook freebsd_committer freebsd_triage 2014-10-09 08:13:49 UTC
A commit references this bug:

Author: antoine
Date: Thu Oct  9 08:13:18 UTC 2014
New revision: 370508
URL: https://svnweb.freebsd.org/changeset/ports/370508

Log:
  MFH r369809
  - Fix typo

  MFH r369764
  - Cleanup *.o from tarball
  PR:             ports/194074
  Submitted by:   Vikash Badal <vikashb@where-ever.za.net>

Changes:
_U  branches/2014Q4/
  branches/2014Q4/misc/getopt/Makefile