RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 667979 - [openmotif] undefined reference to `main'
Summary: [openmotif] undefined reference to `main'
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: openmotif
Version: 6.4
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Thomas Woerner
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-07 15:03 UTC by Joachim Frieben
Modified: 2015-02-05 18:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-07 15:21:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Tail of compiler output for 'rpmbuild --rebuild openmotif-2.3.3-1.el6.src.rpm' (1.47 KB, text/plain)
2011-01-07 15:03 UTC, Joachim Frieben
no flags Details

Description Joachim Frieben 2011-01-07 15:03:48 UTC
Created attachment 472244 [details]
Tail of compiler output for 'rpmbuild --rebuild openmotif-2.3.3-1.el6.src.rpm'

Description of problem:
When building binary packages from openmotif-2.3.3-1.el6.src.rpm, then compilation aborts in openmotif-2.3.3/tools/wml/ with error message

(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status

Version-Release number of selected component (if applicable):
gcc-4.5.1-6.fc15.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Run 'rpmbuild --rebuild openmotif-2.3.3-1.el6.src.rpm'.
  
Actual results:
Compilation aborts because of undefined reference to `main'.

Expected results:
Compilation completes successfully.

Additional info:
- Build process completes successfully on F14.

Comment 1 Jakub Jelinek 2011-01-07 15:17:32 UTC
That error means main is not defined, that is very likely a package bug rather than a compiler bug.  Furthermore, there is almost zero difference between f14 and f15 gcc currently.  You need to track it down yourself, or at least provide a small self-contained testcase if you are still convinced afterwards it is a compiler bug.

Comment 2 Joachim Frieben 2011-01-08 12:11:32 UTC
On Fri 08 Oct 2010, it was possible to locally rebuild the Open Motif SRPM on a then current "rawhide" system - here the package info of the resulting binary package:

  Name        : openmotif
  Version     : 2.3.3
  Release     : 1.fc15
  Build Date: Fri 08 Oct 2010 03:13:04 PM CEST

This fact seems to contradict comment 1.

Comment 3 Joachim Frieben 2011-02-19 15:50:26 UTC
No compiler issue because even after backporting gcc (4.6.0), binutils, libtool and glibc from the F15 tree to an up to date F14 system, package openmotif-2.3.3-1.el6.src.rpm just rebuilds fine on said F14 machine.

Comment 4 Joachim Frieben 2012-03-06 16:24:57 UTC
libtool: link: cc -O2 -g -D_FILE_OFFSET_BITS=64 -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter -I/usr/include/freetype2 -o wmluiltok wmluiltok.o  -lXp -lXft -ljpeg -lpng
/usr/lib/gcc/x86_64-redhat-linux/4.7.0/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status

This issue is still present for openmotif-2.3.3-4.el6 when rebuilt for the current F17 development tree. Thomas, can you help to assign the bug correctly, please? I do know that this package is not meant to be rebuilt on any other platform than EL6 but in view of EL7, this issue is certainly of some interest for RH, too. Thanks!

Comment 6 Thomas Woerner 2012-03-07 15:21:21 UTC
This is not a RHEL-6 bug. Using RHEL-6 packages on Fedora might work, but is not supported. There is also no openmotif component for Fedora. Therefore I have to close this bug.

Closing as NOT A BUG.

BTW: You can add a build requirement for flex-static to fix the compile problem.

Comment 7 DHC 2015-02-05 18:31:21 UTC
This really is a bug.  The .spec file should list flex and flex-devel as a BuildRequires.  See newly opened bug 1189893.


Note You need to log in before you can comment on or make changes to this bug.