Comments (12)
Hm I don't get that error on gcc 8.0.1 on Ubuntu. Also, the variable it
is declared at the top of that function. That seems more than just "tightened build flags", since "undeclared identifier" is not something that would go away without "-Wall". Can you give more information on how you are configuring the build?
from liblo.
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}
from liblo.
I ran a fedora docker container and installed gcc 8 and wget:
$ docker run --rm -it fedora /bin/bash
[root@4d3b63aa33d1 /]# dnf install -yq gcc make wget
[root@f04478e06980 /]# gcc --version
gcc (GCC) 8.1.1 20180712 (Red Hat 8.1.1-5)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@4d3b63aa33d1 /]# wget http://downloads.sourceforge.net/liblo/liblo-0.29.tar.gz
[root@4d3b63aa33d1 /]# tar -xzf liblo-0.29.tar.gz
[root@4d3b63aa33d1 /]# cd liblo-0.29
[root@4d3b63aa33d1 liblo-0.29]# ./configure --enable-debug --disable-silent-rules
[root@4d3b63aa33d1 liblo-0.29]# make
I get no errors.
Can you paste the gcc command that is getting executed?
I have no idea what cc1_options is supposed to indicate, I'm not familiar with that syntax.
from liblo.
Sorry, just figured out that a browser extension was messing with my "Comment" button, didn't meant to close the issue.
from liblo.
I'll try again with the gcc line you pasted
from liblo.
I get:
[root@eb71896e58e9 src]# cat <<EOF >redhat-hardened-cc1
*cc1_options:
+ %{!r:%{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIE}}}}}}
EOF
[root@eb71896e58e9 src]# cat <<EOF >redhat-annobin-cc1
*cc1_options:
+ %{!-fno-use-annobin:%{!iplugindir*:%:find-plugindir()} -fplugin=annobin}
EOF
[root@eb71896e58e9 src]# 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=redhat-hardened-cc1 -specs=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
[root@eb71896e58e9 src]#
No errors. Where did you get the 0.29 source?
from liblo.
The package redhat-rpm-config provides the redhat-hardened-cc1/redhat-annobin-cc1
files that are in /usr/lib/rpm/redhat/
from liblo.
The source was from http://download.sf.net/sourceforge/liblo/liblo-0.29.tar.gz
from liblo.
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 ai
and it
variables are defined, so I don't know why it's complaining. Have you tried compiling git master instead of 0.29?
from liblo.
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.
from liblo.
Oh ok, now I see the problem. You are compiling with an unsupported option. Please remove --enable-ipv6
and check issue #57.
from liblo.
Closing for lack of follow-up, please re-open if necessary!
from liblo.
Related Issues (20)
- cmake doesn't install oscsendfile HOT 1
- Clearing up some confusion (re NSM) HOT 3
- `winsock2.h` not included under MSYS2/MinGW HOT 1
- unexpected behavior when adding multiple different methods with the same address pattern HOT 7
- Sending OSC data through TCP data prepend HOT 4
- Unable to get message's source address with UNIX protocol HOT 2
- Issues using liblo on WSL Ubuntu 18.04 LTS HOT 1
- Server using TCP+SLIP? HOT 11
- lo_url_get_port(): address sanitizer issue HOT 1
- Cmake error on Github Actions HOT 2
- Windows build failing HOT 2
- `lo_blob_new` returns NULL for 0-size blobs HOT 1
- Feature request: improve documentation navigation (and css?)
- Latest release (0.31) isn't reflected in github HOT 2
- Tag a new version? HOT 3
- Linker error with MSVC while building a project which uses liblo HOT 3
- Seeking new liblo maintainer HOT 1
- Likely bug in liblo cpp wrapper HOT 2
- freeing ports HOT 2
- osc.udp://: liblo thing? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from liblo.