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 640834 - readlink in configure faulty in Mac OS X
readlink in configure faulty in Mac OS X
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: build
2.30.x
Other Mac OS
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-01-28 15:56 UTC by Peter Dyballa
Modified: 2018-02-15 14:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Peter Dyballa 2011-01-28 15:56:41 UTC
From configure run:

	checking whether to disable memory pools... no
	readlink: illegal option -- f
	usage: readlink [-n] [file ...]
	checking whether we are using the GNU C++ compiler... yes

In Mac OS X /usr/bin/readlink is *not* the complete GNU/FSF variant but that from NetBSD and it only understands the -n option.
Comment 1 Peter Dyballa 2011-11-27 11:40:09 UTC
With glib-2.30.2.tar.xz it happens again or still:

checking whether to disable memory pools... no
readlink: illegal option -- f
usage: readlink [-n] [file ...]
checking whether we are using the GNU C++ compiler... yes
Comment 2 Peter Dyballa 2011-11-30 16:24:53 UTC
The same happens on Mac OS X 10.5.8, Leopard.
Comment 3 Ryan Schmidt 2012-05-18 19:11:52 UTC
And on OS X 10.6.8 Snow Leopard, and presumably every other version of OS X past, present and future. I'm the maintainer of glib in MacPorts; this problem has always bugged me, since I don't know what glib is trying to check using readlink and what the implications are of it completely failing like this. Presumably not terrible, since glib has been in MacPorts for ten years already with this problem. But it should still be fixed; usage messages displayed during a configure run are unsettling.
Comment 4 Daniel Macks 2013-05-11 13:57:50 UTC
Related Bug #606872 (note, still same configure code-block as of glib-2.36.1)
Comment 5 Ryan Schmidt 2016-02-23 19:37:01 UTC
This was resolved in glib 2.47.6 which no longer uses readlink -f in the configure script.
Comment 6 Philip Withnall 2018-02-15 14:58:51 UTC
Yup, by commit 8c263008bbd9c1ce221276229e548d7b15dcb0d0.

⇒ FIXED