Compile nginx for zimbra

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 S. - 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

Hello!

On Fri, Jul 06, 2012 at 01:30:33PM +0200, Andrea S. wrote:

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:

[…]

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’

This looks like problem in zimbra changes to nginx and you may
have better luck asking in zimbra-related lists.

On the other hand, it looks like the problem is simple enough, and
you just need to add “-lsasl” to ld flags. Something like

./configure --with-ld-opt=“-lsasl”

should work.

Maxim D.

Hi,

thanks for your help.

I get this error:

./configure: error: the invalid value in --with-ld-opt=“-lsasl”

Idea?

Thanks,
Andrea

----- Messaggio originale -----
Da: “Maxim D.” [email protected]
A: [email protected]
Inviato: Venerdì, 6 luglio 2012 15:06:44
Oggetto: Re: Compile nginx for zimbra

Hello!

On Fri, Jul 06, 2012 at 01:30:33PM +0200, Andrea S. wrote:

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:

[…]

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’

This looks like problem in zimbra changes to nginx and you may
have better luck asking in zimbra-related lists.

On the other hand, it looks like the problem is simple enough, and
you just need to add “-lsasl” to ld flags. Something like

./configure --with-ld-opt=“-lsasl”

should work.

Maxim D.


nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Hi,

very strange. This is the output of command: dpkg --list | grep -i sasl:

ii libsasl2-2 2.1.23.dfsg1-5ubuntu1
Cyrus SASL - authentication abstraction libr
ii libsasl2-dev 2.1.23.dfsg1-5ubuntu1
Cyrus SASL - development files for authentic
ii libsasl2-modules 2.1.23.dfsg1-5ubuntu1
Cyrus SASL - pluggable authentication module

Andrea

----- Messaggio originale -----
Da: “Maxim D.” [email protected]
A: [email protected]
Inviato: Venerdì, 6 luglio 2012 15:35:15
Oggetto: Re: Compile nginx for zimbra

Hello!

On Fri, Jul 06, 2012 at 03:19:08PM +0200, Andrea S. wrote:

Hi,

thanks for your help.

I get this error:

./configure: error: the invalid value in --with-ld-opt=“-lsasl”

Idea?

Your ld doesn’t like -lsasl options, i.e. you don’t have SASL
library installed, at least not in default library path.

Maxim D.


nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Hello!

On Fri, Jul 06, 2012 at 03:19:08PM +0200, Andrea S. wrote:

Hi,

thanks for your help.

I get this error:

./configure: error: the invalid value in --with-ld-opt="-lsasl"

Idea?

Your ld doesn’t like -lsasl options, i.e. you don’t have SASL
library installed, at least not in default library path.

Maxim D.

Hello!

On Fri, Jul 06, 2012 at 03:48:58PM +0200, Andrea S. wrote:

Hi,

very strange. This is the output of command: dpkg --list | grep -i sasl:

ii libsasl2-2 2.1.23.dfsg1-5ubuntu1 Cyrus SASL

  • authentication abstraction libr

ii libsasl2-dev 2.1.23.dfsg1-5ubuntu1 Cyrus SASL

  • development files for authentic

ii libsasl2-modules 2.1.23.dfsg1-5ubuntu1 Cyrus SASL

  • pluggable authentication module

The name suggests it’s libsasl2, not libsasl. Try “-lsasl2”
instead.

Maxim D.

Thanks,

is all OK!

Have a nice week!

----- Messaggio originale -----
Da: “Maxim D.” [email protected]
A: [email protected]
Inviato: Venerdì, 6 luglio 2012 15:55:47
Oggetto: Re: Compile nginx for zimbra

Hello!

On Fri, Jul 06, 2012 at 03:48:58PM +0200, Andrea S. wrote:

Hi,

very strange. This is the output of command: dpkg --list | grep -i sasl:

ii libsasl2-2 2.1.23.dfsg1-5ubuntu1 Cyrus SASL

  • authentication abstraction libr

ii libsasl2-dev 2.1.23.dfsg1-5ubuntu1 Cyrus SASL

  • development files for authentic

ii libsasl2-modules 2.1.23.dfsg1-5ubuntu1 Cyrus SASL

  • pluggable authentication module

The name suggests it’s libsasl2, not libsasl. Try “-lsasl2”
instead.

Maxim D.

Idea?


nginx mailing list
[email protected]
nginx Info Page


nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx