Hi,

       It looks like the problems we run into because of the modified
version of Berkeley DB are not over. Despite the new name (libhtdb)
there still is a problem because the symbols in the library are
identical (same name) to the symbols in a regular libdb. 
       This is a problem, for instance, if domain name resolution uses
a Berkely DB base to solve names. Someone in France reported such a problem

 
Example provided by Fabien Seisen <[EMAIL PROTECTED]>. 
                  ---- 
                  #include <stdio.h> 
                  #include <netdb.h> 
                  int main(int argc, char *argv[]) 
                  { 
                  struct servent *serv_ptr; 

                  serv_ptr = getservbyname("telnet", "tcp"); 
                  if (serv_ptr) { 
                  printf("name=%s port=%dn", 
                  serv_ptr->s_name, ntohs(serv_ptr->s_port)); 
                  } else printf("pas trouv�n"); 
                  exit(0); 
                  } 
                  ---- 
                  Avec gcc e.c le prog fonctionne. 
                  $ gcc e.c 
                  $ ./a.out 
                  name=telnet port=23 
                  $ 

                  $ gcc e.c -lhtdb 
                  $ ./a.out 
                  Segmentation fault 
                  $ 

     The only bullet proof solution to this is to rename symbols (prefixing
them). Fabien will probably do this by himself. Otherwise I'll take care
of that next week.

        Cheers,

-- 
                Loic Dachary

                24 av Secretan
                75019 Paris
                Tel: 33 1 42 45 09 16
                e-mail: [EMAIL PROTECTED]
                URL: http://www.senga.org/


------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] 
You will receive a message to confirm this. 

Reply via email to