Opened 15 years ago

Closed 13 years ago

#126 closed defect/bug (worksforme)

Setting NAVIT_LIBDIR is not platfrom neutral

Reported by: Meier Owned by: KaZeR
Priority: major Milestone: version 0.2.0
Component: core Version:
Severity: Keywords:
Cc: cmr@…


When i run navit on a 64-bit system it fails with the following error:

(process:10428): WARNING : can't load '/usr/lib/navit/*/lib*.so', Error '/usr/lib/navit/*/lib*.so: cannot open shared object file: No such file or directory'

The path is obviously wrong (it should be /usr/lib64/navit/*/lib*.so in my case). The code triggering this is in src/main.c line 144.

s=g_strdup_printf("%s/lib/navit", getenv("NAVIT_PREFIX"));

Assuming libdir is always $prefix/lib/ does not work. The configure settings i use are the default 64-bit settings for fedora/RedHat/CentOS as given by rpmbuilds %configure macro.

for example the %configure-definition from fedora 8 x86_64: rpm --eval %{configure}

CFLAGS="${CFLAGS:--O2 -g -m64 -mtune=generic}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -mtune=generic}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:--O2 -g -m64 -mtune=generic}" ; export FFLAGS ; ./configure --host=x86_64-redhat-linux-gnu --build=x86_64-redhat-linux-gnu \

--target=x86_64-redhat-linux \ --program-prefix= \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --datadir=/usr/share \ --includedir=/usr/include \ --libdir=/usr/lib64 \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --sharedstatedir=/usr/com \ --mandir=/usr/share/man \ --infodir=/usr/share/info

Change History (2)

comment:1 Changed 15 years ago by KaZeR

  • Milestone set to version 0.1.0
  • Owner changed from somebody to KaZeR
  • Status changed from new to assigned

comment:2 Changed 13 years ago by kazer

  • Resolution set to worksforme
  • Status changed from assigned to closed

This ticket is really old, please reopen if needed.

Note: See TracTickets for help on using tickets.