[mythtv-commits] Ticket #13085: Fedora 24 -> 26: RPM build error: fatal error: stdlib.h: No such file or directory
MythTV
noreply at mythtv.org
Sun Mar 4 05:38:08 UTC 2018
#13085: Fedora 24 -> 26: RPM build error: fatal error: stdlib.h: No such file or
directory
----------------------------------+------------------------------
Reporter: udovdh@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: needs_triage
Component: Packaging | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+------------------------------
Comment (by udovdh@…):
I commented out lines 1004 and 1005 from the spec file:
https://github.com/MythTV/packaging/blob/master/rpm/mythtv.spec#L1004
This did not fix the issue:
{{{
# cd /usr/src/redhat/BUILD/mythtv-0.28.2/mythplugins/
# make
cd mytharchive/ && ( test -e Makefile || /usr/bin/qmake-qt5 -o Makefile
/usr/src/redhat/BUILD/mythtv-0.28.2/mythplugins/mytharchive/mytharchive.pro
QMAKE=/usr/bin/qmake-qt5 ) && make -f Makefile
make[1]: Entering directory
'/usr/src/redhat/BUILD/mythtv-0.28.2/mythplugins/mytharchive'
cd mytharchive/ && ( test -e Makefile || /usr/bin/qmake-qt5 -o Makefile
/usr/src/redhat/BUILD/mythtv-0.28.2/mythplugins/mytharchive/mytharchive/mytharchive.pro
QMAKE=/usr/bin/qmake-qt5 ) && make -f Makefile
make[2]: Entering directory
'/usr/src/redhat/BUILD/mythtv-0.28.2/mythplugins/mytharchive/mytharchive'
g++ -c -pipe -march=k8 -mtune=k8 -msse -msse2 -msse3 -m3dnow -O2 -g -pipe
-Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-m64 -fomit-frame-pointer -fomit-frame-pointer -fPIC -msse -pthread -g
-Wall -Wpointer-arith -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS
-fvisibility-inlines-hidden -Wmissing-declarations -Wno-switch
-Woverloaded-virtual -funit-at-a-time -fvisibility=hidden -fomit-frame-
pointer -std=gnu++11 -D_REENTRANT -Wall -W -DPIC -fPIC -D_GNU_SOURCE
-DPREFIX="/usr" -DMMX -Dusing_libcec -D_FILE_OFFSET_BITS=64 -DMPLUGIN_API
-DQT_NO_DEBUG -DQT_PLUGIN -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB
-DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -isystem
/usr/include/libxml2 -isystem /usr/include/X11
-I/root/rpmbuild/BUILD/mythtv-0.28.2/temp/usr/include -isystem
/usr/include -I/root/rpmbuild/BUILD/mythtv-0.28.2/temp/usr/include/mythtv
-I/root/rpmbuild/BUILD/mythtv-0.28.2/temp/usr/include/mythtv/libmythbase
-I/root/rpmbuild/BUILD/mythtv-0.28.2/temp/usr/include/mythtv/libmythui
-I/root/rpmbuild/BUILD/mythtv-0.28.2/temp/usr/include/mythtv/libmyth
-I/root/rpmbuild/BUILD/mythtv-0.28.2/temp/usr/include/mythtv/libavformat
-I/root/rpmbuild/BUILD/mythtv-0.28.2/temp/usr/include/mythtv/libswscale
-isystem /usr/include/qt5 -isystem /usr/include/qt5/QtOpenGL -isystem
/usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem
/usr/include/qt5/QtXml -isystem /usr/include/qt5/QtSql -isystem
/usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -I. -isystem
/usr/include/libdrm -I/usr/lib64/qt5/mkspecs/linux-g++ -o main.o main.cpp
In file included from /usr/include/c++/7/ext/string_conversions.h:41:0,
from /usr/include/c++/7/bits/basic_string.h:6349,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from main.cpp:8:
/usr/include/c++/7/cstdlib:75:15: fatal error: stdlib.h: No such file or
directory
#include_next <stdlib.h>
^~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:796: main.o] Error 1
make[2]: Leaving directory
'/usr/src/redhat/BUILD/mythtv-0.28.2/mythplugins/mytharchive/mytharchive'
make[1]: *** [Makefile:48: sub-mytharchive-make_first] Error 2
make[1]: Leaving directory
'/usr/src/redhat/BUILD/mythtv-0.28.2/mythplugins/mytharchive'
make: *** [Makefile:46: sub-mytharchive-make_first] Error 2
}}}
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13085#comment:8>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list