Results 1 to 7 of 7

Thread: Cannot find package providing file my_global.h

  1. #1

    Default Cannot find package providing file my_global.h

    I need to compile a framework using MySQL, in particular, there is a header my_global.h included.

    In Leap, it was provided by a package libmysqlclient-devel. In Tumbleweed, there is no libmysqlclient-devel any more, and I could not find the file in question in any of mysql-related devel packages I've tried. AFAIK, there is no way in openSUSE to query which package owns a missing file.

    I am not familiar with the way Tumbleweed packages MySQL- and MariaDB-related stuff. Could someone advice me what to do with missing my_global.h?

  2. #2
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,728
    Blog Entries
    2

    Default Re: Cannot find package providing file my_global.h

    Quote Originally Posted by xppblbl View Post
    I need to compile a framework using MySQL, in particular, there is a header my_global.h included.

    In Leap, it was provided by a package libmysqlclient-devel. In Tumbleweed, there is no libmysqlclient-devel any more, and I could not find the file in question in any of mysql-related devel packages I've tried. AFAIK, there is no way in openSUSE to query which package owns a missing file.

    I am not familiar with the way Tumbleweed packages MySQL- and MariaDB-related stuff. Could someone advice me what to do with missing my_global.h?
    Try some zypper searches. I don't have Tumbleweed to demonstrate. But the sort of thing you could play with is

    Code:
    zypper se --provides  abcde
    and/or
    Code:
    zypper se --provides  --match-exact abcde
    Have a look at man zypper to see the correct useage/usages
    Last edited by swerdna; 21-Jan-2018 at 02:12.
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  3. #3
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,728
    Blog Entries
    2

    Default Re: Cannot find package providing file my_global.h

    Actually, man zypper is big, so if you want to read it at leisure you could write the book out with this
    Code:
    man zypper ~/Desktop/ManZypper
    then maybe search through the book for instances of --provides (or something like that).
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  4. #4

    Default Re: Cannot find package providing file my_global.h

    I've read the manuals and tried some additional search on the web. Unfortunately, it seems zypper with --provides is able to find only stuff included in the package "Provides" list, and cannot help with files that are contained in the package but not mentioned in this list.

    Looks like the file in question, my_globals.h, is not mentioned in the "Provides" list of any package. Besides, I've checked Leap 42.3 — there it is contained in libmysqlclient-devel, but not included in it's "Provides" list as well.

    And "zypper search --file-list" is able to find any file, but only for packages that are already installed, just like "rpm -qf /path/to/file".

    I've found some threads at openSUSE site, where people agree that zypper does not provide any functionality for searching a package that contains a particular file (in case neither the file is mentioned in the "Provides" list of the package nor the package is already installed). See, e.g., https://forums.opensuse.org/showthre...-provides-file, https://forums.opensuse.org/showthre...articular-file, or https://features.opensuse.org/308437.

    Looks like we need an advice of a person who is familiar with packaging of MySQL in Tumbleweed and just knows where this file is located. Or maybe there is some non-obvious way I've missed.

    Currently I've had to switch to Leap 42.3, where I simply know that my_globals.h is included in libmysqlclient-devel.

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,474
    Blog Entries
    2

    Default Re: Cannot find package providing file my_global.h

    First,
    I'm pretty sure the file you want is "my_global.h" and not "my_globals.h"
    Hope that isn't affecting your search...

    As for recommendations...
    - You can submit a "feature request" to have the missing package built for TW, but even if that were granted it might take awhile for the package to become available.
    - If all you need is that one file, you can try using the file you found in the LEAP package. Within each major version, the majority of files don't change so the chances are the older file will still provide the functionality you need.
    - You can try downgrading your TW mysql client, and use the LEAP mysql client instead so that both the app and the development header files match.

    HTH,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,215
    Blog Entries
    15

    Default Re: Cannot find package providing file my_global.h

    Hi
    It was changed by the looks https://jira.mariadb.org/browse/MDEV-13773 you need to update your code.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7
    Join Date
    Jul 2009
    Location
    Köln
    Posts
    23

    Default Re: Cannot find package providing file my_global.h

    Perhaps I am hijacking the thread, but I think I have a very similar problem and, even though I opened a specific thread, it has been very quiet so far.

    The issue at first is the same, I cannot compile because 'make' reports that my_global.h is missing.
    It gets stranger very quickly, because I am trying to compile PHP 7.1.28 (which was just the latest 7.1 version I've found at php.net).

    From my searches, it seems indeed that my_global.h is nowhere to be found, for Leap 15.0.

    I did find it inside the package libmysqlclient-devel-10.0.35-35.1, but that was release only for Leap 42.3.

    I am puzzled because I cannot be the first one to try to compile PHP for 15.0... 15.0 has been around for a while now... how come these packages are not available (yet) ?

    I looked at the Build service mentioned earlier, but I cannot see a way to request a certain package to be ported.

    Can someone point my nose to the right page ?

    Thanks for any clue
    Dario
    4 x AMD A8-7600 Radeon R7, 10 Cores - OpenSUSE 42.3 (4.4.175-89) - KDE 5.32.0 - Qt 5.6.2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •