issues building moc (music on console) player
Hello listmates! I'm trying to build Music On Console (MOC) from source locally in my openSUSE tumbleweed machine, but the configure step reports an error: "configure: error: POPT (libpopt) not found" It seems that the linker needs a file named 'libpopt.la' to resolve the name and location of the POPT library, but no such file was installed. I search in YaST and only find something like libpopt0 but that package doesn't include the file needed. The MOC application builds without error on the build.o.o. And I have submited a request (#966465) from my personal repo to official repo with a patch. Is there an additional POPT developers package which I need to install locally in order to get 'libpopt.la', or is there some other reason I'm not able to build MOC successfully on my system? Kind regards. -- ------------------- GPG Key: 0xcc742e8dc9b7e22a Fingerprint = 6FE2 3B1F AAC8 E5B7 63EA 88A9 CC74 2E8D C9B7 E22A Aprende a proteger la privacidad de tu correo: https://emailselfdefense.fsf.org/es/ Mi blog sobre openSUSE, GNU/Linux y software libre: https://victorhckinthefreeworld.com/ Herramientas para proteger tu privacidad https://victorhck.gitlab.io/privacytools-es/
Hi there, On Mon, 18 Apr 2022, 19:54:00 +0200, victorhck wrote:
Hello listmates!
I'm trying to build Music On Console (MOC) from source locally in my openSUSE tumbleweed machine, but the configure step reports an error:
"configure: error: POPT (libpopt) not found"
It seems that the linker needs a file named 'libpopt.la' to resolve the name and location of the POPT library, but no such file was installed. I search in YaST and only find something like libpopt0 but that package doesn't include the file needed.
The MOC application builds without error on the build.o.o. And I have submited a request (#966465) from my personal repo to official repo with a patch.
Is there an additional POPT developers package which I need to install locally in order to get 'libpopt.la', or is there some other reason I'm not able to build MOC successfully on my system?
probably some strange naming convention here: you need the package "popt-devel".
Kind regards.
HTH, cheers. l8er manfred
On Monday 2022-04-18 20:16, Manfred Hollstein wrote:
"configure: error: POPT (libpopt) not found"
probably some strange naming convention here: you need the package "popt-devel".
Nothing strange about it. The upstream project name is popt, and hence the package is called popt (and there's a popt-1.xyz.src.rpm on the download servers).
On Mon, 18 Apr 2022, 20:26:36 +0200, Jan Engelhardt wrote:
On Monday 2022-04-18 20:16, Manfred Hollstein wrote:
"configure: error: POPT (libpopt) not found"
probably some strange naming convention here: you need the package "popt-devel".
Nothing strange about it. The upstream project name is popt, and hence the package is called popt (and there's a popt-1.xyz.src.rpm on the download servers).
yes, you're right, of course. The "Requires:" in the .spec file of the OP should look like Requires: pkgconfig(popt) Cheers. l8er manfred
On Mon, 18 Apr 2022, 20:48:19 +0200, Manfred Hollstein wrote:
On Mon, 18 Apr 2022, 20:26:36 +0200, Jan Engelhardt wrote:
On Monday 2022-04-18 20:16, Manfred Hollstein wrote:
"configure: error: POPT (libpopt) not found"
probably some strange naming convention here: you need the package "popt-devel".
Nothing strange about it. The upstream project name is popt, and hence the package is called popt (and there's a popt-1.xyz.src.rpm on the download servers).
yes, you're right, of course. The "Requires:" in the .spec file of the OP should look like
Requires: pkgconfig(popt)
Still wrong, it should look as follows: BuildRequires: pkgconfig(popt) Sorry for the noise ;) Cheers. l8er manfred
Thanks for your answers... But I'm not very sure how to fix my problem. Should I install something to compile moc player locally without errors with libpop? Greetings.
Am 19.04.22 um 18:47 schrieb victorhck@mailbox.org:
Thanks for your answers... But I'm not very sure how to fix my problem.
The answers diverted to how to the specfile should look like, which is already fine.
Should I install something to compile moc player locally without errors with libpop?
Yes, as instructed, install "popt-devel". You can do it directly, or by naming the pkgconfig(popt) capability: skylab:/home/ben #zypper install 'pkgconfig(popt)' Loading repository data... Reading installed packages... 'pkgconfig(popt)' not found in package names. Trying capabilities. Resolving package dependencies... The following NEW package is going to be installed: popt-devel 1new package to install. Overall download size: 28.3 KiB. Already cached: 0 B. After the operation, additional 29.1 KiB will be used. Continue? [y/n/v/...? shows all options] (y): n skylab:/home/ben #zypper install popt-devel Loading repository data... Reading installed packages... Resolving package dependencies... The following NEW package is going to be installed: popt-devel 1new package to install. Overall download size: 28.3 KiB. Already cached: 0 B. After the operation, additional 29.1 KiB will be used. Continue? [y/n/v/...? shows all options] (y): n skylab:/home/ben # - Ben
El 19/4/22 a las 19:28, Ben Greiner escribió:
Yes, as instructed, install "popt-devel". You can do it directly, or by naming the pkgconfig(popt) capability:
skylab:/home/ben #zypper install 'pkgconfig(popt)' Loading repository data... Reading installed packages... 'pkgconfig(popt)' not found in package names. Trying capabilities. Resolving package dependencies...
The following NEW package is going to be installed: popt-devel
1new package to install. Overall download size: 28.3 KiB. Already cached: 0 B. After the operation, additional 29.1 KiB will be used. Continue? [y/n/v/...? shows all options] (y): n skylab:/home/ben #zypper install popt-devel Loading repository data... Reading installed packages... Resolving package dependencies...
The following NEW package is going to be installed: popt-devel
1new package to install. Overall download size: 28.3 KiB. Already cached: 0 B. After the operation, additional 29.1 KiB will be used. Continue? [y/n/v/...? shows all options] (y): n skylab:/home/ben #
- Ben
Thanks! the issue with libpopt now it's solved... but, now I get this new error! decoder.c:23:10: fatal error: ltdl.h: No such file or directory 23 | #include <ltdl.h> | ^~~~~~~~ compilation terminated. Well, that's enough for me, since I'm not a developer!! :) Maybe something else that I have to install, check, etc... So I left the task to try to compile moc player locally. I patched the moc in build.o.o and now works fine. If that patch is included upstream, it's still necessary to keep in the build.o.o repo? or then there's not needed anymore to be declared in .spec file? Thanks a lot for your help and support!! Greetings. -- ------------------- GPG Key: 0xcc742e8dc9b7e22a Fingerprint = 6FE2 3B1F AAC8 E5B7 63EA 88A9 CC74 2E8D C9B7 E22A Aprende a proteger la privacidad de tu correo: https://emailselfdefense.fsf.org/es/ Mi blog sobre openSUSE, GNU/Linux y software libre: https://victorhckinthefreeworld.com/ Herramientas para proteger tu privacidad https://victorhck.gitlab.io/privacytools-es/
Hello, Am Montag, 25. April 2022, 20:22:03 CEST schrieb victorhck:
Thanks! the issue with libpopt now it's solved... but, now I get this new error!
decoder.c:23:10: fatal error: ltdl.h: No such file or directory 23 | #include <ltdl.h> | ^~~~~~~~ compilation terminated.
# zypper search --file-list /ltdl.h Loading repository data... Reading installed packages... S | Name | Summary | Type ---+---------+----------------------------------+-------- i+ | libtool | A Tool to Build Shared Libraries | package (Searching for "/ltdl.h" instead of just "ltdl.h" prevents false matches on files like "fooltdl.h" - but in this case "ltdl.h" would give you the same result.)
If that patch is included upstream, it's still necessary to keep in the build.o.o repo? or then there's not needed anymore to be declared in .spec file?
Someone should test the above for 12.1 and add the 12.1 specific info. I wonder sometimes who this 'someone' is who is being told to do so many
You should keep it in the .spec until you package the new upstream version that includes the patch. Regards, Christian Boltz -- things. He/she seems to be such a lazy ass - considering most of these things don't get done... [> Gref Freemyer and Jos Poortvliet in opensuse-factory]
On Mon, Apr 18, 2022 at 1:54 PM victorhck <victorhck@mailbox.org> wrote:
It seems that the linker needs a file named 'libpopt.la' to resolve the name and location of the POPT library, but no such file was installed. I search in YaST and only find something like libpopt0 but that package doesn't include the file needed.
If any tool or configure script is searching for libpopt.la..it is wrong.. show us the code and we can help you to fix it. A very large amount of tedious work was done, ages ago by developers including myself to get rid of these files and all the ills they bring in, scripts should be looking for dependencies using pkgconfig.
participants (7)
-
Ben Greiner
-
Christian Boltz
-
Cristian Rodríguez
-
Jan Engelhardt
-
Manfred Hollstein
-
victorhck
-
victorhck@mailbox.org