Em Mon, 21 Jan 2008 17:10:38 -0200
Mateus <[EMAIL PROTECTED]> escreveu:

> Mateus escreveu:
> > Euler Taveira de Oliveira escreveu:
> >> Mateus wrote:
> >>
> >>> Alguem utiliza o ptop no FreeBSD. Ao executar o comando "ptop -z 
> >>> postgres -U postgres -d bd1" ocorre o erro Segmentation fault: 11
> >>> uso a versão 3.6.1-beta3  e FreeBSD 6.2-RELEASE ?
> >>>
> >> Recordo-me de ter tido alguns problemas com ele no Slackware a
> >> alguns versões atrás. Tens um "backtrace" do segfault?
> >>
> >>
> > 
> > Via ports
> > 
> > gcc -DHAVE_CONFIG_H -I. -I. -Wall -g -I -I -o m_freebsd.o -c 
> > ./machine/m_freebsd.c
> > In file included from ./machine.h:14,
> >                   from ./machine/m_freebsd.c:51:
> > ./pg.h:6:22: libpq-fe.h: No such file or directory
> > In file included from ./machine.h:14,
> >                   from ./machine/m_freebsd.c:51:
> > ./pg.h:34: error: syntax error before '*' token
> > ./pg.h:34: warning: type defaults to `int' in declaration of
> > `connect_to_db' ./pg.h:34: warning: data definition has no type or
> > storage class ./machine/m_freebsd.c: In function `get_process_info':
> > ./machine/m_freebsd.c:505: error: `PGconn' undeclared (first use in
> > this function)
> > ./machine/m_freebsd.c:505: error: (Each undeclared identifier is 
> > reported only once
> > ./machine/m_freebsd.c:505: error: for each function it appears in.)
> > ./machine/m_freebsd.c:505: error: `pgconn' undeclared (first use in
> > this function)
> > ./machine/m_freebsd.c:506: error: `PGresult' undeclared (first use
> > in this function)
> > ./machine/m_freebsd.c:506: error: `pgresult' undeclared (first use
> > in this function)
> > ./machine/m_freebsd.c:512: warning: implicit declaration of
> > function `PQexec'
> > ./machine/m_freebsd.c:513: warning: implicit declaration of
> > function `PQntuples'
> > ./machine/m_freebsd.c:516: warning: implicit declaration of
> > function `PQfinish'
> > ./machine/m_freebsd.c:551: warning: implicit declaration of
> > function `PQgetvalue'
> > ./machine/m_freebsd.c:551: warning: passing arg 1 of `atoi' makes 
> > pointer from integer without a cast
> > ./machine/m_freebsd.c:586: warning: implicit declaration of
> > function `PQclear'
> > gmake: *** [m_freebsd.o] Error 1
> > *** Error code 2
> 
> ./configure
> 
> checking for a BSD-compatible install... /usr/bin/install -c
> checking OS revision number... 62RELEASE
> checking for pg_config... /usr/local/pgsql/bin/
> checking for PostgreSQL libraries... ./configure: line 3193: 
> /usr/local/pgsql/bin/: is a directory
> ./configure: line 3194: /usr/local/pgsql/bin/: is a directory
> ./configure: line 3195: /usr/local/pgsql/bin/: is a directory
> ./configure: line 3198: /usr/local/pgsql/bin/: is a directory
>

   O PostgreSQL está instalado nesse diretório? É por isso que não
termina de compilar. :)



[]'s
-- 
Fernando Ike
http://www.midstorm.org/~fike/weblog
_______________________________________________
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a