LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 05-31-2008, 12:28 PM   #1
RageD
LQ Newbie
 
Registered: May 2008
Posts: 25

Rep: Reputation: 15
PyGreSQL: Can't Build - Spits weird output when compiling pgmodule.c


Alright, I want to move all my questions to this one condensed thread.

This is my main problem. Installing PyGreSQL which I need for IBSng. This may make other issues go away but here's what's happening.

This is latest PyGreSQL here is what's happening:

Code:
__â
pgmodule.c:3274: error: parameter âsetdefpasswd__doc__â is initialized
pgmodule.c:3277: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
pgmodule.c:3307: error: storage class specified for parameter âgetdefport__doc__â
pgmodule.c:3307: error: parameter âgetdefport__doc__â is initialized
pgmodule.c:3310: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
pgmodule.c:3326: error: storage class specified for parameter âsetdefport__doc__â
pgmodule.c:3326: error: parameter âsetdefport__doc__â is initialized
pgmodule.c:3329: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
pgmodule.c:3360: error: storage class specified for parameter âpg_methodsâ
pgmodule.c:3360: error: array type has incomplete element type
pgmodule.c:3360: error: parameter âpg_methodsâ is initialized
pgmodule.c:3361: error: expected â}â before âpgconnectâ
pgmodule.c:3363: error: expected â}â before âescape_stringâ
pgmodule.c:3365: error: expected â}â before âescape_byteaâ
pgmodule.c:3367: error: expected â}â before âunescape_byteaâ
pgmodule.c:3371: error: âpggetdefhostâ undeclared (first use in this function)
pgmodule.c:3371: error: âMETH_VARARGSâ undeclared (first use in this function)
pgmodule.c:3372: error: âpgsetdefhostâ undeclared (first use in this function)
pgmodule.c:3373: error: âpggetdefbaseâ undeclared (first use in this function)
pgmodule.c:3374: error: âpgsetdefbaseâ undeclared (first use in this function)
pgmodule.c:3375: error: âpggetdefoptâ undeclared (first use in this function)
pgmodule.c:3376: error: âpgsetdefoptâ undeclared (first use in this function)
pgmodule.c:3377: error: âpggetdefttyâ undeclared (first use in this function)
pgmodule.c:3378: error: âpgsetdefttyâ undeclared (first use in this function)
pgmodule.c:3379: error: âpggetdefportâ undeclared (first use in this function)
pgmodule.c:3380: error: âpgsetdefportâ undeclared (first use in this function)
pgmodule.c:3381: error: âpggetdefuserâ undeclared (first use in this function)
pgmodule.c:3382: error: âpgsetdefuserâ undeclared (first use in this function)
pgmodule.c:3383: error: âpgsetdefpasswdâ undeclared (first use in this function)
pgmodule.c:3388: error: storage class specified for parameter âpg__doc__â
pgmodule.c:3388: error: parameter âpg__doc__â is initialized
pgmodule.c:3391: error: expected declaration specifiers before âDL_EXPORTâ
pgmodule.c:3494: error: old-style parameter declarations in prototyped function definition
pgmodule.c:3494: error: expected â{â at end of input
error: command 'gcc' failed with exit status 1
This is all done SSH and I can't get enough lines of scrollback to get it all (good thing too, it was just clutter things up even more) But it keeps spitting that output out.

The python include directory is /usr/include/python2.4. Before it was missing Python.h so I copied all the Python-2.4.5 files into that directory.
So the all the Python files are found. Any ideas on what's going on guys?

-RageD

EDIT: SOLUTION! - After a few hours I finally found it. Just run:
Code:
yum install postgre-python

Last edited by RageD; 05-31-2008 at 12:47 PM.
 
  


Reply

Tags
compiling, gcc, postgresql, python


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
weird fstream output schneidz Programming 3 09-06-2005 04:48 PM
Weird DF Output Mr_Munkey Linux - General 4 03-09-2005 10:11 AM
Weird Dmesg Output raid517 Linux - Hardware 2 09-22-2003 11:14 PM
C: Weird characters on output notsoevil Programming 3 06-23-2003 05:00 PM
df -h is giving weird output chens_83 Linux - General 2 12-09-2002 12:32 PM


All times are GMT -5. The time now is 11:04 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration