Re: PGXS problem with pdftotext - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PGXS problem with pdftotext
Date
Msg-id 19547.1246568149@sss.pgh.pa.us
Whole thread Raw
In response to PGXS problem with pdftotext  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: PGXS problem with pdftotext  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Re: PGXS problem with pdftotext  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-hackers
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> PG_CPPFLAGS =-I/usr/include/poppler -shared -fpic
> SHLIB_LINK = -lpoppler -L/usr/local/lib

It doesn't seem appropriate to put -shared or -fpic into PG_CPPFLAGS.
If you need those, the makefiles should add them automatically.

The other thing that seems peculiar is looking for the include files
in /usr/include and the library in /usr/local/lib.  I've never
seen any package install itself like that --- either everything goes
under /usr/local or nothing does.  I suspect you might have two
incompatible poppler installations on the machine and you're picking
up the wrong combination of files.

Running ldd or local equivalent on pdftotext.so might help you determine
what's going on as far as finding the library goes.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: bug in Google translate snippet
Next
From: "Kevin Grittner"
Date:
Subject: Re: PGXS problem with pdftotext