On 14-Feb-08, Olaf Dabrunz wrote:
> The problem is that --enable-embedded-perl will cause libperl to be
> linked in before libc. This means that the opendir() and readdir() in
> process_check_result_queue() will be linked in from libperl, instead of
> libc. The libperl versions will only work when the embedded perl is
> initialized as well.
>
> Linking problem.
I subscribed to the list now.
This may help to see the problem:
Breakpoint 1, process_check_result_queue (dirname=0x596770 "/var/spool/nagios") at utils.c:2246
2246 if((dirp=opendir(dirname))==NULL){
(gdb) info line 2252
Line 2252 of "utils.c" starts at address 0x43b900
and ends at 0x43b94a .
(gdb) disass 0x43b900 0x43b94a
Dump of assembler code from 0x43b900 to 0x43b94a:
0x000000000043b900 : mov 1407017(%rip),%rax # 0x593130
0x000000000043b907 : mov %r13,%rdi
0x000000000043b90a : mov 0xf28(%rax),%rax
0x000000000043b911 : mov 0x20320(%rax),%rsi
0x000000000043b918 : lea 0x20330(%rax),%rdx
0x000000000043b91f : callq 0x411308
0x000000000043b924 : test %eax,%eax
0x000000000043b926 : jne 0x43ba41
0x000000000043b92c : mov 1406973(%rip),%rax # 0x593130
0x000000000043b933 : mov 0xf28(%rax),%rax
0x000000000043b93a : mov 0x20330(%rax),%rbp
0x000000000043b941 : test %rbp,%rbp
0x000000000043b944 : je 0x43ba41
End of assembler dump.
Regards,
--
Olaf Dabrunz (od/odabrunz)
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]