Re: PGXS problem with pdftotext

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: PGXS problem with pdftotext
Дата
Msg-id 4A4E065B020000250002835B@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: PGXS problem with pdftotext  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: PGXS problem with pdftotext  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I cleaned up the poppler build situation, and all looks good except:
Tom Lane <tgl@sss.pgh.pa.us> wrote: 
> "Kevin Grittner" <Kevin.Grittner@wicourts.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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_migrator mention in documentation
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: pg_migrator mention in documentation