Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
Summary: Linking against mingw32 libbzip2 fails
https://bugzilla.redhat.com/show_bug.cgi?id=811909
Summary: Linking against mingw32 libbzip2 fails
Product: Fedora
Version: 16
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: unspecified
Priority: unspecified
Component: mingw32-bzip2
AssignedTo: rjones(a)redhat.com
ReportedBy: yeti(a)physics.muni.cz
QAContact: extras-qa(a)fedoraproject.org
CC: lfarkas(a)lfarkas.org, rjones(a)redhat.com,
amorilia(a)users.sourceforge.net,
fedora-mingw(a)lists.fedoraproject.org
Classification: Fedora
Story Points: ---
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Description of problem:
Linking against the MinGW port of bzip2 fails. For start, code generated by
standard configure tests such as
AC_CHECK_LIB(bz2, BZ2_bzopen, ...)
fails.
Version-Release number of selected component (if applicable):
mingw32-bzip2-1.0.5-9.fc15
How reproducible:
Always.
Steps to Reproduce:
1. Create the following C code (essentially what configure creates as
conftest.c), calling it conftest.c:
char BZ2_bzopen ();
int main ()
{
return BZ2_bzopen ();
return 0;
}
2. Run
i686-pc-mingw32-gcc -o conftest.exe -g -O2 conftestc.c -lbz2
Actual results:
/home/yeti/tmp/ccEfyAbq.o: In function `main':
/home/yeti/xxx/conftest.c:5: undefined reference to `_BZ2_bzopen'
collect2: ld returned 1 exit status
Expected results:
It links and creates conftest.exe.
Additional info:
According to i686-pc-mingw32-nm, symbols in libbz2.dll.a bear extensions such
as @8, @10, etc., so BZ2_bzopen is there as _BZ2_bzopen@8.
--
Configure bugmail:
https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.