Skip to contentSkip to conversation

build-sys: remove slirp cflags from main-loop.o

PATCH Applied Marc-André Lureau 4 participants 5 messages Jul 12, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build-sys: remove slirp cflags from main-loop.o

Left over from c2d63650d962612cfa1b21302782d4cd12142c74.

---
 util/Makefile.objs | 1 -
 1 file changed, 1 deletion(-)
util/Makefile.objs +0 -1
index 38178201ff..68af3cd5e9 100644
@@ -3,7 +3,6 @@ util-obj-y += bufferiszero.o
 util-obj-y += lockcnt.o
 util-obj-y += aiocb.o async.o aio-wait.o thread-pool.o qemu-timer.o
 util-obj-y += main-loop.o iohandler.o
-main-loop.o-cflags := $(SLIRP_CFLAGS)
 util-obj-$(call lnot,$(CONFIG_ATOMIC64)) += atomic64.o
 util-obj-$(CONFIG_POSIX) += aio-posix.o
 util-obj-$(CONFIG_POSIX) += compatfd.o
Signature · 1 line
2.22.0.428.g6d5b264208
#1 lore raw
Quoted 13 lines · Marc-André Lureau

Left over from c2d63650d962612cfa1b21302782d4cd12142c74.

---
 util/Makefile.objs | 1 -
 1 file changed, 1 deletion(-)
util/Makefile.objs +0 -0
index 38178201ff..68af3cd5e9 100644

util/Makefile.objs util-obj-y += bufferiszero.o · line 8

Quoted 7 lines
util/Makefile.objs +0 -1
@@ -3,7 +3,6 @@ util-obj-y += bufferiszero.o
 util-obj-y += lockcnt.o
 util-obj-y += aiocb.o async.o aio-wait.o thread-pool.o qemu-timer.o
 util-obj-y += main-loop.o iohandler.o
-main-loop.o-cflags := $(SLIRP_CFLAGS)
 util-obj-$(call lnot,$(CONFIG_ATOMIC64)) += atomic64.o
 util-obj-$(CONFIG_POSIX) += aio-posix.o
 util-obj-$(CONFIG_POSIX) += compatfd.o

Queued, thanks.

Paolo

Reviewed-by Tested-by on v1 1/1
#2 lore raw
In reply to Marc-André Lureau

Hi Marc-André,

Quoted 3 lines · Marc-André Lureau

Left over from c2d63650d962612cfa1b21302782d4cd12142c74.

Quoted 10 lines
---
 util/Makefile.objs | 1 -
 1 file changed, 1 deletion(-)
util/Makefile.objs +0 -0
index 38178201ff..68af3cd5e9 100644

util/Makefile.objs util-obj-y += bufferiszero.o · line 8

Quoted 7 lines
util/Makefile.objs +0 -1
@@ -3,7 +3,6 @@ util-obj-y += bufferiszero.o
 util-obj-y += lockcnt.o
 util-obj-y += aiocb.o async.o aio-wait.o thread-pool.o qemu-timer.o
 util-obj-y += main-loop.o iohandler.o
-main-loop.o-cflags := $(SLIRP_CFLAGS)
 util-obj-$(call lnot,$(CONFIG_ATOMIC64)) += atomic64.o
 util-obj-$(CONFIG_POSIX) += aio-posix.o
 util-obj-$(CONFIG_POSIX) += compatfd.o

Since you are looking at slirp, I'm having a bunch of:

$ make help
[...]
  CC      slirp/src/tftp.o
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
  CC      slirp/src/udp6.o
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
[...]

On MinGW.

I can silent the warnings using (32-git build):

PKG_CONFIG_PATH=/usr/lib/mxe/usr/i686-w64-mingw32.shared/lib/pkgconfig

This is new since the slirp split.

Any idea where to fix that?

Thanks,

Phil.

#3 lore raw

Hi

Quoted 45 lines · Philippe Mathieu-Daudé

Hi Marc-André,

Quoted 3 lines · Marc-André Lureau

