[Asterisk-Users] Problems compiling cdr_pgsql

2004-01-06 Thread Andy Powell
Hi,

Having installed postgresql-devel-7.4-0.3 and postgresql-libs-7.4-0.3 I'm having 
probs. compiling cdr_pgsql, can anyone offer any pointers as to what I might be 
missing?

I'm hoping I've just missed out something like   postgresql-wibblewobble-7.4-0.3 or 
something ...

Below is the result of a make in the cdr source dir which may help those of you in the 
know

thanks...

Andy


[EMAIL PROTECTED] cdr]# make
cc  -o cdr_pgsql.so cdr_pgsql.o -lpq -lz  -L/usr/lib
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o(.text+0x18): undefined 
reference to `main'
cdr_pgsql.o: In function `pgsql_log':
cdr_pgsql.o(.text+0x168): undefined reference to `ast_log'
cdr_pgsql.o(.text+0x192): undefined reference to `ast_log'
cdr_pgsql.o(.text+0x4c1): undefined reference to `ast_log'
cdr_pgsql.o(.text+0x506): undefined reference to `ast_log'
cdr_pgsql.o(.text+0x535): undefined reference to `ast_cdr_disp2str'
cdr_pgsql.o(.text+0x5c4): undefined reference to `ast_log'
cdr_pgsql.o(.text+0x60e): undefined reference to `ast_log'
cdr_pgsql.o(.text+0x65c): undefined reference to `ast_log'
cdr_pgsql.o(.text+0x6ae): undefined reference to `ast_log'
cdr_pgsql.o(.text+0x6d8): undefined reference to `ast_log'
cdr_pgsql.o(.text+0x771): more undefined references to `ast_log' follow
cdr_pgsql.o: In function `my_unload_module':
cdr_pgsql.o(.text+0x988): undefined reference to `ast_cdr_unregister'
cdr_pgsql.o: In function `my_load_module':
cdr_pgsql.o(.text+0x9b7): undefined reference to `ast_load'
cdr_pgsql.o(.text+0x9ed): undefined reference to `ast_log'
cdr_pgsql.o(.text+0xa0e): undefined reference to `ast_variable_browse'
cdr_pgsql.o(.text+0xa3f): undefined reference to `ast_variable_retrieve'
cdr_pgsql.o(.text+0xab6): undefined reference to `ast_log'
cdr_pgsql.o(.text+0xae9): undefined reference to `ast_log'
cdr_pgsql.o(.text+0xb11): undefined reference to `ast_variable_retrieve'
cdr_pgsql.o(.text+0xb88): undefined reference to `ast_log'
cdr_pgsql.o(.text+0xbbb): undefined reference to `ast_log'
cdr_pgsql.o(.text+0xbe3): undefined reference to `ast_variable_retrieve'
cdr_pgsql.o(.text+0xc5a): undefined reference to `ast_log'
cdr_pgsql.o(.text+0xc8d): undefined reference to `ast_log'
cdr_pgsql.o(.text+0xcb5): undefined reference to `ast_variable_retrieve'
cdr_pgsql.o(.text+0xd2c): undefined reference to `ast_log'
cdr_pgsql.o(.text+0xd5f): undefined reference to `ast_log'
cdr_pgsql.o(.text+0xd87): undefined reference to `ast_variable_retrieve'
cdr_pgsql.o(.text+0xdfe): undefined reference to `ast_log'
cdr_pgsql.o(.text+0xe31): undefined reference to `ast_log'
cdr_pgsql.o(.text+0xe4b): undefined reference to `ast_destroy'
cdr_pgsql.o(.text+0xe78): undefined reference to `ast_log'
cdr_pgsql.o(.text+0xea5): undefined reference to `ast_log'
cdr_pgsql.o(.text+0xedb): undefined reference to `ast_log'
cdr_pgsql.o(.text+0xf08): undefined reference to `ast_log'
cdr_pgsql.o(.text+0xf35): undefined reference to `ast_log'
cdr_pgsql.o(.text+0xf62): more undefined references to `ast_log' follow
cdr_pgsql.o: In function `my_load_module':
cdr_pgsql.o(.text+0x1079): undefined reference to `ast_cdr_register'
cdr_pgsql.o(.text+0x10a9): undefined reference to `ast_log'
collect2: ld returned 1 exit status
make: *** [cdr_pgsql.so] Error 1
[EMAIL PROTECTED] cdr]#


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Problems compiling cdr_pgsql

2004-01-06 Thread Tilghman Lesher
On Tuesday 06 January 2004 06:16, Andy Powell wrote:
 Having installed postgresql-devel-7.4-0.3 and
 postgresql-libs-7.4-0.3 I'm having probs. compiling cdr_pgsql, can
 anyone offer any pointers as to what I might be missing?

 I'm hoping I've just missed out something like  
 postgresql-wibblewobble-7.4-0.3 or something ...

 Below is the result of a make in the cdr source dir which may help
 those of you in the know

 [EMAIL PROTECTED] cdr]# make

snip

Don't run make directly from the cdr subdirectory.  Run make from the
directory one higher and it will build just fine.  The main Makefile
defines several flags which are passed to the cdr subdirectory.

-Tilghman

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Problems compiling cdr_pgsql

2004-01-06 Thread Girish Gopinath

Hi,

Having installed postgresql-devel-7.4-0.3 and postgresql-libs-7.4-0.3 I'm 
having probs. compiling cdr_pgsql, can anyone offer any pointers as to what 
I might be missing?

I'm hoping I've just missed out something like   
postgresql-wibblewobble-7.4-0.3 or something ...

Below is the result of a make in the cdr source dir which may help those of 
you in the know

thanks...

Andy

[EMAIL PROTECTED] cdr]# make
Run make install from  /usr/src/asterisk directory

Girish

_
Send DD, pay no commission. 
http://server1.msn.co.in/msnleads/suvidha/dec03.asp?type=hottag Click here.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users