Skip to content

compiling error if mail_ssl_module is enabled and http_ssl is disabled #22

@chobits

Description

@chobits

How to reproduce:

$ ./configure \
 --with-mail \
 --with-mail_ssl_module \
 --add-module=/ngx_openresty-1.7.4.1/bundle/ngx_devel_kit-0.2.19 \
 --add-module=/ngx_openresty-1.7.4.1/bundle/set-misc-nginx-module-0.26

$ make
...
objs/addon/src/ngx_http_set_misc_module.o:(.data+0x728): undefined reference to `ngx_http_set_misc_set_hmac_sha1'
collect2: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make[1]: Leaving directory `/ngx_openresty-1.7.4.1/bundle/nginx-1.7.4'
make: *** [build] Error 2

If mail_ssl_module is enabled and http_ssl_module is not enabled with command ./configure,
nginx configure script will run set-misc-nginx-module/config before running script as following in auto/module:

if [ $MAIL_SSL = YES ]; then
    have=NGX_MAIL_SSL . auto/have
    USE_OPENSSL=YES
fi

In set-misc-nginx-module/config, it will not add ngx_http_set_hmac.c to $NGX_ADDON_SRCS because $USE_OPENSSL is "NO" by this time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions