-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some undeclared variables cause build failures with tightended cflags #67
Comments
Hm I don't get that error on gcc 8.0.1 on Ubuntu. Also, the variable |
This is using default build flags on Fedora, and gcc-8.2.1, I believe they're a lot more strict than Ubuntu. The full failure line is: libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -I.. -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 -c server.c -fPIC -DPIC -o .libs/liblo_la-server.o server.c: In function 'lo_server_resolve_hostname': server.c:303:10: error: 'it' undeclared (first use in this function); did you mean 'int'? for (it = ai; it; it = it->ai_next) { ^~ int server.c:303:10: note: each undeclared identifier is reported only once for each function it appears in server.c:303:15: error: 'ai' undeclared (first use in this function) for (it = ai; it; it = it->ai_next) { ^~ make[3]: *** [Makefile:824: liblo_la-server.lo] Error 1 make[3]: Leaving directory '/builddir/build/BUILD/liblo-0.29/src' The file redhat-hardened-cc1 contains: *cc1_options: + %{!r:%{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIE}}}}}} And the file redhat-annobin-cc1 contains: *cc1_options: + %{!-fno-use-annobin:%{!iplugindir*:%:find-plugindir()} -fplugin=annobin} |
I ran a fedora docker container and installed gcc 8 and wget:
I get no errors. I have no idea what cc1_options is supposed to indicate, I'm not familiar with that syntax. |
Sorry, just figured out that a browser extension was messing with my "Comment" button, didn't meant to close the issue. |
I'll try again with the gcc line you pasted |
I get:
No errors. Where did you get the 0.29 source? |
The package redhat-rpm-config provides the redhat-hardened-cc1/redhat-annobin-cc1 |
The source was from http://download.sf.net/sourceforge/liblo/liblo-0.29.tar.gz |
And what configure line did you use? In any case it appears I can't help unless I can reproduce... can you find the source of the error, maybe propose a patch? As far as I can tell both the |
The full build logs are here with all the options specified: https://kojipkgs.fedoraproject.org//work/tasks/5544/30125544/build.log You can get the src.rpm from https://pbrobinson.fedorapeople.org/liblo-0.29-1.fc30.src.rpm On a F-29 or later container you can do "dnf install rpmdevtools" then run rpmdev-setuptree, followed by "rpmbuild --rebuild liblo-0.29-1.fc30.src.rpm" and it should recreate the problem. |
Oh ok, now I see the problem. You are compiling with an unsupported option. Please remove |
Closing for lack of follow-up, please re-open if necessary! |
With tightened builds flags on Fedora with gcc8 I get the following builds failure on 0.29:
The text was updated successfully, but these errors were encountered: