You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by spggwp7q <sp...@posteo.eu> on 2015/11/20 15:23:39 UTC
[users@httpd] Apache modules built as .a and .la instead of .so libraries
Hi guys,
I'm building apache 2.4.x (latest) for Solaris on Intel. I've built a
cross compiler for this, which seems to be working fine. That said, all
my modules are being built as .a and .la files, rather than .so files.
Apache fails to start when it tries to load modules, saying that it
cannot find <module-name>.so, which makes sense.
Here's my configure command:
CC="/home/user/cross/x86_64-pc-solaris/bin/x86_64-pc-solaris2.10-gcc"
CFLAGS="-m64 -O3 -march=core2 -mfpmath=sse -msse3 -mno-ssse3"
./configure --prefix=/opt/SP/apache/apache-2.4.17-intel-x64
--with-ssl=/home/user/cross/x86_64-pc-solaris/openssl-1.0.2d
--target=$TARGET --host=$TARGET --with-sysroot=$SYSROOT
ac_cv_file__dev_zero=yes ac_cv_func_setpgrp_void=yes
ap_cv_void_ptr_lt_long=no --enable-deflate --enable-log_forensic
--enable-ssl --enable-mime_magic --enable-mpms-shared='prefork worker'
--with-mpm=prefork --with-pcre=/home/user/cross/x86_64-pc-solaris/pcre-8.37
I've compiled PCRE with the same compiler and the same flags and I got
.so libraries along with .a and .la versions.
user@ubuntu-vm:~/cross/x86_64-pc-solaris/pcre-8.37/lib$ ls -lF
total 480
-rw-r--r-- 1 user user 218250 Nov 20 00:24 libpcre.a
-rw-r--r-- 1 user user 50356 Nov 20 00:24 libpcrecpp.a
-rwxr-xr-x 1 user user 1125 Nov 20 00:24 libpcrecpp.la*
lrwxrwxrwx 1 user user 19 Nov 20 00:24 libpcrecpp.so ->
libpcrecpp.so.0.0.1*
lrwxrwxrwx 1 user user 19 Nov 20 00:24 libpcrecpp.so.0 ->
libpcrecpp.so.0.0.1*
-rwxr-xr-x 1 user user 45896 Nov 20 00:24 libpcrecpp.so.0.0.1*
-rwxr-xr-x 1 user user 954 Nov 20 00:24 libpcre.la*
-rw-r--r-- 1 user user 6552 Nov 20 00:24 libpcreposix.a
-rwxr-xr-x 1 user user 1054 Nov 20 00:24 libpcreposix.la*
lrwxrwxrwx 1 user user 21 Nov 20 00:24 libpcreposix.so ->
libpcreposix.so.0.0.3*
lrwxrwxrwx 1 user user 21 Nov 20 00:24 libpcreposix.so.0 ->
libpcreposix.so.0.0.3*
-rwxr-xr-x 1 user user 11336 Nov 20 00:24 libpcreposix.so.0.0.3*
lrwxrwxrwx 1 user user 16 Nov 20 00:24 libpcre.so -> libpcre.so.1.2.5*
lrwxrwxrwx 1 user user 16 Nov 20 00:24 libpcre.so.1 -> libpcre.so.1.2.5*
-rwxr-xr-x 1 user user 129264 Nov 20 00:24 libpcre.so.1.2.5*
drwxrwxr-x 2 user user 4096 Nov 20 00:24 pkgconfig/
user@ubuntu-vm:~/cross/x86_64-pc-solaris/pcre-8.37/lib$
Any idea how I can get gcc to build .so files for Apache?
Regards,
K.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache modules built as .a and .la instead of .so
libraries
Posted by spggwp7q <sp...@posteo.eu>.
Thanks a lot! Checking config.log for apr pointed me in the right direction.
Am 20/11/2015 um 16:02 schrieb William A Rowe Jr:
> Go back to how you initially built apr, that is going to be the origin
> of the libtool
> used by httpd.
>
> On Fri, Nov 20, 2015 at 8:23 AM, spggwp7q <spggwp7q@posteo.eu
> <ma...@posteo.eu>> wrote:
>
> Hi guys,
>
> I'm building apache 2.4.x (latest) for Solaris on Intel. I've
> built a cross compiler for this, which seems to be working fine.
> That said, all my modules are being built as .a and .la files,
> rather than .so files. Apache fails to start when it tries to load
> modules, saying that it cannot find <module-name>.so, which makes
> sense.
>
> Here's my configure command:
>
> CC="/home/user/cross/x86_64-pc-solaris/bin/x86_64-pc-solaris2.10-gcc"
> CFLAGS="-m64 -O3 -march=core2 -mfpmath=sse -msse3 -mno-ssse3"
> ./configure --prefix=/opt/SP/apache/apache-2.4.17-intel-x64
> --with-ssl=/home/user/cross/x86_64-pc-solaris/openssl-1.0.2d
> --target=$TARGET --host=$TARGET --with-sysroot=$SYSROOT
> ac_cv_file__dev_zero=yes ac_cv_func_setpgrp_void=yes
> ap_cv_void_ptr_lt_long=no --enable-deflate --enable-log_forensic
> --enable-ssl --enable-mime_magic --enable-mpms-shared='prefork
> worker' --with-mpm=prefork
> --with-pcre=/home/user/cross/x86_64-pc-solaris/pcre-8.37
>
> I've compiled PCRE with the same compiler and the same flags and I
> got .so libraries along with .a and .la versions.
>
> user@ubuntu-vm:~/cross/x86_64-pc-solaris/pcre-8.37/lib$ ls -lF
> total 480
> -rw-r--r-- 1 user user 218250 Nov 20 00:24 libpcre.a
> -rw-r--r-- 1 user user 50356 Nov 20 00:24 libpcrecpp.a
> -rwxr-xr-x 1 user user 1125 Nov 20 00:24 libpcrecpp.la
> <http://libpcrecpp.la>*
> lrwxrwxrwx 1 user user 19 Nov 20 00:24 libpcrecpp.so ->
> libpcrecpp.so.0.0.1*
> lrwxrwxrwx 1 user user 19 Nov 20 00:24 libpcrecpp.so.0 ->
> libpcrecpp.so.0.0.1*
> -rwxr-xr-x 1 user user 45896 Nov 20 00:24 libpcrecpp.so.0.0.1*
> -rwxr-xr-x 1 user user 954 Nov 20 00:24 libpcre.la
> <http://libpcre.la>*
> -rw-r--r-- 1 user user 6552 Nov 20 00:24 libpcreposix.a
> -rwxr-xr-x 1 user user 1054 Nov 20 00:24 libpcreposix.la
> <http://libpcreposix.la>*
> lrwxrwxrwx 1 user user 21 Nov 20 00:24 libpcreposix.so ->
> libpcreposix.so.0.0.3*
> lrwxrwxrwx 1 user user 21 Nov 20 00:24 libpcreposix.so.0 ->
> libpcreposix.so.0.0.3*
> -rwxr-xr-x 1 user user 11336 Nov 20 00:24 libpcreposix.so.0.0.3*
> lrwxrwxrwx 1 user user 16 Nov 20 00:24 libpcre.so ->
> libpcre.so.1.2.5*
> lrwxrwxrwx 1 user user 16 Nov 20 00:24 libpcre.so.1 ->
> libpcre.so.1.2.5*
> -rwxr-xr-x 1 user user 129264 Nov 20 00:24 libpcre.so.1.2.5*
> drwxrwxr-x 2 user user 4096 Nov 20 00:24 pkgconfig/
> user@ubuntu-vm:~/cross/x86_64-pc-solaris/pcre-8.37/lib$
>
> Any idea how I can get gcc to build .so files for Apache?
>
> Regards,
> K.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> <ma...@httpd.apache.org>
> For additional commands, e-mail: users-help@httpd.apache.org
> <ma...@httpd.apache.org>
>
>
Re: [users@httpd] Apache modules built as .a and .la instead of .so libraries
Posted by William A Rowe Jr <wr...@rowe-clan.net>.
Go back to how you initially built apr, that is going to be the origin of
the libtool
used by httpd.
On Fri, Nov 20, 2015 at 8:23 AM, spggwp7q <sp...@posteo.eu> wrote:
> Hi guys,
>
> I'm building apache 2.4.x (latest) for Solaris on Intel. I've built a
> cross compiler for this, which seems to be working fine. That said, all my
> modules are being built as .a and .la files, rather than .so files. Apache
> fails to start when it tries to load modules, saying that it cannot find
> <module-name>.so, which makes sense.
>
> Here's my configure command:
>
> CC="/home/user/cross/x86_64-pc-solaris/bin/x86_64-pc-solaris2.10-gcc"
> CFLAGS="-m64 -O3 -march=core2 -mfpmath=sse -msse3 -mno-ssse3" ./configure
> --prefix=/opt/SP/apache/apache-2.4.17-intel-x64
> --with-ssl=/home/user/cross/x86_64-pc-solaris/openssl-1.0.2d
> --target=$TARGET --host=$TARGET --with-sysroot=$SYSROOT
> ac_cv_file__dev_zero=yes ac_cv_func_setpgrp_void=yes
> ap_cv_void_ptr_lt_long=no --enable-deflate --enable-log_forensic
> --enable-ssl --enable-mime_magic --enable-mpms-shared='prefork worker'
> --with-mpm=prefork --with-pcre=/home/user/cross/x86_64-pc-solaris/pcre-8.37
>
> I've compiled PCRE with the same compiler and the same flags and I got .so
> libraries along with .a and .la versions.
>
> user@ubuntu-vm:~/cross/x86_64-pc-solaris/pcre-8.37/lib$ ls -lF
> total 480
> -rw-r--r-- 1 user user 218250 Nov 20 00:24 libpcre.a
> -rw-r--r-- 1 user user 50356 Nov 20 00:24 libpcrecpp.a
> -rwxr-xr-x 1 user user 1125 Nov 20 00:24 libpcrecpp.la*
> lrwxrwxrwx 1 user user 19 Nov 20 00:24 libpcrecpp.so ->
> libpcrecpp.so.0.0.1*
> lrwxrwxrwx 1 user user 19 Nov 20 00:24 libpcrecpp.so.0 ->
> libpcrecpp.so.0.0.1*
> -rwxr-xr-x 1 user user 45896 Nov 20 00:24 libpcrecpp.so.0.0.1*
> -rwxr-xr-x 1 user user 954 Nov 20 00:24 libpcre.la*
> -rw-r--r-- 1 user user 6552 Nov 20 00:24 libpcreposix.a
> -rwxr-xr-x 1 user user 1054 Nov 20 00:24 libpcreposix.la*
> lrwxrwxrwx 1 user user 21 Nov 20 00:24 libpcreposix.so ->
> libpcreposix.so.0.0.3*
> lrwxrwxrwx 1 user user 21 Nov 20 00:24 libpcreposix.so.0 ->
> libpcreposix.so.0.0.3*
> -rwxr-xr-x 1 user user 11336 Nov 20 00:24 libpcreposix.so.0.0.3*
> lrwxrwxrwx 1 user user 16 Nov 20 00:24 libpcre.so -> libpcre.so.1.2.5*
> lrwxrwxrwx 1 user user 16 Nov 20 00:24 libpcre.so.1 ->
> libpcre.so.1.2.5*
> -rwxr-xr-x 1 user user 129264 Nov 20 00:24 libpcre.so.1.2.5*
> drwxrwxr-x 2 user user 4096 Nov 20 00:24 pkgconfig/
> user@ubuntu-vm:~/cross/x86_64-pc-solaris/pcre-8.37/lib$
>
> Any idea how I can get gcc to build .so files for Apache?
>
> Regards,
> K.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>