[Rpm-maint] [rpm-software-management/rpm] Not found symbol of poptGetContext in popt library during compilation. (#496)

Yi-Soo An notifications at github.com
Mon Aug 6 09:45:47 UTC 2018


I am building flatpak for gnome-software.  
However, while I build it with manifest file, compilation of rpm always causes as below, although I have checked that the symbol of poptGetContext is in the popt library by ``nm -D ./popt.so | grep poptGetContext``.
```
checking magic.h usability... yes
checking magic.h presence... yes
checking for magic.h... yes
checking for magic_open in -lmagic... yes
checking popt.h usability... yes
checking popt.h presence... yes
checking for popt.h... yes
checking for poptGetContext in -lpopt... no
configure: error: missing required library popt
Error: module rpm: Child process exited with code 1
```

This is a flatpak manifest file,
```
{
    "app-id" : "org.gnome.Software",
    "runtime" : "org.gnome.Platform",
    "runtime-version" : "master",
    "sdk" : "org.gnome.Sdk",
    "command" : "gnome-software",
    "tags" : [
        "nightly"
    ],
    "desktop-file-name-prefix" : "(Nightly) ",
    "finish-args" : [
        "--share=ipc",
        "--socket=x11",
        "--socket=wayland",
        "--filesystem=host",
        "--filesystem=xdg-run/dconf",
        "--filesystem=~/.config/dconf:ro",
        "--talk-name=ca.desrt.dconf",
        "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
    ],
    "build-options" : {
        "cflags" : "-O2 -g",
        "cxxflags" : "-O2 -g",
        "env" : {
            "V" : "1"
        }
    },
    "cleanup" : [
        "/include",
        "/lib/pkgconfig",
        "/share/pkgconfig",
        "/share/aclocal",
        "/man",
        "/share/man",
        "/share/gtk-doc",
        "/share/vala",
        "*.la",
        "*.a"
    ],
    "modules" : [
        {
            "name" : "popt",
            "sources" : [
                {
                    "type" : "archive",
                    "url" : "http://rpm5.org/files/popt/popt-1.16.tar.gz",
                    "sha256" : "e728ed296fe9f069a0e005003c3d6b2dde3d9cad453422a10d6558616d304cc8"
                }
            ]
        },
        {
            "name" : "rpm",
            "sources" : [
                {
                    "type" : "git",
                    "url" : "https://github.com/rpm-software-management/rpm",
                    "tag" : "rpm-4.14.2-rc1"
                }
            ]
        },
        {
            "name" : "appstream-glib",
            "buildsystem" : "meson",
            "sources" : [
                {
                    "type" : "git",
                    "url" : "https://github.com/hughsie/appstream-glib",
                    "tag" : "appstream_glib_0_7_10"
                }
            ]
        },
        {
            "name" : "sqlite3",
            "cleanup" : [
                "/include",
                "/lib/pkgconfig"
            ],
            "sources" : [
                {
                    "type" : "archive",
                    "url" : "https://github.com/mackyle/sqlite/archive/version-3.24.0.tar.gz",
                    "sha256" : "3e231e306b0da2cf3058943a5669cb6bd58fa0dcf327872789307b191ff46b00"
                }
            ]
        },
        {
            "name" : "gnome-software",
            "sources" : [
                {
                    "type" : "git",
                    "url" : "https://gitlab.gnome.org/GNOME/gnome-software"
                }
            ]
        }
    ]
}
```
I am not sure yet this is from rpm, but can somebody help me please?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/496
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180806/f6332cd5/attachment.html>


More information about the Rpm-maint mailing list