You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by János Löbb <ja...@yale.edu> on 2011/03/15 22:30:54 UTC

[users@httpd] compiling 2.2.17

Hi,

I am doing configure this way:
sudo ./configure --prefix=/usr/local/apache-2.2.17 --enable-mods-shared=most --enable-ssl --with-ssl=/usr/include/openssl

It reports the ssl related things this way:
.....
checking whether to enable mod_ssl... checking dependencies
checking for SSL/TLS toolkit base... /usr/include/openssl
  adding "-I/usr/include/openssl/include" to CPPFLAGS
  adding "-I/usr/include/openssl/include" to INCLUDES
  adding "-L/usr/include/openssl/lib" to LDFLAGS
checking for OpenSSL version... checking openssl/opensslv.h usability... yes
checking openssl/opensslv.h presence... yes
checking for openssl/opensslv.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
OK
  forcing SSL_LIBS to "-lssl -lcrypto  -lpthread"
  setting LIBS to "-lssl -lcrypto  -lpthread"
checking openssl/engine.h usability... yes
checking openssl/engine.h presence... yes
checking for openssl/engine.h... yes
checking for SSLeay_version... yes
checking for SSL_CTX_new... yes
checking for ENGINE_init... yes
checking for ENGINE_load_builtin_engines... yes
checking for SSL_set_cert_store... no
  forcing MOD_SSL_LDADD to "$(SSL_LIBS)"
checking whether Distcache is required... no (default)
  adding "-export-symbols-regex" to MOD_SSL_LDADD
  adding "ssl_module" to MOD_SSL_LDADD
checking whether to enable mod_ssl... shared (most)
  adding "-I$(top_srcdir)/modules/ssl" to INCLUDES
....

There are no include and lib directories in /usr/include/openssl just header files, so adding them to CPPFLAGS, INCLUDES and LDFLAGS is questionable.  Then I see the following messages during make, I list just a few of them here:

/usr/share/apr-1/build-1/libtool --silent --mode=link gcc      -L/usr/include/openssl/lib   -o dftables -L/usr/include/openssl/lib dftables.lo 
ld: warning: directory '/usr/include/openssl/lib' following -L not found

/usr/share/apr-1/build-1/libtool --silent --mode=link gcc      -L/usr/include/openssl/lib   -o gen_test_char -L/usr/include/openssl/lib gen_test_char.lo util_debug.lo 
ld: warning: directory '/usr/include/openssl/lib' following -L not found

/usr/share/apr-1/build-1/libtool --silent --mode=link gcc      -L/usr/include/openssl/lib   -o htpasswd  htpasswd.lo    /usr/local/src/httpd-2.2.17/srclib/pcre/libpcre.la -L/usr/lib -R/usr/lib -laprutil-1 -lexpat -liconv -lsqlite3 -L/usr/lib -R/usr/lib -lapr-1 -lpthread
ld: warning: directory '/usr/include/openssl/lib' following -L not found

....
....

/usr/share/apr-1/build-1/libtool --silent --mode=link gcc      -L/usr/include/openssl/lib   -o htpasswd  htpasswd.lo    /usr/local/src/httpd-2.2.17/srclib/pcre/libpcre.la -L/usr/lib -R/usr/lib -laprutil-1 -lexpat -liconv -lsqlite3 -L/usr/lib -R/usr/lib -lapr-1 -lpthread
ld: warning: directory '/usr/include/openssl/lib' following -L not found

How to make it right and avoid the warnings ?  The latest XCode 3 is installed on the machine.

Thanks ahead,

János



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] compiling 2.2.17

Posted by Mark Montague <ma...@catseye.org>.
  On March 17, 2011 10:02 , =?iso-8859-1?Q?J=E1nos_L=F6bb?= 
<ja...@yale.edu> wrote:
> Now I have this message frequently in the output when I run make:
>
> warning: no debug symbols in executable (-arch x86_64)
>
> Should I worry ?

You can ignore this warning unless you plan to use a debugger to 
troubleshoot problems with httpd.  If you plan to use a debugger, you 
can fix the problem by turning off link-time optimization in XCode / 
gcc-llvm:

http://stackoverflow.com/questions/2503989/problem-with-link-time-optimization-in-xcode

--
   Mark Montague
   mark@catseye.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] compiling 2.2.17

Posted by János Löbb <ja...@yale.edu>.
Hi Mark,

