Re: Installation of 5.28.00b fails on 64-bit Mac OS X

From: Mojca Miklavec <mojca.miklavec.lists_at_gmail.com>
Date: Fri, 1 Apr 2011 18:49:21 +0200


(last part of previour message)

graf3d/gl/src/TGLTH3Composition.o graf3d/gl/src/TGLSAViewer.o graf3d/gl/src/TGLViewer.o graf3d/gl/src/G__GL.o -ldl /opt/local/lib -lftgl -Llib -lGLEW -L/opt/local/lib -lGLU -dylib_file /usr/X11R6/lib/libGL.dylib:/usr/X11R6/lib/libGL.dylib -L/opt/local/lib -lX11 -lm
> ld: in /opt/local/lib, can't map file, errno=22
> collect2: ld returned 1 exit status

After some googling I stumbled across the following sentence:

    errno 22 is "invalid argument", at least on the x86 architecture, so passing a directory when it expects a file would seem to be a likely cause.

Then I realized that the string contains

    -ldl /opt/local/lib
where /opt/local/lib is a lonely directory. First of all it is already included earlier in the command, but even if it was not, it should have been written as -L/opt/local/lib, not hanging in the air. If I add -L in front of /opt/local/lib then the last command works.

Where could that error come from?

Mojca Received on Fri Apr 01 2011 - 18:49:27 CEST

This archive was generated by hypermail 2.2.0 : Fri Apr 01 2011 - 23:50:01 CEST