[Asterisk-Users] Problems compiling cdr_pgsql

Andy Powell andy at beagles-den.demon.co.uk
Tue Jan 6 05:16:45 MST 2004


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


[root at ASTERISK 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
[root at ASTERISK cdr]#





More information about the asterisk-users mailing list