After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 428375 - Broken AC_TRY_RUN program makes ./configure fail
Broken AC_TRY_RUN program makes ./configure fail
Status: RESOLVED DUPLICATE of bug 388789
Product: evolution-data-server
Classification: Platform
Component: general
1.10.x (obsolete)
Other All
: Normal blocker
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2007-04-10 20:39 UTC by Eric Anholt
Modified: 2007-04-11 20:42 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Eric Anholt 2007-04-10 20:39:21 UTC
Please describe the problem:
While trying to track down yet another use-before-initialize bug in evo, I decided to update to evolution-data-server 1.10.1 hoping it was already fixed.  However, that version fails at configure in the iconv test.  The code does:

AC_TRY_RUN([
#include <iconv.h>

int main (int argc, char **argv)
{
	iconv_t cd;
	cd = iconv_open ("UTF-8", "ISO-8859-1");
}
], ac_cv_libiconv=yes, ac_cv_libiconv=no, ac_cv_libiconv=no)

Checking the return code of a program which doesn't bother returning any value from main() gets you all the results you expect.  Of course, doing a TRY_RUN for just checking which library iconv_open() is in is dubious anyway.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 André Klapper 2007-04-11 19:51:25 UTC
reopening bug 388789, copying your comment here to bug 388789, and adding you to the CC list of bug 388789.

*** This bug has been marked as a duplicate of 388789 ***
Comment 2 Elijah Newren 2007-04-11 20:42:00 UTC
(Technically this was a duplicate of bug 388788, not 388789.  But, whatever.)