https://bugzilla.redhat.com/show_bug.cgi?id=1093407
--- Comment #4 from Antonio Trande <anto.tra...@gmail.com> --- (In reply to MartinKG from comment #3) > > - Optimization flags are not honored. > > (http://fedoraproject.org/wiki/Packaging:Guidelines#Compiler_flags) > > > > if i add the optflags as below, > > %build > # make %{?_smp_mflags} all > make CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} -fPIC" %{?_smp_mflags} > all > > the compilation fails with the error message: > > + cd vdr-epg-daemon-eb7f12a6c44b3615b5ecf6b2c4b7bb354ecc5d87 > + make 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches > -m64 -mtune=generic -fPIC' 'CXXFLAGS=-O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong > --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC' > -j3 > g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches > -m64 -mtune=generic -fPIC -c -D_GNU_SOURCE -DTARGET='"epgd"' > -DPLGDIR='"/usr/lib64/epgd"' -DUSEMD5 -DUSEUUID -DUSELIBXML -DUSELIBARCHIVE > -I/usr/include/libxml2 -I/usr/include/libxml2 -o lib/db.o lib/db.c > lib/db.c:9:20: fatal error: errmsg.h: No such file or directory > #include <errmsg.h> > ^ > compilation terminated. > > have you any idea how to fix this ? The '-I/usr/include/mysql' variabile is missing. 'errmsg.h' is an header file from 'mariadb-devel'. Try to patch 'Makefile.config' in main source directory in order to respect both compilation flags from upstream and from Fedora guidelines. Remember that are used both gcc and g++ (they need CFLAGS and CXXFLAGS respectively). -- You are receiving this mail because: You are on the CC list for the bug. You are always notified about changes to this product and component _______________________________________________ package-review mailing list package-review@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/package-review