From: | Alex Pilosov <alex(at)pilosoft(dot)com> |
---|---|
To: | Luiz Fernando Sodré <luiz(dot)sodre(at)globo(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Compiling Perl code |
Date: | 2001-02-05 20:25:47 |
Message-ID: | Pine.BSO.4.10.10102051524340.8607-100000@spider.pilosoft.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Generally, you should read ample documentation on perlcc, warnings
included with it about linking with XS code, etc.
-alex
On Mon, 29 Jan 2001, Luiz Fernando [iso-8859-1] Sodr wrote:
>
> Hi!
>
> I'm trying to generate a executable code from a code written in Perl
> that uses the Pg module. I'm using the program 'perlcc' to do this. But
> all times that I try to compile my code a error message is going on
> breaking the compilation.
>
> It's showing this message:
>
> /tmp/cc3NRQ16.o(.data+0xd738): undefined reference to `XS_Pg_PQlo_lseek'
>
> /tmp/cc3NRQ16.o(.data+0xd81c): undefined reference to
> `XS_Pg_PQlo_import'
> /tmp/cc3NRQ16.o(.data+0xd8b4): undefined reference to
> `XS_Pg_PQlo_export'
> /tmp/cc3NRQ16.o(.data+0xd9e4): undefined reference to `XS_Pg_PQlo_write'
>
> /tmp/cc3NRQ16.o(.data+0xdbac): undefined reference to `XS_Pg_PQlo_close'
>
> /tmp/cc3NRQ16.o(.data+0xddc0): undefined reference to `XS_Pg_PQlo_read'
> /tmp/cc3NRQ16.o(.data+0xe78c): undefined reference to
> `XS_Pg_PQlo_unlink'
> /tmp/cc3NRQ16.o(.data+0xe7d8): undefined reference to `XS_Pg_PQlo_tell'
> /tmp/cc3NRQ16.o(.data+0xe870): undefined reference to `XS_Pg_PQlo_open'
> /tmp/cc3NRQ16.o(.data+0xeb1c): undefined reference to `XS_Pg_PQlo_creat'
>
> collect2: ld returned 1 exit status
>
>
> Example for a code that happens this:
>
> #!/usr/bin/perl
> use Pg;
> exit(0);
>
>
> I suppose it's a linkedition problem, but I don't have idea how to fix
> it. Do anyone know what problem it is, and how to fix it?
>
>
> Luiz Fernando
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Steve Wilmarth | 2001-02-05 20:36:17 | Longer and longer updates |
Previous Message | Brett W. McCoy | 2001-02-05 20:22:31 | Re: Import Database |