Re: pg_dump.o(.text+0xf82): undefined reference to - Mailing list pgsql-interfaces

From Peter Eisentraut
Subject Re: pg_dump.o(.text+0xf82): undefined reference to
Date
Msg-id Pine.LNX.4.44.0206032111280.1210-100000@localhost.localdomain
Whole thread Raw
In response to pg_dump.o(.text+0xf82): undefined reference to `getopt_long'  (Vicki Brown <vlb@cfcl.com>)
Responses Re: pg_dump.o(.text+0xf82): undefined reference to  (Vicki Brown <vlb@cfcl.com>)
List 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
failure.

> 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@gmx.net



pgsql-interfaces by date:

Previous
From: Bistey Csaba
Date:
Subject: lo_import problem under Windows+BCB5
Next
From: "isaac flemmin"
Date:
Subject: Linker Problems