Discussion:
How do I find libs open by program
Shane Ambler
2021-05-11 08:35:04 UTC
Permalink
Hi,

For some time I have been unable to run audacity, I get an error about
gtk2 and gtk3 being used in the same process. There is no direct link to
any gtk2 libs. As I build most ports with extra options turned on, I
expect one of these options is bringing in gtk2

Trying to follow dependencies through ports installed hasn't helped.

How can I watch what libs are open, and hopefully what libs open them,
when I start a program?


% audacity

(Audacity:37299): Gtk-ERROR **: 16:02:37.609: GTK+ 2.x symbols detected.
Using GTK+ 2.x and GTK+ 3 in the same process is not supported
Trace/BPT trap
--
FreeBSD - the place to B...Software Developing

Shane Ambler
Luciano Mannucci
2021-05-11 09:29:29 UTC
Permalink
On Tue, 11 May 2021 18:05:04 +0930
Post by Shane Ambler
For some time I have been unable to run audacity, I get an error about
gtk2 and gtk3 being used in the same process. There is no direct link to
any gtk2 libs. As I build most ports with extra options turned on, I
expect one of these options is bringing in gtk2
I had the same problem a while ago. It turned out that it was a port
that I had to deinstall/reinstall. I don't remember wich one, tough.

Luciano.
--
/"\ /Via A. Salaino, 7 - 20144 Milano (Italy)
\ / ASCII RIBBON CAMPAIGN / PHONE : +39 02485781 FAX: +39 0248028247
X AGAINST HTML MAIL / E-MAIL: ***@sublink.sublink.ORG
/ \ AND POSTINGS / WWW: http://www.lesassaie.IT/
Luciano Mannucci
2021-05-11 09:47:53 UTC
Permalink
On Tue, 11 May 2021 11:29:29 +0200
Post by Luciano Mannucci
Post by Shane Ambler
For some time I have been unable to run audacity, I get an error about
gtk2 and gtk3 being used in the same process. There is no direct link to
any gtk2 libs. As I build most ports with extra options turned on, I
expect one of these options is bringing in gtk2
I had the same problem a while ago. It turned out that it was a port
that I had to deinstall/reinstall. I don't remember wich one, tough.
It seems that "pkg delete libgnomeui" is your friend.

Luciano
--
/"\ /Via A. Salaino, 7 - 20144 Milano (Italy)
\ / ASCII RIBBON CAMPAIGN / PHONE : +39 02485781 FAX: +39 0248028247
X AGAINST HTML MAIL / E-MAIL: ***@sublink.sublink.ORG
/ \ AND POSTINGS / WWW: http://www.lesassaie.IT/
Shane Ambler
2021-05-12 23:26:41 UTC
Permalink
Post by Luciano Mannucci
On Tue, 11 May 2021 11:29:29 +0200
Post by Luciano Mannucci
Post by Shane Ambler
For some time I have been unable to run audacity, I get an error about
gtk2 and gtk3 being used in the same process. There is no direct link to
any gtk2 libs. As I build most ports with extra options turned on, I
expect one of these options is bringing in gtk2
I had the same problem a while ago. It turned out that it was a port
that I had to deinstall/reinstall. I don't remember wich one, tough.
It seems that "pkg delete libgnomeui" is your friend.
Thanks deleting libgnomeui fixed it for me.

It has recently been removed from the ports tree so was due to go.
--
FreeBSD - the place to B...Software Developing

Shane Ambler
Steve O'Hara-Smith
2021-05-11 11:05:07 UTC
Permalink
On Tue, 11 May 2021 18:05:04 +0930
Post by Shane Ambler
How can I watch what libs are open, and hopefully what libs open them,
when I start a program?
Short of using truss or dtrace that's not easy, you could use ldd
to find out what should be getting linked.
--
Steve O'Hara-Smith <***@sohara.org>
Loading...