Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Nov 2012 21:44:01 -0700
From:      James Colannino <>
Subject:   Autotools, libraries and man pages: oh my!
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
Hey everyone,

So, I have a question.  I have, and a file
called (for a library of mine called dstring) for a
project.  It always built fine on Linux.  My home is now FreeBSD.  This
is the first time I've tried to compile/install this library since
moving away from Linux.  I'm able to use autotools on FreeBSD to
generate configure and, and can use gmake to compile and
install it.

Unfortunately, the man pages are installed to /usr/local/share/man
instead of to /usr/local/man, which I thought the tools would've taken
care of.  Also, even though I see my library was successfully compiled
and installed to /usr/local/lib, when I try to compile a program with
gcc source.c -ldstring, I get:

/usr/bin/ld: cannot find -ldstring

Other open source projects I've seen have installed fine on FreeBSD just
with the simple configure --prefix=/usr/local && make && make install. 
I'm not sure what's wrong with my own setup.

Disclaimer: I have no idea what I'm doing :)  Does anyone have a stab in
the dark that might help me fix these things?  I can send any of the
three files above if you need to see them.

Thanks so much everyone!


Want to link to this message? Use this URL: <>