Re: Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-28 Thread Mike Clarke
On Sunday 28 October 2012 01:17:46 Manish Jain wrote:

> Consider me a newbie here. How do I do wide-reinstall ?

You can do this with ports-mgmt/portmaster. See the section "Using portmaster 
to do a complete reinstallation of all your ports" at the end of the examples 
section of the man page.

> I don't mind 
> pulling in and building a few more ports as long as it is not the whole
> GNOME2 metaport

Rebuilding everything is the least complicated way of fixing the problem. It's 
a big job but if you don't do that then you're likely to have to keep doing 
even more firefighting in the future.

-- 
Mike Clarke
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-27 Thread Polytropon
On Sun, 28 Oct 2012 05:47:46 +0530, Manish Jain wrote:
> 
> On 28-Oct-12 01:49, Polytropon wrote:
> > On Sun, 28 Oct 2012 01:43:11 +0530, Manish Jain wrote:
> >>> But Mozilla applications like Firefox and Thunderbird present
> >>> a peculiar problem - the buttons on the Tool bar/Menu bar do not
> >>> have any image on them.
> >>
> >>
> >> The problem is not Mozilla-specific. I built Opera web browser from
> >> ports, and that too has images missing from its buttons.
> >
> > It seems that the problem is in some dependency, not the "top port"
> > itself. This usually indicates that something in /usr/local is
> > dangerously out of sync, and in most cases, "wide re-installs"
> > solve such kind of problem.
> >
> >
> >
> >> Looks like I am going to have to contend with being less "image-inative"
> >> in the coming days.
> >
> > You just need to imagine the images. :-)
> 
> 
> Hello Poly,
> 
> > "wide re-installs"
> 
> Consider me a newbie here. How do I do wide-reinstall ?

That's nowhere a correct terminus technicus or established word.
It just means that, for example, if you update one small library
that is incorporated by a dependency of a dependency of a library
part of Gtk, you need to recompile everything in relation to Gtk,
all Gtk programs, libraries and dependencies.

Manually tracing down the dependency could be possible, and maybe
"manual overrides" with symlinks and libmap.conf can work, but
if you update something here, in conclusion something there, it
could lead to even more trouble, forcing you to do much more
updates than you are willing to perform.



> I don't mind 
> pulling in and building a few more ports as long as it is not the whole 
> GNOME2 metaport.

It could very well be the whole Gnome 2 metaport. :-(




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-27 Thread Manish Jain


On 28-Oct-12 01:49, Polytropon wrote:

On Sun, 28 Oct 2012 01:43:11 +0530, Manish Jain wrote:

But Mozilla applications like Firefox and Thunderbird present
a peculiar problem - the buttons on the Tool bar/Menu bar do not
have any image on them.



The problem is not Mozilla-specific. I built Opera web browser from
ports, and that too has images missing from its buttons.


It seems that the problem is in some dependency, not the "top port"
itself. This usually indicates that something in /usr/local is
dangerously out of sync, and in most cases, "wide re-installs"
solve such kind of problem.




Looks like I am going to have to contend with being less "image-inative"
in the coming days.


You just need to imagine the images. :-)



Hello Poly,


"wide re-installs"


Consider me a newbie here. How do I do wide-reinstall ? I don't mind 
pulling in and building a few more ports as long as it is not the whole 
GNOME2 metaport.



Thank you &
Regards,

Manish Jain
bourne.ident...@hotmail.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-27 Thread Robert Bonomi

> Date: Sat, 27 Oct 2012 22:19:16 +0200
> From: Polytropon 
> Subject: Re: Problem with libpng + Mozilla applications on FreeBSD 8.3
>
> On Sun, 28 Oct 2012 01:43:11 +0530, Manish Jain wrote:
> > Looks like I am going to have to contend with being less "image-inative" 
> > in the coming days.
>
> You just need to imagine the images. :-)
>

It's a complex issue.  a purely imagine-ary solution is inadequate.

*SNICKER*  (or *ALMOND*JOY* if you prefer nuts)


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-27 Thread Polytropon
On Sun, 28 Oct 2012 01:43:11 +0530, Manish Jain wrote:
> > But Mozilla applications like Firefox and Thunderbird present
> > a peculiar problem - the buttons on the Tool bar/Menu bar do not
> > have any image on them.
> 
> 
> The problem is not Mozilla-specific. I built Opera web browser from 
> ports, and that too has images missing from its buttons.

It seems that the problem is in some dependency, not the "top port"
itself. This usually indicates that something in /usr/local is
dangerously out of sync, and in most cases, "wide re-installs"
solve such kind of problem.



> Looks like I am going to have to contend with being less "image-inative" 
> in the coming days.

You just need to imagine the images. :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-27 Thread Manish Jain

But Mozilla applications like Firefox and Thunderbird present
a peculiar problem - the buttons on the Tool bar/Menu bar do not
have any image on them.



