sean finney on 10 Oct 2011 05:53:33 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] php module size, build vs rpm


Hi,

On Sat, Oct 08, 2011 at 09:46:41PM -0400, Neill R wrote:
> Specifically in /etc/httpd/modules (linked to
> /usr/lib64/httpd/modules), when building from source using a configure
> as show below, 26 MB.
> 
>  -rwxr-xr-x 1 root root 26731429 Oct  8 21:38 libphp5.so
> 
> ./configure --prefix=/opt/build-php-5.3.8 --with-apxs2=/usr/sbin/apxs
> --with-mysqli=mysqlnd --with-config-file-path=/etc/php
> --with-config-file-scan-dir=/etc/php.d --enable-zip --with-bz2
> --with-zlib --enable-mbstring --with-mcrypt --with-curl
> 
> When I look at another system where RPM's were installed from centos
> testing, the same .so is: 3.4 MB
> 
> -rwxr-xr-x 1 root root 3.4M Nov 13  2009 libphp5.so

Without being involved in the headware-based distros, my guess is that
the packages likely strip the binaries in question before stuffing them
into the rpm files[1].  Is there a difference if you run file(1) on the
.so files in question?

	sean


[1] At least, that's what explains the difference on debian-based distros,
    where the debug symbols are stripped out and placed in a seperage -dbg
	package.
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug