[Slackbuilds-users] Fix to SLiM

Luis Henrique F. Cardoso de Mello lmello.009 at gmail.com
Tue Jun 1 05:47:51 UTC 2010

On 06/01/2010 01:56 AM, Robby Workman wrote:
> On Mon, 31 May 2010 13:25:51 -0300
> Max Miorim<miorimmax at gmail.com>  wrote:
>> The SlackBuild script for SLiM (a graphical login manager) goes
>> through the compilation and package creation process just fine, but
>> theres a problem with the resulting binary: it links against both
>> libpng12 and libpng14 (Slackware 13.1 comes with both versions in the
>> same package) and just dies, throwing the following at
>> /var/log/slim.log:
>> libpng warning: Application was compiled with png.h from libpng-1.4.2
>> libpng warning: Application  is  running with png.c from libpng-1.2.43
>> libpng error: Incompatible libpng version in application and library
>> At first, I modified its Makefile to use libpng12 only, it worked but
>> I guess it'd break compatibility with previous Slackware versions...
>> So, I tried with libpng14 (using -I/usr/include/libpng and -lpng -
>> without any version suffix, libpng14 is the /default/ in 13.1) and
>> it's working as intended again:
> I'm going to apply this, but after modifying it to use libpng14
> (-lpng14) instead of libpng (-lpng) due to how libpng upstream
> names stuff.  They have made it very clear that -lpng is not
> supported by them due to the way they rename the frapping library
> with every major version bump.
> -RW
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - http://slackbuilds.org/faq/
Also, I think it would be a good idea to include a logrotate entry for 
slim in the package. It's easy to forget it and suddenly find your /var 
dir over 2G in size... here's a sample file I found on Gentoo wiki:

File:  /etc/logrotate.d/slim

/var/log/slim.log {
   rotate 4

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20100601/4008abd0/attachment.htm>

More information about the SlackBuilds-users mailing list