Re: vdr-epg-daemon does not compile on f32
Hi, I still do not know in which file the command Usage: /usr/bin/python3.7m-x86_64-config is called and what I need to change so that it can be compiled under F30. For help, I would be grateful. make[1]: Leaving directory '/home/martin/rpmbuild/BUILD/vdr-epg-daemon-1.1.146/epglv' Package python3.8-embed was not found in the pkg-config search path. Perhaps you should add the directory containing `python3.8-embed.pc' to the PKG_CONFIG_PATH environment variable Package 'python3.8-embed', required by 'virtual:world', not found Package python3.8 was not found in the pkg-config search path. Perhaps you should add the directory containing `python3.8.pc' to the PKG_CONFIG_PATH environment variable Package 'python3.8', required by 'virtual:world', not found Package python3.8-embed was not found in the pkg-config search path. Perhaps you should add the directory containing `python3.8-embed.pc' to the PKG_CONFIG_PATH environment variable Package 'python3.8-embed', required by 'virtual:world', not found Package python3.8 was not found in the pkg-config search path. Perhaps you should add the directory containing `python3.8.pc' to the PKG_CONFIG_PATH environment variable Package 'python3.8', required by 'virtual:world', not found g++ -rdynamic main.o update.o plugin.o epgdconfig.o channelmap.o series.o svdrpclient.o levenshtein.o episode.o tvdbmanager.o moviedbmanager.o tools/fuzzy.o tools/stringhelpers.o scraper/thetvdbscraper/thetvdbscraper.o scraper/thetvdbscraper/tvdbseries.o scraper/thetvdbscraper/tvdbmirrors.o scraper/thetvdbscraper/tvdbmedia.o scraper/thetvdbscraper/tvdbactor.o scraper/thetvdbscraper/tvdbepisode.o scraper/themoviedbscraper/themoviedbscraper.o scraper/themoviedbscraper/moviedbmovie.o scraper/themoviedbscraper/moviedbactor.o -L./lib -lhorchi -lrt -lz -larchive -ldl -lcrypto -luuid -L/usr/lib64/ -lmariadb Usage: /usr/bin/python3.7m-x86_64-config --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir -lpython3.7m -lcrypt -lpthread -ldl -lutil -lm-lcurl -lxml2 -lz -llzma -lm -ldl -L/usr/lib64 -lxslt -lxml2 -lm -lexslt -o epgd /bin/sh: --exec-prefix: command not found /bin/sh: --includes: command not found g++: error: Usage:: No such file or directory g++: error: missing argument to '--prefix' /bin/sh: --extension-suffix: command not found /bin/sh: --ldflags: command not found /bin/sh: --configdir: command not found /bin/sh: --libs: command not found /bin/sh: --help: command not found /bin/sh: --abiflags: command not found /bin/sh: --cflags: command not found make: *** [Makefile:71: epgd] Error 127 ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: vdr-epg-daemon does not compile on f32
I implemented Miro's suggestion, at least I tried. ## Add --embed flag for python 3.8 Support #if 0%{?fedora} >= 31 sed -i -e 's:$(shell python-config --libs):$(shell python3-config --libs --embed || python3-config --libs):' Makefile sed -i -e 's:$(shell pkg-config --cflags --libs jansson):$(shell pkg-config python3.8-embed --cflags --libs jansson || pkg-config python38 --cflags --libs jansson):' Makefile sed -i -e 's:$(shell pkg-config --libs libsystemd):$(shell pkg-config python3.8-embed --libs libsystemd || pkg-config python38 --libs libsystemd):' Makefile sed -i -e 's:$(shell pkg-config --libs libsystemd-daemon):$(shell pkg-config python3.8-embed --libs libsystemd-daemon || pkg-config python38 --libs libsystemd-daemon):' Makefile sed -i -e 's:CFLAGS += -std=c++11 -D__STDC_FORMAT_MACROS:CFLAGS += -D__STDC_FORMAT_MACROS:' Make.config sed -i -e 's:$(shell pkg-config --libs libsystemd):$(shell pkg-config python3.8-embed --libs libsystemd || pkg-config python3.8 --libs libsystemd):' lib/Makefile sed -i -e 's:$(shell pkg-config --cflags libsystemd):$(shell pkg-config python3.8-embed --cflags libsystemd || pkg-config python3.8 --cflags libsystemd):' lib/Makefile sed -i -e 's:$(shell pkg-config --libs libsystemd-daemon):$(shell pkg-config python3.8-embed --libs libsystemd-daemon || pkg-config python3.8 --libs libsystemd-daemon):' lib/Makefile sed -i -e 's:$(shell pkg-config --cflags libsystemd-daemon):$(shell pkg-config python3.8-embed --cflags libsystemd-daemon || pkg-config python3.8 --cflags libsystemd-daemon):' lib/Makefile #endif ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: vdr-epg-daemon does not compile on f32
On 21/08/2019 08:30, Tom Hughes wrote: On 21/08/2019 08:08, Martin Gansser wrote: can someone tell me what I need to change so that vdr-epg-daemon can compile on f30. Attached the rpm spec file [1] in which I have already made changes for python38. [1] https://martinkg.fedorapeople.org/ErrorReports/vdr-epg-daemon/vdr-epg-daemon.spec Well somehow your compile flags contain this: Usage: /usr/bin/python3.7m-x86_64-config --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir So something has invoked /usr/bin/python3.7m-x86_64-config with incorrect arguments expecting the output to be the flags to use for the compile and because the arguments are incorrect the output is actually a error message. So you need to examine the configure script and figure out what it is doing wrong when invoking that and fix it. It looks like Miro has already suggested the likely cause, that the script is being invoked with --embed and didn't understand that? Tom -- Tom Hughes (t...@compton.nu) http://compton.nu/ ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: vdr-epg-daemon does not compile on f32
On 21/08/2019 08:08, Martin Gansser wrote: can someone tell me what I need to change so that vdr-epg-daemon can compile on f30. Attached the rpm spec file [1] in which I have already made changes for python38. [1] https://martinkg.fedorapeople.org/ErrorReports/vdr-epg-daemon/vdr-epg-daemon.spec Well somehow your compile flags contain this: Usage: /usr/bin/python3.7m-x86_64-config --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir So something has invoked /usr/bin/python3.7m-x86_64-config with incorrect arguments expecting the output to be the flags to use for the compile and because the arguments are incorrect the output is actually a error message. So you need to examine the configure script and figure out what it is doing wrong when invoking that and fix it. Tom -- Tom Hughes (t...@compton.nu) http://compton.nu/ ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: vdr-epg-daemon does not compile on f32
Hi, can someone tell me what I need to change so that vdr-epg-daemon can compile on f30. Attached the rpm spec file [1] in which I have already made changes for python38. [1] https://martinkg.fedorapeople.org/ErrorReports/vdr-epg-daemon/vdr-epg-daemon.spec Regards Martin ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: vdr-epg-daemon does not compile on f32
I changed a few things in the spec file [1], but the compilation breaks on f30. [1] https://src.fedoraproject.org/rpms/vdr-epg-daemon/blob/master/f/vdr-epg-daemon.spec make[1]: Entering directory '/home/martin/rpmbuild/BUILD/vdr-epg-daemon-1.1.146/epglv' gcc -c -I/usr/include/mysql -fPIC -L/usr/lib64/mysql -L/usr/lib64/ -lmariadb -DMYSQL_DYNAMIC_PLUGIN -DDEBUG_MYSQL=0 -ggdb -fno-stack-protector -O -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c++11 -D__STDC_FORMAT_MACROS -shared src/epglv.c -o src/epglv.o cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C make[1]: Leaving directory '/home/martin/rpmbuild/BUILD/vdr-epg-daemon-1.1.146/epglv' make[1]: Entering directory '/home/martin/rpmbuild/BUILD/vdr-epg-daemon-1.1.146/epglv' gcc -c -I/usr/include/mysql -fPIC -L/usr/lib64/mysql -L/usr/lib64/ -lmariadb -DMYSQL_DYNAMIC_PLUGIN -DDEBUG_MYSQL=0 -ggdb -fno-stack-protector -O -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c++11 -D__STDC_FORMAT_MACROS -shared src/epglvbase.c -o src/epglvbase.o cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C make[1]: Leaving directory '/home/martin/rpmbuild/BUILD/vdr-epg-daemon-1.1.146/epglv' make[1]: Entering directory '/home/martin/rpmbuild/BUILD/vdr-epg-daemon-1.1.146/epglv' gcc -I/usr/include/mysql -fPIC -L/usr/lib64/mysql -L/usr/lib64/ -lmariadb -DMYSQL_DYNAMIC_PLUGIN -DDEBUG_MYSQL=0 -ggdb -fno-stack-protector -O -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c++11 -D__STDC_FORMAT_MACROS -shared -o mysqlepglv.so src/epglvbase.o src/epglv.o make[1]: Leaving directory '/home/martin/rpmbuild/BUILD/vdr-epg-daemon-1.1.146/epglv' Package python3.8-embed was not found in the pkg-config search path. Perhaps you should add the directory containing `python3.8-embed.pc' to the PKG_CONFIG_PATH environment variable Package 'python3.8-embed', required by 'virtual:world', not found Package python3.8 was not found in the pkg-config search path. Perhaps you should add the directory containing `python3.8.pc' to the PKG_CONFIG_PATH environment variable Package 'python3.8', required by 'virtual:world', not found Package python3.8-embed was not found in the pkg-config search path. Perhaps you should add the directory containing `python3.8-embed.pc' to the PKG_CONFIG_PATH environment variable Package 'python3.8-embed', required by 'virtual:world', not found Package python3.8 was not found in the pkg-config search path. Perhaps you should add the directory containing `python3.8.pc' to the PKG_CONFIG_PATH environment variable Package 'python3.8', required by 'virtual:world', not found g++ -rdynamic main.o update.o plugin.o epgdconfig.o channelmap.o series.o svdrpclient.o levenshtein.o episode.o tvdbmanager.o moviedbmanager.o tools/fuzzy.o tools/stringhelpers.o scraper/thetvdbscraper/thetvdbscraper.o scraper/thetvdbscraper/tvdbseries.o scraper/thetvdbscraper/tvdbmirrors.o scraper/thetvdbscraper/tvdbmedia.o scraper/thetvdbscraper/tvdbactor.o scraper/thetvdbscraper/tvdbepisode.o scraper/themoviedbscraper/themoviedbscraper.o scraper/themoviedbscraper/moviedbmovie.o scraper/themoviedbscraper/moviedbactor.o -L./lib -lhorchi -lrt -lz -larchive -ldl -lcrypto -luuid -L/usr/lib64/ -lmariadb Usage: /usr/bin/python3.7m-x86_64-config --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir -lpython3.7m -lcrypt -lpthread -ldl -lutil -lm-lcurl -lxml2 -lz -llzma -lm -ldl -L/usr/lib64 -lxslt -lxml2 -lm -lexslt -o epgd /bin/sh: --help: command not found /bin/sh: --extension-suffix: command not found /bin/sh: --configdir: command not found /bin/sh: --ldflags: command not found /bin/sh: --cflags: command not found /bin/sh: --libs: command not found /bin/sh: --exec-prefix: command not found /bin/sh: --includes: command not found /bin/sh: --abiflags: command not found g++: error: Usage:: No such file or directory g++: error: missing
Re: vdr-epg-daemon does not compile on f32
On 17. 08. 19 19:39, Martin Gansser wrote: When i use a if condition in the spec file [1], vdr-epg-deamon compiles fine on f31, but without it it fails. > [1] https://src.fedoraproject.org/rpms/vdr-epg-daemon/blob/master/f/vdr-epg-daemon.spec The upstream recommended way is to try to use --embed and if it doesn't work, use python-config without it. Pseudo: python3-config --embed || python3-config -- Miro Hrončok -- Phone: +420777974800 IRC: mhroncok ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: vdr-epg-daemon does not compile on f32
When i use a if condition in the spec file [1], vdr-epg-deamon compiles fine on f31, but without it it fails. make[1]: Entering directory '/home/martin/rpmbuild/BUILD/vdr-epg-daemon-1.1.146/epglv' gcc -c -I/usr/include/mysql -fPIC -L/usr/lib64/mysql -L/usr/lib64/ -lmariadb -DMYSQL_DYNAMIC_PLUGIN -DDEBUG_MYSQL=0 -ggdb -fno-stack-protector -O -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c++11 -D__STDC_FORMAT_MACROS -shared src/epglv.c -o src/epglv.o cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C make[1]: Leaving directory '/home/martin/rpmbuild/BUILD/vdr-epg-daemon-1.1.146/epglv' g++ -rdynamic main.o update.o plugin.o epgdconfig.o channelmap.o series.o svdrpclient.o levenshtein.o episode.o tvdbmanager.o moviedbmanager.o tools/fuzzy.o tools/stringhelpers.o scraper/thetvdbscraper/thetvdbscraper.o scraper/thetvdbscraper/tvdbseries.o scraper/thetvdbscraper/tvdbmirrors.o scraper/thetvdbscraper/tvdbmedia.o scraper/thetvdbscraper/tvdbactor.o scraper/thetvdbscraper/tvdbepisode.o scraper/themoviedbscraper/themoviedbscraper.o scraper/themoviedbscraper/moviedbmovie.o scraper/themoviedbscraper/moviedbactor.o -L./lib -lhorchi -lrt -lz -larchive -ldl -lcrypto -luuid -L/usr/lib64/ -lmariadb Usage: /usr/bin/python3.7m-x86_64-config --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir -ljansson -lsystemd -lcurl -lxml2 -lz -llzma -lm -ldl -L/usr/lib64 -lxslt -lxml2 -lm -lexslt -o epgd /bin/sh: --configdir: command not found /bin/sh: --includes: command not found /bin/sh: --abiflags: command not found /bin/sh: --exec-prefix: command not found /bin/sh: --cflags: command not found /bin/sh: --ldflags: command not found /bin/sh: --libs: command not found /bin/sh: --help: command not found /bin/sh: --extension-suffix: command not found g++: error: Usage:: No such file or directory g++: error: missing argument to '--prefix' make: *** [Makefile:71: epgd] Error 127 make: *** Waiting for unfinished jobs make[1]: Entering directory '/home/martin/rpmbuild/BUILD/vdr-epg-daemon-1.1.146/epglv' gcc -c -I/usr/include/mysql -fPIC -L/usr/lib64/mysql -L/usr/lib64/ -lmariadb -DMYSQL_DYNAMIC_PLUGIN -DDEBUG_MYSQL=0 -ggdb -fno-stack-protector -O -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c++11 -D__STDC_FORMAT_MACROS -shared src/epglvbase.c -o src/epglvbase.o cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C make[1]: Leaving directory '/home/martin/rpmbuild/BUILD/vdr-epg-daemon-1.1.146/epglv' make[1]: Entering directory '/home/martin/rpmbuild/BUILD/vdr-epg-daemon-1.1.146/epglv' gcc -I/usr/include/mysql -fPIC -L/usr/lib64/mysql -L/usr/lib64/ -lmariadb -DMYSQL_DYNAMIC_PLUGIN -DDEBUG_MYSQL=0 -ggdb -fno-stack-protector -O -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c++11 -D__STDC_FORMAT_MACROS -shared -o mysqlepglv.so src/epglvbase.o src/epglv.o make[1]: Leaving directory '/home/martin/rpmbuild/BUILD/vdr-epg-daemon-1.1.146/epglv' [1] https://src.fedoraproject.org/rpms/vdr-epg-daemon/blob/master/f/vdr-epg-daemon.spec Regards Martin ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: vdr-epg-daemon does not compile on f32
On 16. 08. 19 13:34, Martin Gansser wrote: Hi, i run the following command as mentioned on [1] $ fedpkg clone vdr-epg-daemon; cd vdr-epg-daemon; git merge master $ git add vdr-epg-daemon-makefile.patch $ fedpkg diff; fedpkg commit -p -c; fedpkg build --target=f32-python but this fails like you see here in the log-files [3] Can somebody tell me how to fix it ? I see undefined reference to `'. The build no longer links to libpython, resulting in undefined references to Python API like PyImport_Import. Code that embeds Python (rather than building an extension module) needs to pass `--embed` to any `python3-config --libs` invocation to build with Python 3.8. More information: https://docs.python.org/3.8/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build -- Miro Hrončok -- Phone: +420777974800 IRC: mhroncok ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org