qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 1896096] Re: Git version: Build process is broken in block_curl.c.o


From: Paolo Bonzini
Subject: [Bug 1896096] Re: Git version: Build process is broken in block_curl.c.o
Date: Fri, 18 Sep 2020 15:00:59 -0000

cc  -o block-curl.so  -Wl,--as-needed -Wl,--allow-shlib-undefined
-shared -fPIC -Wl,--start-group -Wl,-soname,block-curl.so -Wl,--whole-
archive libblock-curl.a -Wl,--no-whole-archive -Wl,--warn-common
-Wl,-z,relro -Wl,-z,now -m64 -Wl,-O1,--sort-common,--as-
needed,-z,relro,-z,now -fstack-protector-strong -O2 -g -fPIE -DPIE
-std=gnu99 -Wall -g -pie -Wl,-O1,--sort-common,--as-
needed,-z,relro,-z,now libmodule-common.a -lcurl -Wl,--export-dynamic
-pthread -lgmodule-2.0 -lglib-2.0 -lglib-2.0 -Wl,--end-group

It could be because of -pie overriding -shared.  You wrote that you have
--extra-ldflags="$LDFLAGS" but what is $LDFLAGS?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1896096

Title:
  Git version: Build process is broken in block_curl.c.o

Status in QEMU:
  New

Bug description:
  Gcc version: 10.2.0
  Glusterfs: 8.1
  Libguestfs: 1.42

  Configure options used:

  configure \
      --prefix=/usr \
      --sysconfdir=/etc \
      --localstatedir=/var \
      --libexecdir=/usr/lib/qemu \
      --extra-ldflags="$LDFLAGS" \
      --smbd=/usr/bin/smbd \
      --enable-modules \
      --enable-sdl \
      --disable-werror \
      --enable-slirp=system \
      --enable-xfsctl \
      --audio-drv-list="pa alsa sdl"
      
  Error log attached. Here is the beginning:

  /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/Scrt1.o: 
in function `_start':
  (.text+0x24): undefined reference to `main'
  /usr/bin/ld: libblock-curl.a(block_curl.c.o): in function `curl_block_init':

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1896096/+subscriptions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]