[Expired for postgresql-9.1 (Ubuntu) because there has been no activity
for 60 days.]
** Changed in: postgresql-9.1 (Ubuntu)
Status: Incomplete => Expired
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.n
> Oh, can you please try with
>
> gcc -I$(pg_config --includedir) -L$(pg_config --libdir)
> test_postgres.c -lpq
Putting -lpq after the .c file name fixes it.
But it'll still be a problem for Makefiles that append -lpq to LDFLAGS.
That worked on natty but at a minimum Makefiles will have to be
Oh, can you please try with
gcc -I$(pg_config --includedir) -L$(pg_config --libdir)
test_postgres.c -lpq
?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1068150
Title:
programs do not link again
I ran the above gcc under strace: strace -f gcc -I$(pg_config
--includedir) -L$(pg_config --libdir) -lpq test_postgres.c 2> strace.txt
** Attachment added: "strace output"
https://bugs.launchpad.net/ubuntu/+source/postgresql-9.1/+bug/1068150/+attachment/3403637/+files/strace.txt.gz
--
You re
eehouse@trand:~/tmp$ cat test_postgres.c
#include
#include
int main( int argc, char** argv )
{
PQfinish(NULL);
exit(1);
}
eehouse@trand:~/tmp$ gcc -I$(pg_config --includedir) -L$(pg_config --libdir)
-lpq test_postgres.c
/tmp/ccIwPp4g.o: In function `main':
test_postgres.c:(.text+0x11):
This works fine for me on current precise. Can you please tell me what
actually goes wrong? (Error messages, etc.)
** Changed in: postgresql-9.1 (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
I can repro this on a precise system upgraded from natty and one
installed from scratch, so don't think the postgres upgrade to 9.1 is at
fault.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1068150
T