Compile nginx for zimbra

Andrea Soracchi soracchi at netbuilder.it
Fri Jul 6 11:30:33 UTC 2012


Hi,

I have a ubuntu 10.04 TLS. When compile nginx for zimbra (http://zimbra.imladris.sk/download/src/HELIX-720.fbsd/ThirdParty/nginx/nginx-0.9-zimbra/) I get this error:

       gcc -o objs/nginx \                                                                                                                                                              
        objs/src/core/nginx.o \                                                                                                                                                  
        objs/src/core/ngx_log.o \                                                                                                                                                
        objs/src/core/ngx_palloc.o \                                                                                                                                             
        objs/src/core/ngx_array.o \                                                                                                                                              
        objs/src/core/ngx_list.o \                                                                                                                                               
        objs/src/core/ngx_hash.o \                                                                                                                                               
        objs/src/core/ngx_buf.o \                                                                                                                                                
        objs/src/core/ngx_queue.o \                                                                                                                                              
        objs/src/core/ngx_output_chain.o \                                                                                                                                       
        objs/src/core/ngx_string.o \                                                                                                                                             
        objs/src/core/ngx_parse.o \                                                                                                                                              
        objs/src/core/ngx_inet.o \                                                                                                                                               
        objs/src/core/ngx_file.o \                                                                                                                                               
        objs/src/core/ngx_crc32.o \                                                                                                                                              
        objs/src/core/ngx_rbtree.o \                                                                                                                                             
        objs/src/core/ngx_radix_tree.o \                                                                                                                                         
        objs/src/core/ngx_slab.o \                                                                                                                                               
        objs/src/core/ngx_times.o \                                                                                                                                              
        objs/src/core/ngx_shmtx.o \                                                                                                                                              
        objs/src/core/ngx_connection.o \                                                                                                                                         
        objs/src/core/ngx_cycle.o \                                                                                                                                              
        objs/src/core/ngx_spinlock.o \                                                                                                                                           
        objs/src/core/ngx_cpuinfo.o \                                                                                                                                            
        objs/src/core/ngx_conf_file.o \                                                                                                                                          
        objs/src/core/ngx_resolver.o \                                                                                                                                           
        objs/src/core/ngx_open_file_cache.o \                                                                                                                                    
        objs/src/core/ngx_memcache.o \                                                                                                                                           
        objs/src/core/ngx_zm_lookup.o \                                                                                                                                          
        objs/src/event/ngx_event.o \                                                                                                                                             
        objs/src/event/ngx_event_timer.o \                                                                                                                                       
        objs/src/event/ngx_event_posted.o \                                                                                                                                      
        objs/src/event/ngx_event_busy_lock.o \                                                                                                                                   
        objs/src/event/ngx_event_accept.o \                                                                                                                                      
        objs/src/event/ngx_event_connect.o \                                                                                                                                     
        objs/src/event/ngx_event_pipe.o \                                                                                                                                        
        objs/src/os/unix/ngx_time.o \                                                                                                                                            
        objs/src/os/unix/ngx_errno.o \                                                                                                                                           
        objs/src/os/unix/ngx_alloc.o \                                                                                                                                           
        objs/src/os/unix/ngx_files.o \                                                                                                                                           
        objs/src/os/unix/ngx_socket.o \                                                                                                                                          
        objs/src/os/unix/ngx_recv.o \                                                                                                                                            
        objs/src/os/unix/ngx_readv_chain.o \                                                                                                                                     
        objs/src/os/unix/ngx_udp_recv.o \                                                                                                                                        
        objs/src/os/unix/ngx_send.o \                                                                                                                                            
        objs/src/os/unix/ngx_writev_chain.o \
        objs/src/os/unix/ngx_channel.o \
        objs/src/os/unix/ngx_shmem.o \
        objs/src/os/unix/ngx_process.o \
        objs/src/os/unix/ngx_daemon.o \
        objs/src/os/unix/ngx_setproctitle.o \
        objs/src/os/unix/ngx_posix_init.o \
        objs/src/os/unix/ngx_user.o \
        objs/src/os/unix/ngx_process_cycle.o \
        objs/src/os/unix/ngx_linux_init.o \
        objs/src/event/modules/ngx_epoll_module.o \
        objs/src/os/unix/ngx_linux_sendfile_chain.o \
        objs/src/event/ngx_event_openssl.o \
        objs/src/mail/ngx_mail.o \
        objs/src/mail/ngx_mail_core_module.o \
        objs/src/mail/ngx_mail_handler.o \
        objs/src/mail/ngx_mail_parse.o \
        objs/src/mail/ngx_mail_ssl_module.o \
        objs/src/mail/ngx_mail_pop3_module.o \
        objs/src/mail/ngx_mail_pop3_handler.o \
        objs/src/mail/ngx_mail_imap_module.o \
        objs/src/mail/ngx_mail_imap_handler.o \
        objs/src/mail/ngx_mail_smtp_module.o \
        objs/src/mail/ngx_mail_smtp_handler.o \
        objs/src/mail/ngx_mail_auth_http_module.o \
        objs/src/mail/ngx_mail_proxy_module.o \
        objs/src/mail/ngx_mail_throttle_module.o \
        objs/ngx_modules.o \
        -lssl -lcrypto -ldl
objs/src/mail/ngx_mail_handler.o: In function `ngx_mail_initialize_sasl':
/usr/local/src/nginx-0.9-zimbra/src/mail/ngx_mail_handler.c:961: undefined reference to `sasl_server_init'
/usr/local/src/nginx-0.9-zimbra/src/mail/ngx_mail_handler.c:965: undefined reference to `sasl_errstring'
objs/src/mail/ngx_mail_handler.o: In function `ngx_mail_create_sasl_context':
/usr/local/src/nginx-0.9-zimbra/src/mail/ngx_mail_handler.c:1229: undefined reference to `sasl_server_new'
/usr/local/src/nginx-0.9-zimbra/src/mail/ngx_mail_handler.c:1243: undefined reference to `sasl_errstring'
/usr/local/src/nginx-0.9-zimbra/src/mail/ngx_mail_handler.c:1266: undefined reference to `sasl_setprop'
objs/src/mail/ngx_mail_handler.o: In function `ngx_mail_dispose_sasl_context':
/usr/local/src/nginx-0.9-zimbra/src/mail/ngx_mail_handler.c:1280: undefined reference to `sasl_dispose'
objs/src/mail/ngx_mail_handler.o: In function `ngx_mail_sasl_startstep':
/usr/local/src/nginx-0.9-zimbra/src/mail/ngx_mail_handler.c:1355: undefined reference to `sasl_server_start'
/usr/local/src/nginx-0.9-zimbra/src/mail/ngx_mail_handler.c:1387: undefined reference to `sasl_server_step'
/usr/local/src/nginx-0.9-zimbra/src/mail/ngx_mail_handler.c:1399: undefined reference to `sasl_errstring'
/usr/local/src/nginx-0.9-zimbra/src/mail/ngx_mail_handler.c:1464: undefined reference to `sasl_getprop'
/usr/local/src/nginx-0.9-zimbra/src/mail/ngx_mail_handler.c:1465: undefined reference to `sasl_getprop'
collect2: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make[1]: Leaving directory `/usr/local/src/nginx-0.9-zimbra'
make: *** [build] Error 2

Any idea?

Thanks,


-- 
Andrea Soracchi - Netbuilder S.r.l. 
Multidialogo : La storia e' fatta da chi sa comunicare 
System Engineer // t. +39 0521 247791 // f. +39 0521 7431140 // www.netbuilder.it 




More information about the nginx mailing list