Red Hat Bugzilla – Bug 102211
SRPM build fails reporting an undefined reference
Last modified: 2015-01-07 19:06:13 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686) Gecko/20030722 Galeon/1.3.7
Description of problem:
Upon performing the final linking, ncurses fails with the following message:
../lib/libncursesw.so: undefined reference to `__builtin_va_start'
collect2: ld returned 1 exit status
I have the following packages installed:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. see description
Actual Results: see description
Expected Results: I would expect a binary RPM to be produced.
Looks like you have a standard Red Hat Linux 9 updated with errata WITH THE
EXCEPTION of the compiler (current is 3.2.2-5).
Was able to rebuild the package using the supported packages.
Should there not be a BuildRequires in there somewhere specifying which package
is not the latest and greatest? I mean, theoretically - if my system passes all
BuildRequires it's supposed to build.
Your compiler is more recent than the current supported version. As for why it
didn't compile: this could be a bug in the later version of gcc, or it could be
that gcc has gotten "stricter" or more "correct" about linking requirements.
When we support a newer version of gcc, we will ensure that all of our packages
can be built with it.
> I mean, theoretically - if my system passes all BuildRequires it's supposed to
No-- there far more variables that affect whether or not something will build;
while we try our best to make packages as flexible as possible and build on as
many arches and even distros as possible, there's no way we can QA any package
outside of the "supported environment"-- as the amount of possibilities (flawed
packages from outside sources, etc) to test against would be infinite.