Opened 15 years ago

Last modified 15 years ago

#1200 closed defect (fixed)

Openmodelica fails during configure on x86_64 because of symlink to /usr/lib64

Reported by: perob88 Owned by: perob88
Priority: high Milestone:
Component: Version:
Keywords: Cc: perob88,

Description

On x86_64 /usr/lib is a symlink to /usr/lib64. As a result the configure scripts fails to find ANTLR even though it's there. Chaning $antlrhome/lib to $antlrhome/lib/ in configure script solves the problem.

Here's what I did:

-antlrlib=find $antlrhome/lib -type f -name libantlr.a -print | head -1 | awk -F/ '{ total="";for (i = 1 ; i < NF; i++) total= total $i "/"; print total}'
+antlrlib=find $antlrhome/lib/ -type f -name libantlr.a -print | head -1 | awk -F/ '{ total="";for (i = 1 ; i < NF; i++) total= total $i "/"; print total}'

Now, I don't know if these are generated lines of code or not so the real problem may be elsewhere.

Change History (1)

comment:1 by Martin Sjölund, 15 years ago

The proper place to fix configure script problems is "configure.in", and then running autoconf. I fixed this on trunk though.
Also: On real x86_64 systems, lib64 is symlinked to lib :)

Note: See TracTickets for help on using tickets.