From owner-freebsd-hackers Sun Oct 5 12:00:30 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA04510 for hackers-outgoing; Sun, 5 Oct 1997 12:00:30 -0700 (PDT) Received: from thelab.hub.org (ppp-146.halifax-01.ican.net [206.231.248.146]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA04500 for ; Sun, 5 Oct 1997 12:00:26 -0700 (PDT) Received: from thelab.hub.org (localhost [127.0.0.1]) by thelab.hub.org (8.8.7/8.8.2) with SMTP id QAA06827; Sun, 5 Oct 1997 16:00:10 -0300 (ADT) Date: Sun, 5 Oct 1997 16:00:10 -0300 (ADT) From: The Hermit Hacker To: Joerg Wunsch cc: hackers@FreeBSD.ORG Subject: Re: static vs dynamic compiling... In-Reply-To: <19971005134214.NH30632@uriah.heep.sax.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 5 Oct 1997, J Wunsch wrote: > As The Hermit Hacker wrote: > > > I'm curious as to why I get the following error when attempting > > to compile using -static: > > > > gcc -static pg_dump.o common.o -o pg_dump -L../../interfaces/libpq -lpq \ > > -L/usr/local/lib -lcrypt -lcompat -lln -lm -lreadline -ltermcap \ > > -lcurses > > ld: No reference to __DYNAMIC > > gmake: *** [pg_dump] Error 1 > > Because dlopen(3) & friends are only available on dynamically linked > binaries (in our a.out, as i understand it). Ack, okay. That explains it right there :( Marc G. Fournier Systems Administrator @ hub.org primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org