wxWidgets-3.0 warnings with Big Sur

Kevin Horton kevin01 at kilohotel.com
Wed Dec 30 02:12:33 UTC 2020


On Dec 29, 2020, at 17:20, Ken Cunningham <ken.cunningham.webuse at gmail.com> wrote:
> 
> Interesting.
> 
> /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/libwx_osx_cocoau_core-3.0.0.4.0.dylib
> and
> /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/libwx_osx_cocoau_core-3.0.dylib
> are actually the same library; one is just a symlink to the other:
> 
> % ls -la /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/libwx_osx_cocoau_core-3.0*           
> -rwxr-xr-x  1 macports  wheel  4563192 31 Oct  2019 /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/libwx_osx_cocoau_core-3.0.0.4.0.dylib
> lrwxr-xr-x  1 root      wheel       37 31 Oct  2019 /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/libwx_osx_cocoau_core-3.0.0.dylib -> libwx_osx_cocoau_core-3.0.0.4.0.dylib
> lrwxr-xr-x  1 root      wheel       33 31 Oct  2019 /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/libwx_osx_cocoau_core-3.0.dylib -> libwx_osx_cocoau_core-3.0.0.dylib
> 
> I have only one referenced:
> 
> % otool -L /opt/local/bin/gnuplot | grep core  
> 	/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/libwx_osx_cocoau_core-3.0.dylib (compatibility version 5.0.0, current version 5.0.0)
> 
> and I see no such warnings on Catalina, but perhaps this is related to the new way that dylibs are found on BigSur, and it’s getting confused by the symlink…
> 
> It’s very hard to imagine nobody would have ever noticed that before, though.
> 
> Ken

Things seem different on Big Sur.  I don't see any symlinks here:

%  ls -la /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/libwx_osx_cocoau_core-3.0*
-rwxr-xr-x  1 root  wheel  4743504 Nov 23 00:52 /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/libwx_osx_cocoau_core-3.0.0.4.0.dylib
-rwxr-xr-x  1 root  wheel  4743504 Nov 23 00:52 /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/libwx_osx_cocoau_core-3.0.0.dylib
-rwxr-xr-x  1 root  wheel  4743504 Nov 23 00:52 /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/libwx_osx_cocoau_core-3.0.dylib

And the files have different inodes, so not hard links either:

% ls -il *core*
68952234 -rwxr-xr-x  1 root  wheel  4743504 Nov 23 00:52 libwx_osx_cocoau_core-3.0.0.4.0.dylib
68952250 -rwxr-xr-x  1 root  wheel  4743504 Nov 23 00:52 libwx_osx_cocoau_core-3.0.0.dylib
68952220 -rwxr-xr-x  1 root  wheel  4743504 Nov 23 00:52 libwx_osx_cocoau_core-3.0.dylib

But only one is found by otool

% otool -L /opt/local/bin/gnuplot | grep core
	/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/libwx_osx_cocoau_core-3.0.dylib (compatibility version 5.0.0, current version 5.0.0)

Everything seems to work correctly, if you ignore the spewage, so this likely sits low on the priority list.

Kevin


More information about the macports-users mailing list