From owner-freebsd-questions@FreeBSD.ORG Fri Nov 2 04:45:55 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 74870D8D for ; Fri, 2 Nov 2012 04:45:55 +0000 (UTC) (envelope-from crankycyclops@gmail.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id 447EE8FC14 for ; Fri, 2 Nov 2012 04:45:55 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id bi1so2357473pad.13 for ; Thu, 01 Nov 2012 21:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=fvTlWOKbrOdj9vHkx1/FZylpPcbidApFAu8h5Kr9Kxs=; b=IQMm0gPX+sYjbrLwipjr+tQwsOajdGo/mKiXmmYuLPzYK4k3bvovXg9XhxcpN7I58r OMBJe6ycCe4xhZo3W4l7c9gJ6y4hvE9Nn3eueDURgpt8z8MAT+bR0VMyGD+v4FKE4QRn P07bg/1l1bE5phyf+7oXrZcPD2rIl0VIbnulJArbuLd26toyRobJ6OLvoM/LuXug4sQb xq+CvkuL0hUm+Az3muj5O3txAtU3VBeVIIsZ4vHHA5UdtMo6G5d7GIrcnZKoRYlH2Qdy EKP3w4h8YLQRIf35mIdipTCjoliEPXBlml7ijGJnCr02iJgBDFwygA3CZggysqsjz1WE eHnA== Received: by 10.68.190.71 with SMTP id go7mr2623270pbc.66.1351831549301; Thu, 01 Nov 2012 21:45:49 -0700 (PDT) Received: from [192.168.1.121] (cpe-76-172-144-79.socal.res.rr.com. [76.172.144.79]) by mx.google.com with ESMTPS id vs3sm5119947pbc.61.2012.11.01.21.45.47 (version=SSLv3 cipher=OTHER); Thu, 01 Nov 2012 21:45:47 -0700 (PDT) Message-ID: <50934F91.4030701@gmail.com> Date: Thu, 01 Nov 2012 21:44:01 -0700 From: James Colannino User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121014 Thunderbird/16.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Autotools, libraries and man pages: oh my! Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2012 04:45:55 -0000 Hey everyone, So, I have a question. I have Makefile.am, configure.in and a file called dstring.pc.in (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 Makefile.in, 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! James