pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Error building "mplayer" and "mencoder": "missing library: libutil.so.7"
Jesus Cea <jcea%jcea.es@localhost> writes:
> On 30/5/20 23:14, Jonathan Perkin wrote:
>> * On 2020-05-30 at 21:40 BST, Jesus Cea wrote:
>>
>>> ERROR: bin/mplayer: missing library: libutil.so.7
>>
>> libutil is a BSD thing, and doesn't exist on SmartOS. It also doesn't
>> appear in any relevant pkgsrc packages, so it's a bit mysterious where
>> it's coming from.
You said you are building on SmartOS, but FWIW on my netbsd-8 system, I have:
-r--r--r-- 1 root wheel 217078 Apr 18 15:09 /usr/lib/libutil_pic.a
-r--r--r-- 1 root wheel 232610 Apr 18 15:09 /usr/lib/libutil_p.a
-r--r--r-- 1 root wheel 224664 Apr 18 15:09 /usr/lib/libutil.a
-r--r--r-- 1 root wheel 119416 Apr 18 15:09 /lib/libutil.so.7.24
lrwxr-xr-x 1 root wheel 25 Apr 18 15:10 /usr/lib/libutil.so.7.24 -> ../../lib/libutil.so.7.24
lrwxr-xr-x 1 root wheel 25 Apr 18 15:10 /usr/lib/libutil.so.7 -> ../../lib/libutil.so.7.24
lrwxr-xr-x 1 root wheel 25 Apr 18 15:10 /usr/lib/libutil.so -> ../../lib/libutil.so.7.24
lrwxr-xr-x 1 root wheel 15 Apr 18 15:10 /lib/libutil.so.7 -> libutil.so.7.24
lrwxr-xr-x 1 root wheel 15 Apr 18 15:10 /lib/libutil.so -> libutil.so.7.24
ldd on /usr/pkg/bin/mplayer shows 98 libraries including:
-lutil.7 => /usr/lib/libutil.so.7
and the output order is
/usr/pkg/bin/mplayer:
-lterminfo.1 => /usr/lib/libterminfo.so.1
-lc.12 => /usr/lib/libc.so.12
-lrt.1 => /usr/lib/librt.so.1
-lpng16.16 => /usr/pkg/lib/libpng16.so.16
-lz.1 => /usr/lib/libz.so.1
-lm.0 => /usr/lib/libm.so.0
-ljpeg.9 => /usr/pkg/lib/libjpeg.so.9
-lgif.7 => /usr/pkg/lib/libgif.so.7
-lutil.7 => /usr/lib/libutil.so.7
-lossaudio.1 => /usr/lib/libossaudio.so.1
-ldvdread.8 => /usr/pkg/lib/libdvdread.so.8
-lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
-lbz2.1 => /usr/lib/libbz2.so.1
-lfontconfig.1 => /usr/pkg/lib/libfontconfig.so.1
[more]
>> To clarify: the error is telling you that the mplayer binary has
>> linked against that library, but the pkgsrc infrastructure has not
>> pulled it in as a dependency. Most of the time this shows where we
>> have incorrect dependencies, but will also show if illegal libraries
>> are somehow being pulled in from elsewhere in the system, which would
>> normally be caught during the build by the wrappers.
>
> I am sorry, I am not familiar enough with pkgsrc to debug & solve this
> by myself. Help!.
A few suggestions:
1) save the build output, and grep it for -lutil, libutil, etc. If you
can find where in the build it is even trying to look for a library
named util, that will help a lot.
2) look at the binary that was produced for mplayer, and use whatever
tool is appropriate to see if there is anything named util. (On
NetBSD this is ldd.)
3) Look in your entire system with find, after you have built the
package but before you have deleted the work directory, for anything
named libutil*, as in
find / -type f -name libutil\*
I did (1) and did not find util mentioned. I then looked at the link
line. The libs part has (extracted and wrapped):
-L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib
-L/usr/pkg/lib/pulseaudio -Wl,-R/usr/pkg/lib/pulseaudio -\
L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/pkg/lib/ffmpeg4
-Wl,-R/usr/pkg/lib/ffmpeg4 -fpie -pie
-ltermcap -lrt -lpng -lz -ljpeg -lgif -lossaudio -Wl,-R/usr/pkg/lib
--L/usr/pkg/lib -ldvdread Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lfreetype
--lfontconfig -lfribidi lass -lenca -lz -lbz2 -L/usr/pkg/lib/ffmpeg4
--lswscale -lswresample lavformat -lavcodec
--Wl,-rpath,/usr/pkg/lib/ffmpeg4 -lavutil L/usr/pkg/lib/ffmpeg4
--Wl,-rpath,/usr/pkg/lib/ffmpeg4 -lpostproc lpthread -rdynamic
--L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib ldvdnav -lpthread
--lm -lXext -lX11 -lpthread -lXss -lXv -lXvMC lXvMCW -lvdpau
--lXinerama -lXxf86vm -lXxf86dga -lSDL -lGL Wl,-R/usr/pkg/lib -lpulse
so I am suspicious of gif especially and somewhat ossaudio. But I can't
find any reference to libutil in those. So there is definitely
something funny going on here.
Home |
Main Index |
Thread Index |
Old Index