Skip to main content.

2001-Oct-04

In regards to yesterday, N. Hudson suggested that I "hack libtool and remove the reference to /usr/local/lib". So, I modified ../libogg/work/libogg-1.0rc2/libtool to remove the '/usr/local/lib' from three lines. Then libvorbis built clean.

I just noticed that was a symlink to /usr/pkg/bin/libtool. (Why was I doing this as root!) Oh well. I guess I wanted to do that anyways.

But my new pkg/bin/ogg123 was using wrong library. I was told to read the ELF FAQ and the ld.so.conf manual page. I removed the /usr/local entries from /etc/ld.so.conf and the package version works but not the /usr/local version. If I want the /usr/local/bin/ogg123 to use the correct library, I should rebuild it using ld's -R option to tell it what path to try for the libs. (LD_LIBRARY_PATH=/usr/local/lib also works.)