Re: C function extending postgres - Mailing list pgsql-sql

From Theo Galanakis
Subject Re: C function extending postgres
Date
Msg-id D1444817B78AB546BF2896C2B70E7F04371F8C@ganesh.au.lpint.net
Whole thread Raw
In response to C function extending postgres  (Theo Galanakis <Theo.Galanakis@lonelyplanet.com.au>)
Responses Re: C function extending postgres
List pgsql-sql
<p><font size="2">Thanks for your feedback.</font><p><font size="2">I'm actually trying to use a system metrics library
from<a href="http://www-usr.inf.ufsm.br/~veiga/liblproc/index-en.html"
target="_blank">http://www-usr.inf.ufsm.br/~veiga/liblproc/index-en.html</a></font><p><fontsize="2">I have tried to
linkthe library however I'm still getting the same message.</font><p><font size="2">cc -g -I /usr/local/pgsql/include
-I/usr/local/pgsql/include/server -I /usr/local/include -fpic -c processinfo.c</font><br /><font size="2">cc -g -I
/usr/local/pgsql/include-I /usr/local/pgsql/include/server -I /usr/local/include -shared -llproc -Wall
-L/usr/local/include/-o processinfo.so processinfo.o</font><br /><br /><p><font size="2">-----Original
Message-----</font><br/><font size="2">From: Jonathan Daugherty [<a
href="mailto:cygnus@cprogrammer.org">mailto:cygnus@cprogrammer.org</a>]</font><br /><font size="2">Sent: Tuesday, 22
March2005 11:21 AM</font><br /><font size="2">To: pgsql-sql@postgresql.org</font><br /><font size="2">Subject: Re:
[SQL]C function extending postgres</font><br /><p><font size="2">#       ERROR:  could not load library
"/usr/lib/pgsql/processinfo.so":</font><br/><font size="2"># /usr/lib/pgsql/processinfo.so: undefined symbol:
proc_cpu_idle</font><p><fontsize="2">My guess that you're not linking against the library that containts
'proc_cpu_idle'when you build your .so.  What's the build platform?</font><p><font size="2">-- </font><br /><font
size="2"> Jonathan Daugherty</font><br /><font size="2">  Command Prompt, Inc. - <a
href="http://www.commandprompt.com/"target="_blank">http://www.commandprompt.com/</a></font><br /><font size="2"> 
PostgreSQLReplication & Support Services, (503) 667-4564</font><p><font size="2">---------------------------(end of
broadcast)---------------------------</font><br/><font size="2">TIP 5: Have you checked our extensive
FAQ?</font><p><fontsize="2">               <a href="http://www.postgresql.org/docs/faq"
target="_blank">http://www.postgresql.org/docs/faq</a></font><table><tr><tdbgcolor="#ffffff"><font
color="#000000">______________________________________________________________________<br/> This email, including
attachments,is intended only for the addressee<br /> and may be confidential, privileged and subject to copyright. If
you<br/> have received this email in error, please advise the sender and delete<br /> it. If you are not the intended
recipientof this email, you must not<br /> use, copy or disclose its content to anyone. You must not copy or <br />
communicateto others content that is confidential or subject to <br /> copyright, unless you have the consent of the
contentowner.<br /></font></td></tr></table> 

pgsql-sql by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: Re: equivalent of oracle rank() in postgres
Next
From: Jonathan Daugherty
Date:
Subject: Re: C function extending postgres