Left over from c2d63650d962612cfa1b21302782d4cd12142c74.

Quoted 10 lines
---
 util/Makefile.objs | 1 -
 1 file changed, 1 deletion(-)
util/Makefile.objs +0 -0
index 38178201ff..68af3cd5e9 100644

util/Makefile.objs util-obj-y += bufferiszero.o · line 8

Quoted 7 lines
util/Makefile.objs +0 -1
@@ -3,7 +3,6 @@ util-obj-y += bufferiszero.o
 util-obj-y += lockcnt.o
 util-obj-y += aiocb.o async.o aio-wait.o thread-pool.o qemu-timer.o
 util-obj-y += main-loop.o iohandler.o
-main-loop.o-cflags := $(SLIRP_CFLAGS)
 util-obj-$(call lnot,$(CONFIG_ATOMIC64)) += atomic64.o
 util-obj-$(CONFIG_POSIX) += aio-posix.o
 util-obj-$(CONFIG_POSIX) += compatfd.o

Since you are looking at slirp, I'm having a bunch of:

$ make help
[...]
  CC      slirp/src/tftp.o
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
  CC      slirp/src/udp6.o
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
[...]
Quoted 1 line

On MinGW.

On "cross-mingw" I suppose

Quoted 3 lines

I can silent the warnings using (32-git build):

PKG_CONFIG_PATH=/usr/lib/mxe/usr/i686-w64-mingw32.shared/lib/pkgconfig

Hmm that looks like a pkg-config configuration issue to me.

Quoted 5 lines

This is new since the slirp split.

Any idea where to fix that?

Compile and install libslirp shared lib, ./configure --enable-slirp=system :)

Btw, I wonder if we can already warn about deprecation of --enable-slirp=git. Peter is that too early for 4.1? (first libslirp was released last month)

Signature · 1 line
Marc-André Lureau
#4 lore raw
Quoted 62 lines · Marc-André Lureau

Hi

Quoted 45 lines · Philippe Mathieu-Daudé

Hi Marc-André,

Quoted 3 lines · Marc-André Lureau

Left over from c2d63650d962612cfa1b21302782d4cd12142c74.

Quoted 10 lines
---
 util/Makefile.objs | 1 -
 1 file changed, 1 deletion(-)
util/Makefile.objs +0 -0
index 38178201ff..68af3cd5e9 100644

util/Makefile.objs util-obj-y += bufferiszero.o · line 8

Quoted 7 lines
util/Makefile.objs +0 -1
@@ -3,7 +3,6 @@ util-obj-y += bufferiszero.o
 util-obj-y += lockcnt.o
 util-obj-y += aiocb.o async.o aio-wait.o thread-pool.o qemu-timer.o
 util-obj-y += main-loop.o iohandler.o
-main-loop.o-cflags := $(SLIRP_CFLAGS)
 util-obj-$(call lnot,$(CONFIG_ATOMIC64)) += atomic64.o
 util-obj-$(CONFIG_POSIX) += aio-posix.o
 util-obj-$(CONFIG_POSIX) += compatfd.o

Since you are looking at slirp, I'm having a bunch of:

$ make help
[...]
  CC      slirp/src/tftp.o
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
  CC      slirp/src/udp6.o
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
[...]
Quoted 1 line

On MinGW.

On "cross-mingw" I suppose

Quoted 3 lines

I can silent the warnings using (32-git build):

PKG_CONFIG_PATH=/usr/lib/mxe/usr/i686-w64-mingw32.shared/lib/pkgconfig

Hmm that looks like a pkg-config configuration issue to me.

Quoted 3 lines

This is new since the slirp split.

Quoted 8 lines
Quoted 2 lines

Any idea where to fix that?

Compile and install libslirp shared lib, ./configure --enable-slirp=system :)

Btw, I wonder if we can already warn about deprecation of --enable-slirp=git. Peter is that too early for 4.1? (first libslirp was released last month)

Yeah, I think we should let a year pass or so.

Paolo