bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #34692] if multiple libobjc's exist, the use of AC_CHECK_FUNCS for


From: Eric Wasylishen
Subject: [bug #34692] if multiple libobjc's exist, the use of AC_CHECK_FUNCS for checking functions in libobjc can give wrong results
Date: Sun, 30 Oct 2011 23:37:09 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22

Follow-up Comment #2, bug #34692 (project gnustep):

Investigated a bit more, and the problem is not exactly what I though.

Within the section of configure.ac starting at:
# Check whether Objective-C /really/ works
where the Objective-C flags are added to LIBS/CPPFLAGS, we add the "-undefined
dynamic_lookup" flag on mac os x (c.f. target.make in gnustep-make). This flag
means something along the lines of, "the linker will not generate an error if
there are undefined symbols in the code being linked, but it will be a runtime
error."

As a result, any calls to AC_CHECK_FUNC in this section will pass. (e.g.
AC_CHECK_FUNC(SomeNonExistentFunction) passes). likewise, any use of
AC_LINK_IFELSE will pass.

Not sure what we should do about this.. we could either replace all of the
AC_CHECK_FUNC and AC_LINK_IFELSE with AC_RUN_IFELSE, or else disable the
"-undefined dynamic_lookup" flag for the configure tests.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34692>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]