The problem is not Mozilla-specific. I built Opera web browser from 
ports, and that too has images missing from its buttons.


Looks like I am going to have to contend with being less "image-inative" 
in the coming days.



Regards,

Manish Jain
bourne.ident...@hotmail.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-27 Thread Manish Jain

On Fri, Oct 26, 2012 at 11:06 PM, Polytropon  wrote:

On Sat, 27 Oct 2012 00:06:44 +0530, Manish Jain wrote:


Hello Polytropon,

Thanks for replying.

  > Maybe an update of FF and TB would be sufficient, so it can link
  > to the present (or at least expected) libraries accordingly.

Maybe I did not make it clear enough in the original message. The only
thing I installed from the installation DVD was the OS and the GNOME2
metaport. Everything else including FF and TB was installed from ports,
the tarball of which I downloaded just a couple of days back. I hope you
are not suggesting that I build the GNOME2 metaport too from the ports
directory : with my internet connection, that really would take me into
the next century.


Exactly that would have been the preferred solution. :-)




You should not manually copy things. At some point, something will
crash, and the ports infrastructure cannot take care of it. It's
easier to use a port management tool (like portmaster) to deal
with installing and updating of ports.


For the present issue, it seems logical that I would need 2 versions of
libpng : one for GNOME and one for the ports being installed. Having the
two versions reside independently in /usr/lib and /usr/local/lib seems
to be the only way out. I still must admit that it defeats the purpose
of having port management tools.


It also blurs the line between OS (/usr/lib) and additional
software (/usr/local/lib) directories. However, both directories
are used by the linker, so it looks possible (and probably better
than messing with symlinks in /usr/local/lib). Problems _might_
occur when updating world.





--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"







> Sometimes placing symlink to the newer version of library instead of
> older version helps.
>


There is only one symlink (/usr/local/bin/libpng.so) and it points to 
the newer version.



Regards,

Manish Jain
bourne.ident...@hotmail.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-27 Thread Mike Clarke
On Saturday 27 October 2012 09:42:10 Alexandr Alexeev wrote:

> Sometimes placing symlink to the newer version of library instead of
> older version helps.

Specifying the alternative version in /etc/libmap.conf (5) is a neater way of 
doing this.

The man page also shows you how to restrict the mapping to apply for only 
specified executables.

-- 
Mike Clarke
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-27 Thread Alexandr Alexeev
Sometimes placing symlink to the newer version of library instead of
older version helps.

On Fri, Oct 26, 2012 at 11:06 PM, Polytropon  wrote:
> On Sat, 27 Oct 2012 00:06:44 +0530, Manish Jain wrote:
>>
>> Hello Polytropon,
>>
>> Thanks for replying.
>>
>>  > Maybe an update of FF and TB would be sufficient, so it can link
>>  > to the present (or at least expected) libraries accordingly.
>>
>> Maybe I did not make it clear enough in the original message. The only
>> thing I installed from the installation DVD was the OS and the GNOME2
>> metaport. Everything else including FF and TB was installed from ports,
>> the tarball of which I downloaded just a couple of days back. I hope you
>> are not suggesting that I build the GNOME2 metaport too from the ports
>> directory : with my internet connection, that really would take me into
>> the next century.
>
> Exactly that would have been the preferred solution. :-)
>
>
>
>> > You should not manually copy things. At some point, something will
>> > crash, and the ports infrastructure cannot take care of it. It's
>> > easier to use a port management tool (like portmaster) to deal
>> > with installing and updating of ports.
>>
>> For the present issue, it seems logical that I would need 2 versions of
>> libpng : one for GNOME and one for the ports being installed. Having the
>> two versions reside independently in /usr/lib and /usr/local/lib seems
>> to be the only way out. I still must admit that it defeats the purpose
>> of having port management tools.
>
> It also blurs the line between OS (/usr/lib) and additional
> software (/usr/local/lib) directories. However, both directories
> are used by the linker, so it looks possible (and probably better
> than messing with symlinks in /usr/local/lib). Problems _might_
> occur when updating world.
>
>
>
>
>
> --
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"



-- 
Best regards,
Alex Alexeev
http://twitter.com/afiskon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-26 Thread Polytropon
On Sat, 27 Oct 2012 00:06:44 +0530, Manish Jain wrote:
> 
> Hello Polytropon,
> 
> Thanks for replying.
> 
>  > Maybe an update of FF and TB would be sufficient, so it can link
>  > to the present (or at least expected) libraries accordingly.
> 
> Maybe I did not make it clear enough in the original message. The only 
> thing I installed from the installation DVD was the OS and the GNOME2 
> metaport. Everything else including FF and TB was installed from ports, 
> the tarball of which I downloaded just a couple of days back. I hope you 
> are not suggesting that I build the GNOME2 metaport too from the ports 
> directory : with my internet connection, that really would take me into 
> the next century.

