- Previous thread: Re: [GENERAL] commercial adaptation of postgres
- Next thread: [GENERAL] Q: data modeling with inheritance
- Threads sorted by date: pgsql 200907
Tom Lane wrote:
> What do you get?
More to the point, here's what I get when I use PGXS with my pdf code.
sed 's,MODULE_PATHNAME,$libdir/pdftotext,g' pdftotext.sql.in
>pdftotext.sql
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -g -fpic -I/usr/local/include/poppler -I.
-I/usr/local/pgsql-8.3.7/include/server
-I/usr/local/pgsql-8.3.7/include/internal -D_GNU_SOURCE
-I/usr/include/libxml2 -c -o pdftotext.o pdftotext.c
g++ -I/usr/local/include/poppler -I.
-I/usr/local/pgsql-8.3.7/include/server
-I/usr/local/pgsql-8.3.7/include/internal -D_GNU_SOURCE
-I/usr/include/libxml2 -c -o poppler_compat.o poppler_compat.cc
ar crs libpdftotext.a pdftotext.o poppler_compat.o
ranlib libpdftotext.a
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -g -fpic -shared -Wl,-soname,libpdftotext.so.0 pdftotext.o
poppler_compat.o -L/usr/local/pgsql-8.3.7/lib -lpoppler
-Wl,-rpath,'/usr/local/pgsql-8.3.7/lib' -o libpdftotext.so.0.0
/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
Since the gcc line has it, it must be the g++ line that's the problem?
-Kevin
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
> What do you get?
More to the point, here's what I get when I use PGXS with my pdf code.
sed 's,MODULE_PATHNAME,$libdir/pdftotext,g' pdftotext.sql.in
>pdftotext.sql
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -g -fpic -I/usr/local/include/poppler -I.
-I/usr/local/pgsql-8.3.7/include/server
-I/usr/local/pgsql-8.3.7/include/internal -D_GNU_SOURCE
-I/usr/include/libxml2 -c -o pdftotext.o pdftotext.c
g++ -I/usr/local/include/poppler -I.
-I/usr/local/pgsql-8.3.7/include/server
-I/usr/local/pgsql-8.3.7/include/internal -D_GNU_SOURCE
-I/usr/include/libxml2 -c -o poppler_compat.o poppler_compat.cc
ar crs libpdftotext.a pdftotext.o poppler_compat.o
ranlib libpdftotext.a
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -g -fpic -shared -Wl,-soname,libpdftotext.so.0 pdftotext.o
poppler_compat.o -L/usr/local/pgsql-8.3.7/lib -lpoppler
-Wl,-rpath,'/usr/local/pgsql-8.3.7/lib' -o libpdftotext.so.0.0
/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
Since the gcc line has it, it must be the g++ line that's the problem?
-Kevin
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Conversations: [HACKERS] PGXS problem with pdftotext
- [HACKERS] PGXS problem with pdftotext by Kevin Grittner on 2009-07-02T20:21:22+00:00
- Re: [HACKERS] PGXS problem with pdftotext by Tom Lane on 2009-07-02T20:56:12+00:00
- Re: [HACKERS] PGXS problem with pdftotext by Kevin Grittner on 2009-07-02T21:03:53+00:00
- Re: [HACKERS] PGXS problem with pdftotext by Tom Lane on 2009-07-02T21:41:43+00:00
- Re: [HACKERS] PGXS problem with pdftotext by Dimitri Fontaine on 2009-07-03T06:16:23+00:00
- Re: [HACKERS] PGXS problem with pdftotext by Kevin Grittner on 2009-07-03T18:24:02+00:00
- Re: [HACKERS] PGXS problem with pdftotext by Tom Lane on 2009-07-03T18:45:25+00:00
- Re: [HACKERS] PGXS problem with pdftotext by Kevin Grittner on 2009-07-03T18:54:56+00:00
- Re: [HACKERS] PGXS problem with pdftotext by Kevin Grittner on 2009-07-03T19:02:44+00:00
- Re: [HACKERS] PGXS problem with pdftotext by Tom Lane on 2009-07-03T19:10:42+00:00
- Re: [HACKERS] PGXS problem with pdftotext by Tom Lane on 2009-07-03T19:12:46+00:00
- Re: [HACKERS] PGXS problem with pdftotext by Kevin Grittner on 2009-07-03T19:20:28+00:00
Related Threads
- sender-dependent relayhost map vs. relayhost parameter - postfix
- BSD mag - freebsd
- [PHP] Yeah I'm sortof a noob - php
- List Order of Initialization - python
- gcc-4.4-20081010 is now available - gcc
- understand the logs - debian
- [HACKERS] There's some sort of race condition with the new FSM stuff - pgsql
- Remove only TRAILING whitespace - ruby
- [Bug middle-end/37844] New: -floop-interchange leads to an ICE - gcc
- extract lines from text file and place in an array - ruby
- [PHP] Mysql search - php
- String Comparison Problems - ruby