Package Details: wangle 2024.04.22.00-1

Git Clone URL: https://aur.archlinux.org/wangle.git (read-only, click to copy)
Package Base: wangle
Description: C++ networking library providing client/server abstractions for building services
Upstream URL: https://github.com/facebook/wangle
Keywords: c++ client facebook network protocol server service
Licenses: Apache-2.0
Provides: libwangle.so
Submitter: dseg
Maintainer: MrAnno (carsme)
Last Packager: carsme
Votes: 3
Popularity: 0.166731
First Submitted: 2015-08-13 09:21 (UTC)
Last Updated: 2024-04-23 06:10 (UTC)

Latest Comments

1 2 Next › Last »

jghodd commented on 2023-12-11 19:20 (UTC) (edited on 2023-12-13 03:35 (UTC) by jghodd)

Getting another conflict with fizz again. Just a heads-up for now since I'm typing this on my phone. I'll edit and drop in the error message a little later/as soon as I can.

-- Build files have been written to: /distro/local/repository/wangle-fizz-new/wangle/src/wangle-2023.04.10.00/wangle/build [ 1%] Building CXX object CMakeFiles/wangle.dir/acceptor/Acceptor.cpp.o In file included from /distro/local/repository/wangle-fizz-new/wangle/src/wangle-2023.04.10.00/wangle/acceptor/Acceptor.cpp:17: /distro/local/repository/wangle-fizz-new/wangle/src/wangle-2023.04.10.00/wangle/../wangle/acceptor/Acceptor.h:233:7: error: ‘folly::AsyncTransport::LifecycleObserver’ has not been declared 233 | folly::AsyncTransport::LifecycleObserver observer) noexcept; | ^ /distro/local/repository/wangle-fizz-new/wangle/src/wangle-2023.04.10.00/wangle/../wangle/acceptor/Acceptor.h:243:7: error: ‘folly::AsyncTransport::LifecycleObserver’ has not been declared 243 | folly::AsyncTransport::LifecycleObserver observer = nullptr) noexcept; | ^ /distro/local/repository/wangle-fizz-new/wangle/src/wangle-2023.04.10.00/wangle/../wangle/acceptor/Acceptor.h:468:7: error: ‘folly::AsyncTransport::LifecycleObserver’ has not been declared 468 | folly::AsyncTransport::LifecycleObserver lifeCycleObserver) noexcept; | ^ /distro/local/repository/wangle-fizz-new/wangle/src/wangle-2023.04.10.00/wangle/acceptor/Acceptor.cpp:264:5: error: ‘folly::AsyncTransport::LifecycleObserver’ has not been declared 264 | folly::AsyncTransport::LifecycleObserver observer) noexcept { | ^ /distro/local/repository/wangle-fizz-new/wangle/src/wangle-2023.04.10.00/wangle/acceptor/Acceptor.cpp: In member function ‘void wangle::Acceptor::acceptConnection(folly::NetworkSocket, const folly::SocketAddress&, folly::AsyncServerSocket::AcceptCallback::AcceptInfo, int)’: /distro/local/repository/wangle-fizz-new/wangle/src/wangle-2023.04.10.00/wangle/acceptor/Acceptor.cpp:270:17: error: request for member ‘destroy’ in ‘ observer’, which is of non-class type ‘int’ 270 | observer->destroy(nullptr); | ^ /distro/local/repository/wangle-fizz-new/wangle/src/wangle-2023.04.10.00/wangle/acceptor/Acceptor.cpp: At global scope: /distro/local/repository/wangle-fizz-new/wangle/src/wangle-2023.04.10.00/wangle/acceptor/Acceptor.cpp:291:5: error: ‘folly::AsyncTransport::LifecycleObserver’ has not been declared 291 | folly::AsyncTransport::LifecycleObserver observer) noexcept { | ^ /distro/local/repository/wangle-fizz-new/wangle/src/wangle-2023.04.10.00/wangle/acceptor/Acceptor.cpp:302:5: error: ‘folly::AsyncTransport::LifecycleObserver’ has not been declared 302 | folly::AsyncTransport::LifecycleObserver observer) noexcept { | ^ /distro/local/repository/wangle-fizz-new/wangle/src/wangle-2023.04.10.00/wangle/acceptor/Acceptor.cpp: In member function ‘void wangle::Acceptor::processEstablishedConnection(int, const folly::SocketAddress&, std::chrono::_V2::steady_clock::time_point, wangle::TransportInfo&, int)’: /distro/local/repository/wangle-fizz-new/wangle/src/wangle-2023.04.10.00/wangle/acceptor/Acceptor.cpp:312:37: error: cannot convert ‘int’ to ‘folly::AsyncSocket::LegacyLifecycleObserver’ 312 | sslSock->addLifecycleObserver(observer); | ^~~~ | | | int In file included from /usr/include/fizz/protocol/AsyncFizzBase.h:15, from /usr/include/fizz/server/AsyncFizzServer.h:11, from /distro/local/repository/wangle-fizz-new/wangle/src/wangle-2023.04.10.00/wangle/../wangle/acceptor/FizzAcceptorHandshakeHelper.h:21, from /distro/local/repository/wangle-fizz-new/wangle/src/wangle-2023.04.10.00/wangle/../wangle/acceptor/Acceptor.h:20: /usr/include/folly/io/async/AsyncSocket.h:1421:62: note: initializing argument 1 of ‘virtual void folly::AsyncSocket::addLifecycleObserver(LegacyLifecycleObserver)’ 1421 | virtual void addLifecycleObserver(LegacyLifecycleObserver observer); | ~^~ /distro/local/repository/wangle-fizz-new/wangle/src/wangle-2023.04.10.00/wangle/acceptor/Acceptor.cpp:338:34: error: cannot convert ‘int’ to ‘folly::AsyncSocket::LegacyLifecycleObserver’ 338 | sock->addLifecycleObserver(observer); | ^~ | | | int /usr/include/folly/io/async/AsyncSocket.h:1421:62: note: initializing argument 1 of ‘virtual void folly::AsyncSocket::addLifecycleObserver(LegacyLifecycleObserver)’ 1421 | virtual void addLifecycleObserver(LegacyLifecycleObserver* observer); | ~^~ make[2]: *** [CMakeFiles/wangle.dir/build.make:76: CMakeFiles/wangle.dir/acceptor/Acceptor.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:111: CMakeFiles/wangle.dir/all] Error 2 make: *** [Makefile:166: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

it actually craps out compiling the very first source file. this is after the recent folly update.

jghodd commented on 2022-09-01 18:30 (UTC)

@MrAnno - i finally freed up enough space to set up a clean chroot build environment. all 4 packages (fizz, folly, wangle, proxygen) built successfully.

MrAnno commented on 2022-08-25 18:57 (UTC)

Thanks. I've reproduced similar build issues, I'll try to resolve them soon.

jghodd commented on 2022-08-24 03:29 (UTC) (edited on 2022-08-24 03:30 (UTC) by jghodd)

@MrAnno - here's my makepkg.conf


#!/hint/bash
#
# /etc/makepkg.conf
#

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u'
          'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
          'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'rsync::/usr/bin/rsync --no-motd -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget

#-- The package required by makepkg to download VCS sources
#  Format: 'protocol::package'
VCSCLIENTS=('bzr::bzr'
            'fossil::fossil'
            'git::git'
            'hg::mercurial'
            'svn::subversion')

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-pc-linux-gnu"

#-- Compiler and Linker Flags
#CPPFLAGS=""
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
        -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
        -fstack-clash-protection -fcf-protection"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
LTOFLAGS="-flto=auto"
#RUSTFLAGS="-C opt-level=2"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"
#-- Debugging flags
DEBUG_CFLAGS="-g"
DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
#DEBUG_RUSTFLAGS="-C debuginfo=2"

#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign)
#  A negated environment option will do the opposite of the comments below.
#
#-- distcc:   Use the Distributed C/C++/ObjC compiler
#-- color:    Colorize output messages
#-- ccache:   Use ccache to cache compilation
#-- check:    Run the check() function if present in the PKGBUILD
#-- sign:     Generate PGP signature file
#
BUILDENV=(!distcc color !ccache check !sign)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""
#
#-- Specify a directory for package building.
#BUILDDIR=/tmp/makepkg

#########################################################################
# GLOBAL PACKAGE OPTIONS
#   These are default values for the options=() settings
#########################################################################
#
# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto)
#  A negated option will do the opposite of the comments below.
#
#-- strip:      Strip symbols from binaries/libraries
#-- docs:       Save doc directories specified by DOC_DIRS
#-- libtool:    Leave libtool (.la) files in packages
#-- staticlibs: Leave static library (.a) files in packages
#-- emptydirs:  Leave empty directories in packages
#-- zipman:     Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge:      Remove files specified by PURGE_TARGETS
#-- debug:      Add debugging flags as specified in DEBUG_* variables
#-- lto:        Add compile flags for building with link time optimization
#
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto)

#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
INTEGRITY_CHECK=(sha256)
#-- Options to be used when stripping binaries. See `man strip' for details.
STRIP_BINARIES="--strip-all"
#-- Options to be used when stripping shared libraries. See `man strip' for details.
STRIP_SHARED="--strip-unneeded"
#-- Options to be used when stripping static libraries. See `man strip' for details.
STRIP_STATIC="--strip-debug"
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
#-- Directory to store source code in for debug packages
DBGSRCDIR="/usr/src/debug"

#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
#SRCPKGDEST=/home/srcpackages
#-- Log files: specify a fixed directory where all log files will be placed
#LOGDEST=/home/makepkglogs
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"
#-- Specify a key to use for package signing
#GPGKEY=""

#########################################################################
# COMPRESSION DEFAULTS
#########################################################################
#
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z -)
COMPRESSZST=(zstd -c -z -q -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)
COMPRESSLZ4=(lz4 -q)
COMPRESSLZ=(lzip -c -f)

