waqasbhatti / sdssidl

Automatically exported from code.google.com/p/sdssidl
0 stars 0 forks source link

cannot compile pgsql_query.c; cannot find libpq-fe.h #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using? On what operating system?

1.6.1 on MacOS 10.6.4

I have installed postgresql 8.3 using fink

rgm@caml18-2(/sw/include/postgresql){147}> locate  libpq-fe.h 
/sw/include/postgresql/libpq-fe.h

When a run make, I get this error.

Making pgsql
gcc -I/Applications/itt/idl70/external/include -Wall -dynamic -m64 
-I/sw/include   -c -o pgsql_query.o pgsql_query.c
pgsql_query.c:67:22: error: libpq-fe.h: No such file or directory
In file included from pgsql_query.c:71:
pgsql_query.h:108: error: expected ‘)’ before ‘*’ token
pgsql_query.h:157: error: expected ‘)’ before ‘*’ token
pgsql_query.h:161: error: expected ‘)’ before ‘*’ token
pgsql_query.h:170: error: expected ‘)’ before ‘*’ token
pgsql_query.c: In function ‘IDL_Load’:
pgsql_query.c:151: warning: missing braces around initializer
pgsql_query.c:151: warning: (near initialization for 
‘function_addr[0].funct_addr’)
make[2]: *** [pgsql_query.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2

Please provide any additional information below.

For info I have managed to get 

 psycopg2 compiled and working with fink and python2.6

psycopg2 faq mentions similar problems

In the 
http://initd.org/psycopg/docs/faq.html#problems-compiling-psycopg-from-source

Original issue reported on code.google.com by richardgmcmahon@gmail.com on 18 Jul 2010 at 3:14

GoogleCodeExporter commented 9 years ago
Hi Richard -

Sorry, I didn't see this bug report until now. I guess for some reason it isn't 
mailing me these, I'll try to fix.

I haven't been using the (configure,make,make install) recently.  Also, I am no 
longer using a mac.  Can you try installing scons via fink and using the scons 
to compile the code?

Original comment by erin.sheldon@gmail.com on 29 Sep 2010 at 1:37