Re: FreeBSD Port: emulators/wine-devel configure failed unexpectedly

From: Fernando_Apesteguía <fernando.apesteguia_at_gmail.com>
Date: Thu, 04 Nov 2021 08:01:53 UTC
On Thu, Nov 4, 2021 at 1:43 AM Damjan Jovanovic <damjan.jov@gmail.com> wrote:
>
> When JACK is on, does it appear in:
> pkg-config openal --libs
> ?
>
> If no, that's a bug in OpenAL, it should generate pkg-config files with the jack library. If yes, that's a bug in Wine, it should use pkg-config when present instead of trying to guess in configure.ac how to link to the library itself.

With

Options        :
        CONFIG         : on
        EXAMPLES       : on
        JACK           : on
        OSS            : on
        PORTAUDIO      : off
        PULSEAUDIO     : off
        SDL            : off
        SNDIO          : off

root@13_0amd64-default:~ # pkg info -l openal-soft | grep pkgconfig
        /usr/local/libdata/pkgconfig/openal.pc

root@13_0amd64-default:~ # pkg-config openal --libs
-L/usr/local/lib -lopenal

I think at this point we should open a PR for further reference.
>
>
> On Wed, Nov 3, 2021 at 11:27 PM Miroslav Lachman <000.fbsd@quip.cz> wrote:
>>
>> On 03/11/2021 16:01, Fernando Apesteguía wrote:
>> > On Wed, Nov 3, 2021 at 12:04 PM Miroslav Lachman <000.fbsd@quip.cz> wrote:
>> >>
>> >> On 03/11/2021 11:09, Fernando Apesteguía wrote:
>> >>> On Wed, Nov 3, 2021 at 10:46 AM Miroslav Lachman <000.fbsd@quip.cz> wrote:
>> >>>>
>> >>>> On 03/11/2021 09:03, Fernando Apesteguía wrote:
>> >>>>> On Tue, Nov 2, 2021 at 10:13 PM Miroslav Lachman <000.fbsd@quip.cz> wrote:
>> >>>>>>
>> >>>>>> Hello,
>> >>>>>> I am trying to build wine-devel in poudriere for FreeBSD 12.2 amd64 but
>> >>>>>> it fails with some openal error. I tried it again with updated ports
>> >>>>>> tree from yesterday but the same error again.
>> >>>>>>
>> >>>>>> checking for fontconfig/fontconfig.h... yes
>> >>>>>> checking for -lfontconfig... libfontconfig.so.1
>> >>>>>> checking jpeglib.h usability... yes
>> >>>>>> checking jpeglib.h presence... yes
>> >>>>>> checking for jpeglib.h... yes
>> >>>>>> checking for -ljpeg... libjpeg.so.8
>> >>>>>> checking for -lopenal... not found
>> >>>>>> configure: error: libopenal 64-bit development files not found (or too
>> >>>>>> old), OpenAL won't be supported.
>> >>>>>> This is an error since --with-openal was requested.
>> >>>>>> ===>  Script "configure" failed unexpectedly.
>> >>>>>> Please report the problem to damjan.jov@gmail.com [maintainer] and
>> >>>>>> attach the
>> >>>>>> "/wrkdirs/usr/ports/emulators/wine-devel/work/wine-6.20/config.log"
>> >>>>>> including
>> >>>>>> the output of the failure of your make command. Also, it might be a good
>> >>>>>> idea
>> >>>>>> to provide an overview of all packages installed on your system (e.g. a
>> >>>>>> /usr/local/sbin/pkg-static info -g -Ea).
>> >>>>>> *** Error code 1
>> >>>>>>
>> >>>>>> Stop.
>> >>>>>> make: stopped in /usr/ports/emulators/wine-devel
>> >>>>>> =>> Cleaning up wrkdir
>> >>>>>> ===>  Cleaning for wine-devel-6.20,1
>> >>>>>> build of emulators/wine-devel | wine-devel-6.20,1 ended at Tue Nov  2
>> >>>>>> 20:43:50 CET 2021
>> >>>>>> build time: 00:31:11
>> >>>>>> !!! build failure encountered !!!
>> >>>>>>
>> >>>>>>
>> >>>>>> I don't have a config.log available (don't have SAVE_WRKDIR=yes in
>> >>>>>> poudriere.conf) but I can send build logs from poudriere for any package
>> >>>>>> if it helps.
>> >>>>>>
>> >>>>>> What can cause this error?
>> >>>>>
>> >>>>> checking for -lopenal... not found
>> >>>>> configure: error: libopenal 64-bit development files not found (or too
>> >>>>> old), OpenAL won't be supported.
>> >>>>> This is an error since --with-openal was requested.
>> >>>>>
>> >>>>> The configure script is not finding your openal library. The port has
>> >>>>> the OPENAL option ON by default.
>> >>>>> In a clean environment (poudriere) openal-soft is built as a
>> >>>>> dependency and properly detected.
>> >>>>>
>> >>>>> How are you trying to build emulators/wine-devel?
>> >>>>
>> >>>> I am building it in a poudriere with "poudrieer bulk", 547 ports were
>> >>>> built, only wine-devel failed.
>> >>>>
>> >>>> The openal was built and installed during wine-devel build.
>> >>>>
>> >>>> More from the log:
>> >>>> ===> The following configuration options are available for
>> >>>> wine-devel-6.20,1:
>> >>>
>> >>> This is a bit outdated. Current version is 6.20_1,1.
>> >>>
>> >>> I'm build testing in 12.2 amd64. My test was in 13.0.
>> >>>
>> >>>>         CUPS=off: CUPS printing system support
>> >>>>         DOCS=on: Build and/or install documentation
>> >>>>         DOSBOX=off: Use DOSBox to run MS-DOS programs
>> >>>>         GECKO=off: Bundle Gecko MSI package for Wine
>> >>>>         GNUTLS=on: SSL/TLS support via GnuTLS
>> >>>>         LDAP=off: LDAP protocol support
>> >>>>         LIBXSLT=off: Use libxslt (only used by msxml3.dll)
>> >>>>         MONO=off: Bundle Mono MSI package for Wine
>> >>>>         MPG123=off: MP3 decoding support via mpg123
>> >>>>         OPENAL=on: Audio support via OpenAL
>> >>>>         STAGING=off: Include Wine Staging patchset (experimental&unsupported)
>> >>>>         V4L=off: Video 4 Linux support
>> >>>>         WINEMAKER=off: Fully support winemaker (requires Perl)
>> >>>>         X11=on: X11 (graphics) support
>> >>>>
>> >>>>
>> >>>> ===>   wine-devel-6.20,1 depends on shared library: libopenal.so.1 - not
>> >>>> found
>> >>>> ===>   Installing existing package /packages/All/openal-soft-1.21.1_3.pkg
>> >>>> [pkg.example.com] Installing openal-soft-1.21.1_3...
>> >>>> [pkg.example.com] `-- Installing jackit-1.9.16_1...
>> >>>> [pkg.example.com] |   `-- Installing dbus-1.12.20_5...
>> >>>> [pkg.example.com] |   | `-- Installing libICE-1.0.10,1...
>> >>>> [pkg.example.com] |   | `-- Extracting libICE-1.0.10,1: .......... done
>> >>>> [pkg.example.com] |   | `-- Installing libSM-1.2.3,1...
>> >>>> [pkg.example.com] |   | `-- Extracting libSM-1.2.3,1: ........ done
>> >>>> ..
>> >>>> ..
>> >>>> [pkg.example.com] `-- Extracting qt5-widgets-5.15.2_3: .......... done
>> >>>> Building the Shared MIME-Info database cache
>> >>>> Generating GTK icon cache for /usr/local/share/icons/Adwaita
>> >>>> Generating GTK icon cache for /usr/local/share/icons/hicolor
>> >>>> [pkg.example.com] Extracting openal-soft-1.21.1_3: .......... done
>> >>>> Building the Shared MIME-Info database cache
>> >>>> Generating GTK icon cache for /usr/local/share/icons/Adwaita
>> >>>> Generating GTK icon cache for /usr/local/share/icons/hicolor
>> >>>> ..
>> >>>> ..
>> >>>> ===>   wine-devel-6.20,1 depends on shared library: libopenal.so.1 -
>> >>>> found (/usr/local/lib/libopenal.so.1)
>> >>>> ===>   Returning to build of wine-devel-6.20,1
>> >>>> ===>   wine-devel-6.20,1 depends on shared library: libGLU.so - found
>> >>>> (/usr/local/lib/libGLU.so)
>> >>>> ..
>> >>>>
>> >>>> but at the end:
>> >>>> checking for -lopenal... not found
>> >>>> configure: error: libopenal 64-bit development files not found (or too
>> >>>> old), OpenAL won't be supported.
>> >>>>
>> >>>> That's why I am asking.
>> >>>>
>> >>>> Full log can be found https://pastebin.com/82yNwrVB
>> >>
>> >> I got the same error with wine-devel-6.20_1,1
>> >>
>> >> https://pastebin.com/TSxvVx4Q
>> >
>> > I can't see any significant differences between your log and mine
>> > prior to the error report.
>> >
>> > You have some global options like never use X11 OPTION and such, but I
>> > don't see how that can affect.
>> >
>> > If you do a poudriere testport -i and do "pkg info openal-soft", what
>> > output do you get?
>> >
>> > Also, can you provide the file
>> > /wrkdirs/usr/ports/emulators/wine-devel/work/wine-6.20/config.log?
>>
>> It seems the problem is with JACK options enabled. Openal was built with
>> this options:
>>
>>      "CONFIG": "on",
>>      "EXAMPLES": "on",
>>      "JACK": "on",
>>      "OSS": "on",
>>      "PORTAUDIO": "off",
>>      "PULSEAUDIO": "off",
>>      "SDL": "off",
>>      "SNDIO": "off"
>>
>> config.log from wine-6.20 can be found https://pastebin.com/C80HLJYm
>>
>> There are some interesting parts:
>>
>> configure:7545: checking OpenAL/al.h usability
>> configure:7545: gcc10 -m64 -c -O2 -pipe  -fstack-protector-strong
>> -Wl,-rpath=/usr/local/lib/gcc10 -isystem /usr/local/include
>> -fno-strict-aliasing  -isystem /usr/local/include conftest.c >&5
>> conftest.c:55:10: fatal error: OpenAL/al.h: No such file or directory
>>     55 | #include <OpenAL/al.h>
>>        |          ^~~~~~~~~~~~~
>> compilation terminated.
>> configure:7545: $? = 1
>> configure: failed program was:
>> | /* confdefs.h */
>> | #define PACKAGE_NAME "Wine"
>> | #define PACKAGE_TARNAME "wine"
>> | #define PACKAGE_VERSION "6.20"
>>
>>
>> | #include <OpenAL/al.h>
>> configure:7545: result: no
>> configure:7545: checking OpenAL/al.h presence
>> configure:7545: cpp10 -isystem /usr/local/include conftest.c
>> conftest.c:22:10: fatal error: OpenAL/al.h: No such file or directory
>>     22 | #include <OpenAL/al.h>
>>        |          ^~~~~~~~~~~~~
>> compilation terminated.
>> configure:7545: $? = 1
>> configure: failed program was:
>>
>>
>> | #include <OpenAL/al.h>
>> configure:7545: result: no
>> configure:7545: checking for OpenAL/al.h
>> configure:7545: result: no
>> configure:7545: checking for OpenCL/opencl.h
>> configure:7545: result: no
>> configure:7545: checking QuickTime/ImageCompression.h usability
>> configure:7545: gcc10 -m64 -c -O2 -pipe  -fstack-protector-strong
>> -Wl,-rpath=/usr/local/lib/gcc10 -isystem /usr/local/include
>> -fno-strict-aliasing  -isystem /usr/local/include conftest.c >&5
>> conftest.c:55:10: fatal error: QuickTime/ImageCompression.h: No such
>> file or directory
>>     55 | #include <QuickTime/ImageCompression.h>
>>        |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> compilation terminated.
>> configure:7545: $? = 1
>> configure: failed program was:
>>
>>
>> configure:15271: result: libjpeg.so.8
>> configure:15298: checking for -lopenal
>> configure:15323: gcc10 -m64 -o conftest -O2 -pipe
>> -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc10 -isystem
>> /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include
>> -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc10
>> -L/usr/local/lib/gcc10  conftest.c -lopenal  -L/usr/local/lib >&5
>> /usr/local/bin/ld: /usr/local/lib/libopenal.so: undefined reference to
>> `jack_error_callback'
>> collect2: error: ld returned 1 exit status
>> configure:15323: $? = 1
>> configure: failed program was:
>> | /* confdefs.h */
>> | #define PACKAGE_NAME "Wine"
>> | #define PACKAGE_TARNAME "wine"
>> | #define PACKAGE_VERSION "6.20"
>>
>>
>> ac_cv_header_OpenAL_al_h=no
>>
>> ac_cv_lib_soname_openal=''
>>
>> I tried to turn JACK option off and rebuild wine (poudriere bulk) but it
>> took 207 packages for rebuild so I will wait about 30 hours for the
>> result (there are huge ports like firefox, thunderbird etc. which need
>> to be rebuild when openal option changed)
>>
>> Anyway if this (JACK) is the issue it needs to be fixed. JACK is valid
>> option for openal.
>>
>> Miroslav Lachman