Обсуждение: `__builtin_va_alist' undeclared

Поиск
Список
Период
Сортировка

`__builtin_va_alist' undeclared

От
"Kalyan (FS)"
Дата:
Hi
Please help me...
I am installing postgresql-7.3.4 on solaris sparc 2.8.
But with make it is giving me the following error.  I am strucked now.
 
Output:
make -C nbtree SUBSYS.o
make[4]: Entering directory `/opt/temp/postgresql-7.3.4/src/backend/access/nbtree'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/opt/temp/postgresql-7.3.4/src/backend/access/nbtree'
make -C rtree SUBSYS.o
make[4]: Entering directory `/opt/temp/postgresql-7.3.4/src/backend/access/rtree'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/opt/temp/postgresql-7.3.4/src/backend/access/rtree'
make -C transam SUBSYS.o
make[4]: Entering directory `/opt/temp/postgresql-7.3.4/src/backend/access/transam'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/opt/temp/postgresql-7.3.4/src/backend/access/transam'
make[3]: Leaving directory `/opt/temp/postgresql-7.3.4/src/backend/access'
make -C bootstrap all
make[3]: Entering directory `/opt/temp/postgresql-7.3.4/src/backend/bootstrap'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/opt/temp/postgresql-7.3.4/src/backend/bootstrap'
make -C catalog all
make[3]: Entering directory `/opt/temp/postgresql-7.3.4/src/backend/catalog'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/opt/temp/postgresql-7.3.4/src/backend/catalog'
make -C parser all
make[3]: Entering directory `/opt/temp/postgresql-7.3.4/src/backend/parser'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/opt/temp/postgresql-7.3.4/src/backend/parser'
make -C commands all
make[3]: Entering directory `/opt/temp/postgresql-7.3.4/src/backend/commands'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/opt/temp/postgresql-7.3.4/src/backend/commands'
make -C executor all
make[3]: Entering directory `/opt/temp/postgresql-7.3.4/src/backend/executor'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/opt/temp/postgresql-7.3.4/src/backend/executor'
make -C lib all
make[3]: Entering directory `/opt/temp/postgresql-7.3.4/src/backend/lib'
gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/include -I/usr/local/include -I/usr/include  -c -o
 stringinfo.o stringinfo.c
stringinfo.c: In function `appendStringInfo':
stringinfo.c:126: `__builtin_va_alist' undeclared (first use in this function)
stringinfo.c:126: (Each undeclared identifier is reported only once
stringinfo.c:126: for each function it appears in.)
make[3]: *** [stringinfo.o] Error 1
make[3]: Leaving directory `/opt/temp/postgresql-7.3.4/src/backend/lib'
make[2]: *** [lib-recursive] Error 2
make[2]: Leaving directory `/opt/temp/postgresql-7.3.4/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/temp/postgresql-7.3.4/src'
make: *** [all] Error 2
 
 
 
  Thanks in advance,
 
Kalyan.

Re: `__builtin_va_alist' undeclared

От
Tom Lane
Дата:
"Kalyan (FS)" <kalyan@frontline.com.sg> writes:
> I am installing postgresql-7.3.4 on solaris sparc 2.8.

> gcc  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/includ
> e -I/usr/local/include -I/usr/include  -c -o
>  stringinfo.o stringinfo.c
> stringinfo.c: In function `appendStringInfo':
> stringinfo.c:126: `__builtin_va_alist' undeclared (first use in this
> function)

It seems not to be picking up the gcc-specific version of <stdarg.h>.

I don't know how you configured PG, but if I were you I'd get rid of
the explicit -I/usr/include --- that is unnecessary, and it is very
likely causing the Solaris-standard versions of include files to be
picked up instead of the gcc-specific ones.  For that matter, I rather
doubt that you need -I/usr/local/include ... every gcc installation
I've ever dealt with will search that by default, too.

            regards, tom lane

Re: `__builtin_va_alist' undeclared

От
"Kalyan (FS)"
Дата:
Hi Tom,
   It works!  Now I have to install.
  Thank you very much. Have a great day!

Kalyan.


Here is the final output:
lib libplpgsql.a
 -shared -h libplpgsql.so.1 pl_gram.o pl_handler.o pl_comp.o pl_exec.o
pl_funcs.o -L../../../../src/port -L/usr/local
b   -o libplpgsql.so.1.0
-f libplpgsql.so.1
-s libplpgsql.so.1.0 libplpgsql.so.1
-f libplpgsql.so
-s libplpgsql.so.1.0 libplpgsql.so
e[4]: Leaving directory `/opt/temp/postgresql-7.3.4/src/pl/plpgsql/src'
e[3]: Leaving directory `/opt/temp/postgresql-7.3.4/src/pl/plpgsql'
e[2]: Leaving directory `/opt/temp/postgresql-7.3.4/src/pl'
e[1]: Leaving directory `/opt/temp/postgresql-7.3.4/src'
 of PostgreSQL successfully made. Ready to install.



php newbie : non-object problem

От
"Kalyan (FS)"
Дата:
Hi,
   I have installed & configured (as per the instructions specified by Gforge installation document ) Postgresql - 7.2.4, apache 1.3.28, php 4.3.3 with Gforge 3.0.  All my configuration steps passed without any error.
 
But when I am trying to access index.php (/var/www/gforge-3.0/www/index.php) it gives the error message...
 
 
Fatal error: Call to a member function on a non-object in /var/www/gforge-3.0/www/index.php on line 19
 
There is no information in the error_log, access_log for apache and also no error in the Postgres log. 
This is the source code for index.php (provided by Gforge)  -----------------------------------------------------------
<?php
/**
  *
  * SourceForge Front Page
  *
  * SourceForge: Breaking Down the Barriers to Open Source Development
  * Copyright 1999-2001 (c) VA Linux Systems
  * http://sourceforge.net
  *
  * @version   $Id: index.php.patched,v 1.1.2.1 2002/11/30 09:57:57 cbayle Exp $
  *
  */
 
require_once('www/include/pre.php');    // Initial db and session library, opens session
require_once('www/news/news_utils.php');
require_once('common/forum/Forum.class');
require_once('www/include/features_boxes.php');
 
$HTML->header(array('title'=>$Language->getText('index','welcome'),'pagename'=>'home'));    //This is line 19
 
// Main page content is now themeable;
// Default is index_std.php;
include ( $HTML->getRootIndex() );
 
$HTML->footer(array());
?>
-------------------------------------------------- until here
Please help me.  Thanks in advance,
 
Regards,
Kalyan.