Exactly that would have been the preferred solution. :-)



> > You should not manually copy things. At some point, something will
> > crash, and the ports infrastructure cannot take care of it. It's
> > easier to use a port management tool (like portmaster) to deal
> > with installing and updating of ports.
> 
> For the present issue, it seems logical that I would need 2 versions of 
> libpng : one for GNOME and one for the ports being installed. Having the 
> two versions reside independently in /usr/lib and /usr/local/lib seems 
> to be the only way out. I still must admit that it defeats the purpose 
> of having port management tools.

It also blurs the line between OS (/usr/lib) and additional
software (/usr/local/lib) directories. However, both directories
are used by the linker, so it looks possible (and probably better
than messing with symlinks in /usr/local/lib). Problems _might_
occur when updating world.





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-26 Thread Manish Jain


Hello Polytropon,

Thanks for replying.

> Maybe an update of FF and TB would be sufficient, so it can link
> to the present (or at least expected) libraries accordingly.

Maybe I did not make it clear enough in the original message. The only 
thing I installed from the installation DVD was the OS and the GNOME2 
metaport. Everything else including FF and TB was installed from ports, 
the tarball of which I downloaded just a couple of days back. I hope you 
are not suggesting that I build the GNOME2 metaport too from the ports 
directory : with my internet connection, that really would take me into 
the next century.



You should not manually copy things. At some point, something will
crash, and the ports infrastructure cannot take care of it. It's
easier to use a port management tool (like portmaster) to deal
with installing and updating of ports.


For the present issue, it seems logical that I would need 2 versions of 
libpng : one for GNOME and one for the ports being installed. Having the 
two versions reside independently in /usr/lib and /usr/local/lib seems 
to be the only way out. I still must admit that it defeats the purpose 
of having port management tools.


I suspect that there might be folks at Mozilla who might see the light 
at the end of the tunnel (and the images on their buttons). I'll try 
roping them in with a separate message. If anything useful comes up, 
I'll post it to freebsd-questions as a message of possible interest to 
any other users who might be facing the same problem.



Regards,

Manish Jain
bourne.ident...@hotmail.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Problem with libpng + Mozilla applications on FreeBSD 8.3

2012-10-26 Thread Polytropon
On Fri, 26 Oct 2012 20:03:11 +0530, Manish Jain wrote:
> 
> Hi All,
> 
> I recently purchased a laptop (Intel Pentium dual core) and installed 
> FreeBSD 8.3-i386 on it using the 'All' canned distribution. I then 
> downloaded the latest ports tarball and started building them.

This ports snapshot is not "in sync" with the installed world
and possibly installed 3rd party programs (ports) anymore.



> Some of the ports required a newer version of the graphics/png port, so 
> I did a deinstall and reinstall in graphics/png. This removed the 
> previous binary libpng.so.6 and placed version libpng15.so.15 in its 
> stead. Things went wrong here - the GNOME desktop started crashing with 
> the panel not working and practically all desktop icons gone.

Exactly my experience with some libjpeg update some years ago. :-)

The rule usually is: If you update a port others depend on (read:
depend on a specific version), you also need to update those
ports. Mixing versions doesn't seem to be a good idea.



> So I 
> guessed  that the canned version of GNOME in the installation DVD had a 
> dependency on libpng.so.6.

Correct.



> I reinstalled FreeBSD 8.3, [...]

Why did you reinstall the OS? Things like Gnome or PNG libarary
are separated.



> [...] and copied /usr/local/lib/libpng.so.6 to 
> /usr/lib/libpng.so.6 before building the ports a second time.

You should not manually copy things. At some point, something will
crash, and the ports infrastructure cannot take care of it. It's
easier to use a port management tool (like portmaster) to deal
with installing and updating of ports.



> This time 
> things went a lot more smoothly. GNOME works. But Mozilla applications 
> like Firefox and Thunderbird present a peculiar problem - the buttons on 
> the Tool bar/Menu bar do not have any image on them.

It seems that there is some "library collision". If you update
things, update _all_ of them, in order to avoid version trouble.

The best approach (in your case) would be: Install the OS, do
not install anything from ports yet. Get the ports tree. Update
it to the recent version. Now start installing stuff, and do it
from the _same_ ports tree.

Alternative: If you go with the programs installed from the media
(e. g. the DVD), use pkg_add to get binary installed applications.
In case you insist on compiling, get the ports tree of the _state
of your installation_ (i. e. the tarball from the DVD) and use
that. Do not update it. In this case, you can easily mix compiling
from source and installing via binary packages.

This alternative is not suggested now. :-)



> While this is not 
> exactly a catastrophe, it is rankling to say the least. Maybe some 
> gentleman has faced this problem and has sorted it out. If anyone can 
> provide a hint on how to fix the problem, I would be grateful indeed.

Maybe an update of FF and TB would be sufficient, so it can link
to the present (or at least expected) libraries accordingly.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"