#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
PKGEXT='.pkg.tar.zst'
SRCEXT='.src.tar.gz'

#########################################################################
# OTHER
#########################################################################
#
#-- Command used to run pacman as root, instead of trying sudo and su
#PACMAN_AUTH=()

it's been a few years since i put together a clean chroot environment for building 32-bit packages, so i'll have to put aside some time to put that together. thing is, i haven't had to do that in the past. one way or another, i eventually got wangle to build, albeit usually with difficulty - note that fizz and folly build without issue.

MrAnno commented on 2022-08-23 21:45 (UTC)

I'm building folly, fizz, wangle and proxygen in the archlinux dev's recommended clean "chroot" environment (https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot). Everything seems to build just fine.

Please share your makepkg config and your environment, if you believe something needs to be changed in the packaging of wangle.

jghodd commented on 2022-08-23 21:39 (UTC) (edited on 2022-08-23 22:32 (UTC) by jghodd)

y'all need to get together and get everything straight. just built and installed fizz and folly, both 2022.08.22.00 and got this build error with wangle:


[ 60%] Linking CXX executable bin/BootstrapTest
/bin/ld: /usr/lib/libfizz.a(ServerProtocol.cpp.o): in function `fizz::server::ServerStateMachine::processSocketData(fizz::server::State const&, folly::IOBufQueue&, fizz::Aead::AeadOptions) [clone .cold]':
(.text.unlikely+0x5667): undefined reference to `folly::exception_wrapper::SharedPtr::ops_'
/bin/ld: /usr/lib/libfizz.a(KTLS.cpp.o): in function `folly::exception_wrapper::exception_wrapper<std::system_error, std::system_error, 370l>(std::system_error&&)':
(.text._ZN5folly17exception_wrapperC2ISt12system_errorS2_Ll370EEEOT_[_ZN5folly17exception_wrapperC5ISt12system_errorS2_Ll370EEEOT_]+0x93): undefined reference to `folly::exception_wrapper::SharedPtr::ops_'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/BootstrapTest.dir/build.make:158: bin/BootstrapTest] Error 1
make[1]: *** [CMakeFiles/Makefile2:215: CMakeFiles/BootstrapTest.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

apparently, fizz, folly and wangle don't play nice together...

jghodd commented on 2019-10-18 20:28 (UTC)

The issue appears to be a boost/cmake version issue. To build against boost-1.71, add the following flag to the cmake:

-DBoost_NO_BOOST_CMAKE=ON

So...

cmake -S . -B build \
      -DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
      -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \
      -DCMAKE_EXE_LINKER_FLAGS:STRING="${LDFLAGS}" \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -DBoost_NO_BOOST_CMAKE=ON \
      -DCMAKE_BUILD_TYPE=Release

jghodd commented on 2019-10-13 17:38 (UTC)

getting the following build error that appears to complain about "-lpthreads", which is understandable given that libpthreads doesn't exist (libpthread without the 's' does of course exist):

Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /data/aurbuild/yaourt-tmp-jghodd/aur-wangle/src/wangle-2019.09.30.00/wangle/build/CMakeFiles/CMakeTmp

Run Build Command(s):/bin/make cmTC_e194a/fast && /bin/make -f CMakeFiles/cmTC_e194a.dir/build.make CMakeFiles/cmTC_e194a.dir/build make[1]: Entering directory '/data/aurbuild/yaourt-tmp-jghodd/aur-wangle/src/wangle-2019.09.30.00/wangle/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_e194a.dir/src.c.o /bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DCMAKE_HAVE_LIBC_PTHREAD -fPIE -o CMakeFiles/cmTC_e194a.dir/src.c.o -c /data/aurbuild/yaourt-tmp-jghodd/aur-wangle/sr c/wangle-2019.09.30.00/wangle/build/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_e194a /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e194a.dir/link.txt --verbose=1 /bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DCMAKE_HAVE_LIBC_PTHREAD -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -rdynamic CMakeFiles/cmTC_e194a.dir/src.c.o - o cmTC_e194a /bin/ld: CMakeFiles/cmTC_e194a.dir/src.c.o: in function main': src.c:(.text.startup+0x24): undefined reference topthread_create' /bin/ld: src.c:(.text.startup+0x2e): undefined reference to pthread_detach' /bin/ld: src.c:(.text.startup+0x3a): undefined reference topthread_join' collect2: error: ld returned 1 exit status make[1]: [CMakeFiles/cmTC_e194a.dir/build.make:87: cmTC_e194a] Error 1 make[1]: Leaving directory '/data/aurbuild/yaourt-tmp-jghodd/aur-wangle/src/wangle-2019.09.30.00/wangle/build/CMakeFiles/CMakeTmp' make: [Makefile:121: cmTC_e194a/fast] Error 2

Source file was:

include <pthread.h>

void test_func(void data) { return data; }

int main(void) { pthread_t thread; pthread_create(&thread, NULL, test_func, NULL); pthread_detach(thread); pthread_join(thread, NULL); pthread_atfork(NULL, NULL, NULL); pthread_exit(NULL);

return 0; }

Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /data/aurbuild/yaourt-tmp-jghodd/aur-wangle/src/wangle-2019.09.30.00/wangle/build/CMakeFiles/CMakeTmp

Run Build Command(s):/bin/make cmTC_0032c/fast && /bin/make -f CMakeFiles/cmTC_0032c.dir/build.make CMakeFiles/cmTC_0032c.dir/build make[1]: Entering directory '/data/aurbuild/yaourt-tmp-jghodd/aur-wangle/src/wangle-2019.09.30.00/wangle/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_0032c.dir/CheckFunctionExists.c.o /bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DCHECK_FUNCTION_EXISTS=pthread_create -fPIE -o CMakeFiles/cmTC_0032c.dir/CheckFunctionExists.c.o -c /usr/share/cmake- 3.15/Modules/CheckFunctionExists.c Linking C executable cmTC_0032c /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0032c.dir/link.txt --verbose=1 /bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DCHECK_FUNCTION_EXISTS=pthread_create -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -rdynamic CMakeFiles/cmTC_0032c.d ir/CheckFunctionExists.c.o -o cmTC_0032c -lpthreads /bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status make[1]: [CMakeFiles/cmTC_0032c.dir/build.make:87: cmTC_0032c] Error 1 make[1]: Leaving directory '/data/aurbuild/yaourt-tmp-jghodd/aur-wangle/src/wangle-2019.09.30.00/wangle/build/CMakeFiles/CMakeTmp' make: [Makefile:121: cmTC_0032c/fast] Error 2

sleeping commented on 2017-06-15 01:46 (UTC) (edited on 2017-06-15 02:06 (UTC) by sleeping)

OPENSSL problems? Doesn't compile. Yeah this needs openssl-1.0 You can add it as dependency and add these flags to the cmake: -DOPENSSL_INCLUDE_DIR=/usr/include/openssl-1.0 \ -DOPENSSL_SSL_LIBRARY=/usr/lib/openssl-1.0/libssl.so \ -DOPENSSL_CRYPTO_LIBRARY=/usr/lib/openssl-1.0/libcrypto.so