Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Azat Khuzhin
    @azat
    great!
    Jakov Šimunić
    @jsimunic
    just to ask this one: how do you set bufferevent sockets to SOCK_CLOEXEC with an external function, is it possible or just internal hacking?
    There is no BEV_OPT_SOCK_CLOEXEC or something like that, right?
    Azat Khuzhin
    @azat
    i'm not sure that I follow you, but you can create bufferevent with your fd, for which you can set this option
    indeed, there is no such BEV_OPT
    Jakov Šimunić
    @jsimunic
    ahh, so the bufferevent can "inherit" options of a fd?
    Azat Khuzhin
    @azat
    or you can use bufferevent_getfd() and set it after
    sure, why not
    Jakov Šimunić
    @jsimunic
    wasn't aware of that, thanks
    Nathan French
    @NathanFrench
    azat, around?
    @azat I should prob. @ you
    Sayan Nandan
    @sntdevco
    @azat Now the documentation discussion
    Azat Khuzhin
    @azat
    @sntdevco yep (sorry for delay, have been busy), do you have some draft?
    zomatree
    @zomatree
    hey trying to install libevent and im getting
    root@Zomatrees:~/libevent# sh autogen.sh 
    autoreconf: Entering directory `.'
    autoreconf: configure.ac: not using Gettext
    autoreconf: running: aclocal --force -I m4
    autoreconf: configure.ac: tracing
    autoreconf: configure.ac: not using Libtool
    autoreconf: running: /usr/bin/autoconf --force
    configure.ac:129: error: possibly undefined macro: AC_PROG_LIBTOOL
          If this token and others are legitimate, please use m4_pattern_allow.
          See the Autoconf documentation.
    autoreconf: /usr/bin/autoconf failed with exit status: 1
    Devious2
    @Devious2
    hey was trying to install libevent but got undefined reference to dlopen googled it and found i needed to add -ldl but when looked into link.txt of https-examples.dir saw -ldl flag was missing so modified to read only file to write and added -ldl flag and it got builded perfectly. so will this cause any error in future?
    Azat Khuzhin
    @azat
    @Devious2 interesting, this comes from openssl, BTW are you using static openssl library?
    Devious2
    @Devious2
    yes i am using static openssl
    but how can i force it to use dynamic? as my folder contains .so too
    Azat Khuzhin
    @azat
    do you use cmake? if so it should prefer dynamic libraries over static, if other is not written
    and autoconf/automake should also prefer dynamic I guess
    anyway we can add -dl for libssl/libcrypto, but we need do this for autoconf and cmake, and also as a generic solution not for https-client only
    Devious2
    @Devious2
    okay i get my mistake previously it only contained static after getting this error i did enabled shared and got .so file but it still kept choosing .a file
    Azat Khuzhin
    @azat
    because it is in cache, remove CMakeCache.txt file and rerun cmake
    Devious2
    @Devious2
    Yes, thank you so much @azat
    Devious2
    @Devious2
    Hi, can we post libevhtp queries here?
    Azat Khuzhin
    @azat
    It is better to use #libevhtp chat (you already wrote here, I saw)
    kishan
    @kishans12
    what to set in LIBEVENT_THREAD in Libevhtp ? after building libevent it does not contain anything related to libevent_thread
    am i missing something in libevent?
    Azat Khuzhin
    @azat
    I don't understand you question, can you elaborate what is the problem do you think you have with libevent?
    Azat Khuzhin
    @azat
    @Devious2 This channel is not about libevhtp, but about libevent, I will reply to you there (and please do not post your messages everywhere to get more attention, since this will not archive your goal)
    Devious2
    @Devious2
    Okay sorry @azat i thought i may be missing something in Libevent something so thought of posting it here
    will delete it
    G Manohar
    @gyan_manohar_twitter
    Does libevent compile and build with vs2017 CMAKE on windows. I am getting error @cmake -G "Visual Studio 10" .. Any suggestion!
    Devious2
    @Devious2
    Try using cmake gui
    where you can select Visual studio version in which you want to build
    Azat Khuzhin
    @azat

    I am getting error

    and post here an error may help

    G Manohar
    @gyan_manohar_twitter
    I am trying cmake -G "Visual Studio 15" .. From error, Its looking for headers which is non windows stuff so its not able to complete the configuration
    Azat Khuzhin
    @azat
    CMake Error: Unable to open check cache file for write.
    This is an error, not the headers that was looked (since this is just checks)
    Are you trying to build on read only partition?
    G Manohar
    @gyan_manohar_twitter
    Thanks for looking.
    Its folder attribute set after downloading the code from git. I tried again and now its only complaining for OPEN SSL
    CMake Error at C:/Program Files/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
    Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
    system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
    OPENSSL_INCLUDE_DIR)
    Call Stack (most recent call first):
    C:/Program Files/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
    C:/Program Files/CMake/share/cmake-3.15/Modules/FindOpenSSL.cmake:413 (find_package_handle_standard_args)
    CMakeLists.txt:826 (find_package)
    Azat Khuzhin
    @azat

    Could NOT find OpenSSL

    So, it could not find openssl, either specify correct pass (as written in the error message), or set EVENT__DISABLE_OPENSSL=OFF

    G Manohar
    @gyan_manohar_twitter
    Thanks Azat. It worked. I am looking for periodic function callback
    topcat001
    @topcat001

    Hi is there any official support for IBM AIX? I managed to get it to build on AIX 7.1 but had to comment out
    #define _LARGE_FILES 1
    in event2/event-config.h line 524. Otherwise build fails with:
    In file included from sample/signal-test.c:15:0:
    /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/6.3.0/include-fixed/unistd.h:210:16: error: conflicting types for 'lseek64'
    extern off64_t lseek64(int, off64_t, int);
    ^~~
    /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/6.3.0/include-fixed/unistd.h:208:14: note: previous declaration of 'lseek64' was here
    extern off_t lseek(int, off_t, int);
    ^
    In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/6.3.0/include-fixed/unistd.h:866:0,
    from sample/signal-test.c:15:
    /usr/include/sys/lockf.h:64:13: error: conflicting types for 'lockf64'
    extern int lockf64 (int, int, off64_t);
    ^~~
    /usr/include/sys/lockf.h:62:13: note: previous declaration of 'lockf64' was here
    extern int lockf (int, int, off_t);
    ...
    and similar errors.

    I have access to some AIX boxes running AIX 7.1 and gcc 6.3.0. I'm interested in bugfixing/testing to make it work.

    Azat Khuzhin
    @azat

    is there any official support for IBM AIX?

    no

    I'm interested in bugfixing/testing to make it work.

    what build system did you use, cmake or autotools?

    but had to comment out _LARGE_FILES 1

    looks like the build-time check error

    seems that you are using cmake, since autotools evconfig-private.h.in has #undef _LARGE_FILES while cmake has #cmakedefine _LARGE_FILES 1 and this is different
    Azat Khuzhin
    @azat
    same for _FILE_OFFSET_BITS
    topcat001
    @topcat001
    Thank you! I ran ./configure, actually (so autotools). However since I used the release .tar.gz the configure script was already there. I'll check again (machine not booted up now), try recreating configure and report back.