You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by eeadev dev <ee...@gmail.com> on 2017/10/17 17:04:42 UTC

[users@httpd] how to include ssl lib when running apxs

I am compiling my apache c module using this

sudo apxs -i -a -c mod_ex.c

now I need to use the lib openssl

what should I use to include this lib,

I tried with adding this option:

-I /usr/include/openssl

but it still seems that it does find some function.

Please how shall I do to include it?

Re: [users@httpd] how to include ssl lib when running apxs

Posted by eeadev dev <ee...@gmail.com>.
thanks Daniel but it does not change anything. Is there any other solution?

2017-10-17 10:32 GMT-07:00 Daniel <df...@gmail.com>:

> Try loading envvars if its there or adding the openssl/lib to
> LD_LIBRARY_PATH
>
> Like:
>
> export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/PATH/TO/OPENSSL/LIB"
>
> 2017-10-17 19:04 GMT+02:00 eeadev dev <ee...@gmail.com>:
> > I am compiling my apache c module using this
> >
> > sudo apxs -i -a -c mod_ex.c
> >
> > now I need to use the lib openssl
> >
> > what should I use to include this lib,
> >
> > I tried with adding this option:
> >
> > -I /usr/include/openssl
> >
> > but it still seems that it does find some function.
> >
> > Please how shall I do to include it?
> >
>
>
>
> --
> Daniel Ferradal
> IT Specialist
>
> email         dferradal at gmail.com
> linkedin     es.linkedin.com/in/danielferradal
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] how to include ssl lib when running apxs

Posted by Daniel <df...@gmail.com>.
Try loading envvars if its there or adding the openssl/lib to LD_LIBRARY_PATH

Like:

export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/PATH/TO/OPENSSL/LIB"

2017-10-17 19:04 GMT+02:00 eeadev dev <ee...@gmail.com>:
> I am compiling my apache c module using this
>
> sudo apxs -i -a -c mod_ex.c
>
> now I need to use the lib openssl
>
> what should I use to include this lib,
>
> I tried with adding this option:
>
> -I /usr/include/openssl
>
> but it still seems that it does find some function.
>
> Please how shall I do to include it?
>



-- 
Daniel Ferradal
IT Specialist

email         dferradal at gmail.com
linkedin     es.linkedin.com/in/danielferradal

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org