Skip site navigation (1) Skip section navigation (2)

Re: pg_dump.o(.text+0xf82): undefined reference to

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Vicki Brown <vlb(at)cfcl(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: pg_dump.o(.text+0xf82): undefined reference to
Date: 2002-06-04 19:58:45
Message-ID: Pine.LNX.4.44.0206032111280.1210-100000@localhost.localdomain (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
Vicki Brown writes:

> I ran
>   ./configure --with-perl
>   gmake
> I got to a point that complained about
>   getopt.h: file not found

I would like to see the exact output on the screen together with some
context.  Not having a getopt.h file is not necessarily a reason for

> I located
>    /usr/src/contrib/binutils/include/getopt.h
> and copied it to /usr/include

You can't just copy files around and hope things will work.

> pg_dump.o: In function `main':
> pg_dump.o(.text+0xf82): undefined reference to `getopt_long'
> gmake[3]: *** [pg_dump] Error 1
> gmake[3]: Leaving directory

... 'coz they won't.

> getopt_long is defined in the getopt.h I copied.

Declared, not defined.  That's the problem.

Peter Eisentraut   peter_e(at)gmx(dot)net

In response to


pgsql-interfaces by date

Next:From: Vicki BrownDate: 2002-06-04 20:11:10
Subject: Re: pg_dump.o(.text+0xf82): undefined reference to
Previous:From: Bistey CsabaDate: 2002-06-03 13:18:56
Subject: lo_import problem under Windows+BCB5

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group