php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22381 undefined reference to `__canary_death_handler'
Submitted: 2003-02-22 18:28 UTC Modified: 2003-03-24 16:12 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: alahaye at wanadoo dot fr Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 4.3.1 OS: ReadHat 7.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alahaye at wanadoo dot fr
New email:
PHP Version: OS:

 

 [2003-02-22 18:28 UTC] alahaye at wanadoo dot fr
when using --with-imap having this error on commpilation

checking for crypt in -lcrypt... (cached) yes
checking whether SSL libraries are needed for c-client... /usr/lib
checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for details.



In config.log

configure:35413: checking whether IMAP works
configure:35446: gcc -o conftest -g -O2  -DLINUX=22 -DMOD_SSL=208104 -DMOD_PERL -DUSE_PERL_SSI -DEAPI  conftest.c -lcrypto -lssl -lc-client
-lcrypt -lpam -lpng -lz -ljpeg -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lcrypt 1>&5
/usr/lib/libc-client.a(osdep.o): In function `ssl_onceonlyinit':
/usr/src/redhat/BUILD/imap-2000c/c-client/auth_ssl.c:153: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/lib/libc-client.a(mail.o): In function `mm_cache':
/usr/src/redhat/BUILD/imap-2000c/c-client/mail.c:185: undefined reference to `__canary_death_handler'
/usr/lib/libc-client.a(mail.o): In function `mail_parameters':
/usr/src/redhat/BUILD/imap-2000c/c-client/mail.c:459: undefined reference to `__canary_death_handler'
/usr/lib/libc-client.a(mail.o): In function `mail_valid':
/usr/src/redhat/BUILD/imap-2000c/c-client/mail.c:490: undefined reference to `__canary_death_handler'
/usr/lib/libc-client.a(mail.o): In function `mail_valid_net':
/usr/src/redhat/BUILD/imap-2000c/c-client/mail.c:508: undefined reference to `__canary_death_handler'
/usr/lib/libc-client.a(mail.o): In function `mail_valid_net_parse':
/usr/src/redhat/BUILD/imap-2000c/c-client/mail.c:619: undefined reference to `__canary_death_handler'
/usr/lib/libc-client.a(mail.o):/usr/src/redhat/BUILD/imap-2000c/c-client/mail.c:677: more undefined references to `__canary_death_handler' fol
low

collect2: ld returned 1 exit status
configure: failed program was:
#line 35421 "configure"
#include "confdefs.h"

    void mm_log(void){}
    void mm_dlog(void){}
    void mm_flags(void){}
    void mm_fatal(void){}
    void mm_critical(void){}
    void mm_nocritical(void){}
    void mm_notify(void){}
    void mm_login(void){}
    void mm_diskerror(void){}
    void mm_status(void){}
    void mm_lsub(void){}
    void mm_list(void){}
    void mm_exists(void){}
    void mm_searched(void){}
    void mm_expunged(void){}
    char mail_open();
    int main() {
      mail_open(0,"",0);
      return 0;
    }



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-24 15:13 UTC] the_systech at yahoo dot com
**UPDATE** **UPDATE** **UPDATE**

I managed to fix the issue on my raq 550.  This fix might be useful for others running into this same issue.   ON the Raq 550 imap and other binaries have been compiled using "Stackguard" which causes these "canary_death_handler" errors when you try to compile anything referencing these libraries with anything other than the stackguard gcc compiler.  

In the case of the raq 550 the stackguard gcc compiler is located in /usr/sg/bin/  In order to get php to compile properly on this raq 550 I had to hand edit configure searching for where it looks for gcc and change this first reference to /usr/sg/bin/gcc then all worked wonderfully.  I assume that this also has the added benifit of then being protected by stackguard's system.
 [2003-03-24 16:07 UTC] sniper@php.net
Note: You can override this more easily by just setting
the CC environment variable to point to the correct gcc..

 [2003-03-24 16:12 UTC] sniper@php.net
As this is not PHP bug at all -> bogus.

CC=/path/to/working/gcc ./configure ..and your options..

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 05:01:30 2024 UTC