From: | "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: PGXS problem with pdftotext |
Date: | 2009-07-03 18:23:39 |
Message-ID: | 4A4E065B020000250002835B@gw.wicourts.gov |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
I cleaned up the poppler build situation, and all looks good except:
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> writes:
>> PG_CPPFLAGS =-I/usr/include/poppler -shared -fpic
>
> It doesn't seem appropriate to put -shared or -fpic into
> PG_CPPFLAGS. If you need those, the makefiles should add them
> automatically.
Leaving off -shared was OK, but when I left off -fpic, I got this:
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
poppler_compat.o: relocation R_X86_64_32 against `a local symbol' can
not be used when making a shared object; recompile with -fPIC
poppler_compat.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libpdftotext.so.0.0] Error 1
With -fPIC or -fpic in my Makefile, PGXS now seems to work as
intended. Is it worth doing anything to check on why that is needed
or how to get rid of it? Might it have something to do with compiling
both .c and .cc files?
-Kevin
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2009-07-03 18:25:05 | Re: pg_migrator mention in documentation |
Previous Message | Bruce Momjian | 2009-07-03 18:11:27 | Re: pg_migrator mention in documentation |