Removing the 

--with-ssl=/usr/include/opnessl

option helped.  Now I have this message frequently in the output when I run make:

warning: no debug symbols in executable (-arch x86_64)

Should I worry ?

It is on an Intel iMac with OSX 10.6.6.
bml0065:httpd-2.2.17 administrator$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Thanks ahead,

János


On Mar 15, 2011, at 6:12 PM, Mark Montague wrote:

> On March 15, 2011 17:30 , =?iso-8859-1?Q?J=E1nos_L=F6bb?= <ja...@yale.edu> wrote:
>> I am doing configure this way:
>> sudo ./configure --prefix=/usr/local/apache-2.2.17 --enable-mods-shared=most --enable-ssl --with-ssl=/usr/include/openssl
> 
>> There are no include and lib directories in /usr/include/openssl just header files, so adding them to CPPFLAGS, INCLUDES and LDFLAGS is questionable.
> 
> But this is what the --with-ssl=/usr/include/openssl option to configure does.  The value you give this flag is where OpenSSL is installed on your system -- beneath this directory should be subdirectories for binaries, libraries, and include files.  By specifying --with-ssl=/usr/include/openssl you're basically overriding the choices that configure would normally make; configure will try to do exactly what you tell it to do, even it it makes no sense or is wrong.
> 
> 
> 
>> /usr/share/apr-1/build-1/libtool --silent --mode=link gcc      -L/usr/include/openssl/lib   -o htpasswd  htpasswd.lo    /usr/local/src/httpd-2.2.17/srclib/pcre/libpcre.la -L/usr/lib -R/usr/lib -laprutil-1 -lexpat -liconv -lsqlite3 -L/usr/lib -R/usr/lib -lapr-1 -lpthread
>> ld: warning: directory '/usr/include/openssl/lib' following -L not found
>> 
>> How to make it right and avoid the warnings ?  The latest XCode 3 is installed on the machine.
> 
> Try running configure without the --with-ssl= option.  If that does not work, try it using --with-ssl=/usr
> 
> If you need to post again, be sure to tell us what OS you're running.  (Since you mention XCode 3, I'm guessing it is some version of MacOS X, but which version?  Also, if you have DarwinPorts, Fink, or something similar installed, that could be a factor, so be sure to remove any directories related to those from your PATH before running configure).
> 
> --
>  Mark Montague
>  mark@catseye.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] compiling 2.2.17

Posted by Mark Montague <ma...@catseye.org>.
  On March 15, 2011 17:30 , =?iso-8859-1?Q?J=E1nos_L=F6bb?= 
<ja...@yale.edu> wrote:
> I am doing configure this way:
> sudo ./configure --prefix=/usr/local/apache-2.2.17 --enable-mods-shared=most --enable-ssl --with-ssl=/usr/include/openssl

> There are no include and lib directories in /usr/include/openssl just header files, so adding them to CPPFLAGS, INCLUDES and LDFLAGS is questionable.

But this is what the --with-ssl=/usr/include/openssl option to configure 
does.  The value you give this flag is where OpenSSL is installed on 
your system -- beneath this directory should be subdirectories for 
binaries, libraries, and include files.  By specifying 
--with-ssl=/usr/include/openssl you're basically overriding the choices 
that configure would normally make; configure will try to do exactly 
what you tell it to do, even it it makes no sense or is wrong.



> /usr/share/apr-1/build-1/libtool --silent --mode=link gcc      -L/usr/include/openssl/lib   -o htpasswd  htpasswd.lo    /usr/local/src/httpd-2.2.17/srclib/pcre/libpcre.la -L/usr/lib -R/usr/lib -laprutil-1 -lexpat -liconv -lsqlite3 -L/usr/lib -R/usr/lib -lapr-1 -lpthread
> ld: warning: directory '/usr/include/openssl/lib' following -L not found
>
> How to make it right and avoid the warnings ?  The latest XCode 3 is installed on the machine.

Try running configure without the --with-ssl= option.  If that does not 
work, try it using --with-ssl=/usr

If you need to post again, be sure to tell us what OS you're running.  
(Since you mention XCode 3, I'm guessing it is some version of MacOS X, 
but which version?  Also, if you have DarwinPorts, Fink, or something 
similar installed, that could be a factor, so be sure to remove any 
directories related to those from your PATH before running configure).

--
   Mark Montague
   mark@catseye.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org