Unix Technical Forum

compiling postgres with Visual Age compiler on OpenPower5 / Linux

This is a discussion on compiling postgres with Visual Age compiler on OpenPower5 / Linux within the pgsql Hackers forums, part of the PostgreSQL category; --> Has anyone tried to compile postgres with Visual Age compiler on OpenPower5 (IBM-ese for linux only PowerPC based server) ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 05:06 AM
Hannu Krosing
 
Posts: n/a
Default compiling postgres with Visual Age compiler on OpenPower5 / Linux


Has anyone tried to compile postgres with Visual Age compiler on
OpenPower5 (IBM-ese for linux only PowerPC based server) either 32 or 64
bit ?

We got it to build fine on both Suse and RHAS, but have had no luck with
VAC.


I have not researched any deeper,but currently it fails with

..[hannu@power postgresql-8.0.3]$
CC=/opt/ibmcmp/vac/7.0/bin/xlc ./configure
...A..
checking for int timezone... yes
checking types of arguments for accept()... configure: error: could not
determine argument types



Our "supported platforms" page does not show compiler, perhaps it should
be there as a separate column, not as remark for just some platforms.

--
Hannu Krosing <hannu@skype.net>


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 05:06 AM
Hannu Krosing
 
Posts: n/a
Default Re: compiling postgres with Visual Age compiler on

On P, 2005-05-29 at 17:19 +0300, Hannu Krosing wrote:
> Has anyone tried to compile postgres with Visual Age compiler on
> OpenPower5 (IBM-ese for linux only PowerPC based server) either 32 or 64
> bit ?
>
> We got it to build fine on both Suse and RHAS, but have had no luck with
> VAC.


That is we were able to compile it using GCC, but not VAC

>
> I have not researched any deeper,but currently it fails with
>
> .[hannu@power postgresql-8.0.3]$
> CC=/opt/ibmcmp/vac/7.0/bin/xlc ./configure
> ..A..
> checking for int timezone... yes
> checking types of arguments for accept()... configure: error: could not
> determine argument types
>
>
>
> Our "supported platforms" page does not show compiler, perhaps it should
> be there as a separate column, not as remark for just some platforms.
>

--
Hannu Krosing <hannu@skype.net>


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 05:06 AM
Tom Lane
 
Posts: n/a
Default Re: compiling postgres with Visual Age compiler on OpenPower5 / Linux

Hannu Krosing <hannu@skype.net> writes:
> I have not researched any deeper,but currently it fails with


> checking types of arguments for accept()... configure: error: could not
> determine argument types


So look at config.log and see what's going on.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-11-2008, 05:06 AM
Hannu Krosing
 
Posts: n/a
Default Re: compiling postgres with Visual Age compiler on

On P, 2005-05-29 at 11:26 -0400, Tom Lane wrote:
> Hannu Krosing <hannu@skype.net> writes:
> > I have not researched any deeper,but currently it fails with

>
> > checking types of arguments for accept()... configure: error: could not
> > determine argument types

>
> So look at config.log and see what's going on.


the following is repeated several times:

------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--
configure:11574: /opt/ibmcmp/vac/7.0/bin/xlc -c -O -D_GNU_SOURCE conftest.c >&5
"configure", line 11556.21: 1506-166 (S) Definition of function PASCAL
requires parentheses.
"configure", line 11556.28: 1506-276 (S) Syntax error: possible missing
'{'?
configure:11577: $? = 1
configure: failed program was:
#line 11549 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern unsigned int PASCAL accept (unsigned int, void *, unsigned int
*);
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

;
return 0;
}
------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--

and then end looks like this

------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--
#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
#define HAVE_STRUCT_ADDRINFO 1
#define HAVE_STRUCT_OPTION 1
#define HAVE_INT_TIMEZONE

configure: exit 1
------8<--------8<--------8<-------8<--------8<---------8<-------8<---------8<--
--
Hannu Krosing <hannu@skype.net>


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-11-2008, 05:07 AM
Hannu Krosing
 
Posts: n/a
Default Re: compiling postgres with Visual Age compiler on

On E, 2005-05-30 at 12:21 +0300, Hannu Krosing wrote:
> On P, 2005-05-29 at 11:26 -0400, Tom Lane wrote:
> > Hannu Krosing <hannu@skype.net> writes:
> > > I have not researched any deeper,but currently it fails with

> >
> > > checking types of arguments for accept()... configure: error: could not
> > > determine argument types

> >
> > So look at config.log and see what's going on.

>


it needs this:

extern int accept (int __fd, __SOCKADDR_ARG __addr,
socklen_t *__restrict __addr_len);

how does one add yet another set of arguments for accept() to
configure ?

--
Hannu Krosing <hannu@tm.ee>

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-11-2008, 05:07 AM
Peter Eisentraut
 
Posts: n/a
Default Re: compiling postgres with Visual Age compiler on

Hannu Krosing wrote:
> it needs this:
>
> extern int accept (int __fd, __SOCKADDR_ARG __addr,
> socklen_t *__restrict __addr_len);
>
> how does one add yet another set of arguments for accept() to
> configure ?


One patches the file config/ac_func_accept_argtypes.m4. Presumably, you
need to add another choice to the loop for ac_cv_func_accept_arg2.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:44 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com