artanis
[Top][All Lists]
Advanced

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

Re: [Artanis] artanis fails on confgure to find guile


From: Nala Ginrut
Subject: Re: [Artanis] artanis fails on confgure to find guile
Date: Thu, 15 Nov 2018 02:23:31 +0800
User-agent: mu4e 1.1.0; emacs 25.1.1

epoll is Linux specific, and may be added to GNU/Hurd in the future.
But for BSD, the alternative is kqueue, which is not supported by
Artanis yet.
I think the workaround is to change server.engine in artanis.conf to
"guile" for using "select" to replace. I think it's still possible to
compile by ignoring the warning.

Best regards.


Java House writes:

> Hello again.
>
> I cleaned up everything and tried again.
>
> this time I am  getting
> Symbol not found: epoll_create
>
> I tried via the freebsd groups but I couldn't find a solution. It seems
> that epoll is linux specific.
> Is there a way to build artanis without epoll?
>
> thank you
> Nikolas
>
> $ gmake
> gmake[1]: Entering directory '/usr/home/nikolas/Downloads/artanis-0.2.5'
> Regenerating artanis/version.scm
> gmake[1]: Leaving directory '/usr/home/nikolas/Downloads/artanis-0.2.5'
> + compiling artanis/version.scm
> GUILE_LOAD_COMPILED_PATH=obj /home/nikolas/bin/bin/guild compile
> -Wunsupported-warning -Wunbound-variable -Warity-mismatch
> -Wduplicate-case-datum -Wbad-case-datum -Wformat -L . artanis/version.scm
> -o obj/artanis/version.go
> wrote `obj/artanis/version.go'
> + compiling artanis/artanis.scm
> GUILE_LOAD_COMPILED_PATH=obj /home/nikolas/bin/bin/guild compile
> -Wunsupported-warning -Wunbound-variable -Warity-mismatch
> -Wduplicate-case-datum -Wbad-case-datum -Wformat -L . artanis/artanis.scm
> -o obj/artanis/artanis.go
> Backtrace:
> In ice-9/boot-9.scm:
>    222:17 19 (map1 (((("placeholder" placeholder) ("placeho?" ?)) ?)))
> In ice-9/psyntax.scm:
>   2338:44 18 (expand-let _ _ _ ((line . 1238) (column . 2) (# . #)) # ?)
>   1679:45 17 (parse _ _ _ _ _ _ _)
> In ice-9/boot-9.scm:
>    222:17 16 (map1 (((("placeholder" placeholder) ("l-?" . #) ?) . #)))
> In ice-9/psyntax.scm:
>   1409:12 15 (_ _ _ (#<syntax if> (#<syntax memv> #<syntax key> #) ?))
>   1058:24 14 (expand-sequence (#<syntax (@ (artanis server epoll) ?>) ?)
>   1407:23 13 (dobody (#<syntax (@ (artanis server epoll) EPOLLET)>) # ?)
>   1317:39 12 (syntax-type EPOLLET (("placeholder" placeholder) # # ?) ?)
>    309:45 11 (resolve-identifier _ _ (("placeholder" placeholder) ?) ?)
> In ice-9/threads.scm:
>     390:8 10 (_ _)
> In ice-9/boot-9.scm:
>   2726:13  9 (_)
> In ice-9/threads.scm:
>     390:8  8 (_ _)
> In ice-9/boot-9.scm:
>   2994:20  7 (_)
>    2312:4  6 (save-module-excursion #<procedure 8054aa0c0 at ice-9/b?>)
>   3014:26  5 (_)
> In unknown file:
>            4 (primitive-load-path "artanis/server/epoll" #<procedure?>)
> In ice-9/eval.scm:
>    626:19  3 (_ #<directory (artanis server epoll) 8051bff00>)
>    173:47  2 (_ #<directory (artanis server epoll) 8051bff00>)
> In unknown file:
>            1 (dynamic-func "epoll_create" #<dynamic-object #f>)
> In ice-9/boot-9.scm:
>    752:25  0 (dispatch-exception _ _ _)
>
> ice-9/boot-9.scm:752:25: In procedure dispatch-exception:
> In procedure dynamic-pointer: Symbol not found: epoll_create
> gmake: *** [Makefile:77: obj/artanis/artanis.go] Error 1
>
>
>
> Στις Παρ, 31 Αυγ 2018 στις 1:22 μ.μ., ο/η Nala Ginrut <address@hidden>
> έγραψε:
>
>>
>> Hello Java House!
>>
>> Artanis doesn't check guile-dbi or guild-dbd as the necessary
>> prerequisites. The older version does, could you try the latest code
>> from git?
>>
>> I'm not BSD user, so I have no idea about the portability of "script"
>> command". ;-(
>>
>>
>> Java House writes:
>>
>> > Hello
>> >
>> >
>> > I uninstalled everything and rebuilt guile per you instructions.
>> > New problems I faced:
>> > guile-dbi-guile-dbd-postgresql does not place anything under pkgconfig
>> >
>> > $ ls /home/nikolas/bin/lib/pkgconfig/
>> > guile-2.2.pc    guile-dbi.pc
>> >
>> > But I continued with the build anyway.
>> > When trying to build artanis with gmake (make does not work)
>> > Requires bash under /bin/bash had to change this /usr/local/bin/bash
>> >
>> > but the problem is with this line (77) of Makefile
>> >     $(V)script -e -c "$(GUILEC) -L $(SRC) $< -o $@" -f $(AELOG) >
>> /dev/null
>> > || (cat $(AELOG) && exit 15)
>> >
>> > script command in FreeBSD does not accept any of the options -e or -c
>> > + compiling artanis/version.scm
>> > script: illegal option -- e
>> > usage: script [-adfkpqr] [-t time] [file [command ...]]
>> >
>> > I rewrote the line according to the script in FreeBSD
>> >     $(V)script  $(AELOG) "$(GUILEC) -L $(SRC) $< -o $@"  > /dev/null ||
>> > (cat $(AELOG) && exit 15)
>> >
>> > but then the build fails
>> > $ gmake
>> > gmake[1]: Entering directory '/usr/home/nikolas/Downloads/artanis-0.2.5'
>> > Regenerating artanis/version.scm
>> > gmake[1]: Leaving directory '/usr/home/nikolas/Downloads/artanis-0.2.5'
>> > + compiling artanis/version.scm
>> > Script started on Sun Aug 26 21:52:43 2018
>> > Command: GUILE_LOAD_COMPILED_PATH=obj /home/nikolas/bin/bin/guild compile
>> > -Wunsupported-warning -Wunbound-variable -Warity-mismatch
>> > -Wduplicate-case-datum -Wbad-case-datum -Wformat -L . artanis/version.scm
>> > -o obj/artanis/version.go
>> > script: GUILE_LOAD_COMPILED_PATH=obj /home/nikolas/bin/bin/guild compile
>> > -Wunsupported-warning -Wunbound-variable -Warity-mismatch
>> > -Wduplicate-case-datum -Wbad-case-datum -Wformat -L . artanis/version.scm
>> > -o obj/artanis/version.go: No such file or directory
>> > Script started, output file is build.err.version.go
>> >
>> > Command exit status: 1
>> > Script done on Sun Aug 26 21:52:43 2018
>> > gmake: *** [Makefile:77: obj/artanis/version.go] Error 15
>> >
>> >
>> > Regards
>> > Nikolas
>> >
>> >
>> > Στις Τετ, 15 Αυγ 2018 στις 8:10 π.μ., ο/η Julio Claudio Matus Ramirez <
>> > address@hidden> έγραψε:
>> >
>> >>
>> >> Hey Nikolas,
>> >>
>> >> I guess you have stuffs from a broken/old guile install in the same dir
>> >> you are running your working/new guile, that's not a good idea.
>> >>
>> >> And, I thought you were running 2.2.4, but now it says 2.2.2... maybe
>> >> you have multiple installs on your system as well?
>> >>
>> >>
>> >> Anyways, you have two options I guess:
>> >> 1. Test with a new clean dir path just for the new guile install
>> >> 2. Uninstall/delete everything guile related (including distro packages)
>> >>    you currently have and make a clean install on your current paths
>> >>
>> >> I figure you can imagine what to do on no2, so I'm skipping that
>> >> explanation.
>> >> For no1, this is a short version (maybe missing steps) of what to do:
>> >> (I'm assuming you have already all the necessary dependency libraries)
>> >>
>> >> # 1 install guile
>> >> 1. get tar from gnu site
>> >> 2. ./configure --prefix=/home/$USER/bin && make && make install
>> >> 3. set your new path as the one for the highest priority to find
>> >>    commands
>> >>    export PATH=/home/$USER/bin/bin:$PATH
>> >> 4. validate the install by checking the guile version with all the
>> >>    commands used in your previous mail
>> >>
>> >>
>> >> # 2 install guile dbi
>> >> 1. git clone https://github.com/opencog/guile-dbi.git
>> >> 2. compile guile-dbi
>> >>     cd guile-dbi
>> >>     ./autogen.sh --no-configure
>> >>     ./configure --prefix=/home/$USER/bin
>> >>     make
>> >>     make install
>> >>     cd ..
>> >>
>> >>
>> >> 3. compile mysql or any other dbd lib
>> >>     export C_INCLUDE_PATH=$C_INCLUDE_PATH:/home/$USER/bin/include
>> >>     cd guile-dbd-mysql # or other db's
>> >>     ./autogen.sh --no-configure
>> >>     ./configure --prefix=/home/$USER/bin && make && make install
>> >>
>> >> # 3 install artanis
>> >> 1. export PKG_CONFIG_PATH=/home/$USER/bin/lib/pkgconfig
>> >> 2. ./configure --prefix=/home/$USER/bin && make && make install
>> >>
>> >>
>> >> Let us know if you get it working.
>> >>
>> >> Cheers,
>> >>
>> >>
>> >> Java House <address@hidden> writes:
>> >>
>> >> > well, as they say
>> >> > the devil is in the details :)
>> >> >
>> >> > I did set the variable, correctly this time
>> >> >
>> >> >     $ echo $PKG_CONFIG_PATH
>> >> >     /usr/local/lib/pkgconfig
>> >> >
>> >> >     $ ./configure
>> >> >     checking for a BSD-compatible install... /usr/bin/install -c
>> >> >     checking whether ln -s works... yes
>> >> >     checking whether make sets $(MAKE)... yes
>> >> >     checking for pkg-config... /usr/local/bin/pkg-config
>> >> >     checking pkg-config is at least version 0.9.0... yes
>> >> >     configure: checking for guile 2.2
>> >> >     configure: found guile 2.2
>> >> >     checking for guile... /usr/local/bin/guile
>> >> >     configure: error: found development files for Guile 2.2, but
>> >> /usr/local/bin/guile has effective version 3.0
>> >> >
>> >> >     $ /usr/local/bin/guile -v
>> >> >     guile (GNU Guile) 2.2.2.506-e6461
>> >> >     Copyright (C) 2017 Free Software Foundation, Inc.
>> >> >
>> >> >     License LGPLv3+: GNU LGPL 3 or later <
>> >> http://gnu.org/licenses/lgpl.html>.
>> >> >     This is free software: you are free to change and redistribute it.
>> >> >     There is NO WARRANTY, to the extent permitted by law.
>> >> >
>> >> >     $ guile -c "(display (effective-version))"
>> >> >     3.0
>> >> >
>> >> >     $ guile
>> >> >     GNU Guile 2.2.2.506-e6461
>> >> >     Copyright (C) 1995-2017 Free Software Foundation, Inc.
>> >> >
>> >> >     Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show
>> w'.
>> >> >     This program is free software, and you are welcome to
>> redistribute it
>> >> >     under certain conditions; type `,show c' for details.
>> >> >
>> >> >     Enter `,help' for help.
>> >> >     scheme@(guile-user)> (display (effective-version))
>> >> >     3.0
>> >> >
>> >> > guile reports version 2.2.2.506-e6461 but when requesting effective
>> >> -version I get 3.0
>> >> > inside pkgconfig I see both 2.2 and 3.0 pc files. I
>> >> >
>> >> >     $ ls /usr/local/lib/pkgconfig/
>> >> >     guile-2.2.pc    guile-3.0.pc    guile-dbi.pc
>> >> >
>> >> > If is rename the guile-2.2.pc then when running configure I get
>> instead
>> >> >
>> >> >     # cd /usr/local/lib/pkgconfig/
>> >> >     address@hidden /usr/local/lib/pkgconfig]# ls
>> >> >     guile-2.2.pc    guile-3.0.pc    guile-dbi.pc
>> >> >     address@hidden /usr/local/lib/pkgconfig]# mv guile-2.2.pc
>> >> guile-2.2.pc.bak
>> >> >
>> >> >     $ ./configure
>> >> >     checking for a BSD-compatible install... /usr/bin/install -c
>> >> >     checking whether ln -s works... yes
>> >> >     checking whether make sets $(MAKE)... yes
>> >> >     checking for pkg-config... /usr/local/bin/pkg-config
>> >> >     checking pkg-config is at least version 0.9.0... yes
>> >> >     configure: checking for guile 2.2
>> >> >     configure: checking for guile 2.3
>> >> >     configure: checking for guile 3.0
>> >> >     configure: found guile 3.0
>> >> >     checking for guile... /usr/local/bin/guile
>> >> >     checking for Guile version >= 3.0... configure: error: Guile 3.0
>> >> required, but 2.3.0 found
>> >> >
>> >> > So I run again i guile and I got.
>> >> >
>> >> >     scheme@(guile-user)> (display (effective-version))
>> >> >     3.0
>> >> >     scheme@(guile-user)> (display (major-version))
>> >> >     2
>> >> >     scheme@(guile-user)> (display (minor-version))
>> >> >     3
>> >> >     scheme@(guile-user)> (display (micro-version))
>> >> >     0
>> >> >
>> >> > I dont understand how guile is reporting 3 different varsion
>> >> 2.2.2.506-e6461,   3.0 and 2.3.5 at the same time
>> >> >
>> >> > Hope you didnt get tired following my efforts.
>> >> >
>> >> > Στις Τρί, 14 Αυγ 2018 στις 3:41 π.μ., ο/η Julio Claudio Matus Ramirez
>> <
>> >> address@hidden> έγραψε:
>> >> >
>> >> >     Hey Nikolas,
>> >> >
>> >> >     Wow, your mail client is in Greek, that's pretty cool.
>> >> >
>> >> >     As instructed in my last mail,
>> >> >
>> >> >     >     find / -name "guile-2.2.pc"
>> >> >     >
>> >> >     >     And use that dir path.
>> >> >
>> >> >     You're doing:
>> >> >       export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/guile-2.2.pc
>> >> >
>> >> >     /usr/local/lib/pkgconfig/guile-2.2.pc points to a file, not a
>> >> directory
>> >> >     path.
>> >> >
>> >> >     Please try again with:
>> >> >       export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
>> >> >
>> >> >     Cheers,
>> >> >
>> >> >     Java House <address@hidden> writes:
>> >> >
>> >> >     > Hello
>> >> >     >
>> >> >     > Thank you for your tips
>> >> >     > I tried them but  pkg-config still cannot locate the guile 2.2
>> >> >     >
>> >> >     >     $ find / -name "guile-2.2.pc"
>> >> >     >     /usr/home/nikolas/Downloads/guile-2.2.4/meta/guile-2.2.pc
>> >> >     >     /usr/local/lib/pkgconfig/guile-2.2.pc
>> >> >     >     $ export
>> PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/guile-2.2.pc
>> >> >     >     $ echo $PKG_CONFIG_PATH
>> >> >     >     /usr/local/lib/pkgconfig/guile-2.2.pc
>> >> >     >     $ pkg-config --exists --print-errors guile-2.2
>> >> >     >     Package guile-2.2 was not found in the pkg-config search
>> path.
>> >> >     >     Perhaps you should add the directory containing
>> `guile-2.2.pc'
>> >> >     >     to the PKG_CONFIG_PATH environment variable
>> >> >     >     Package 'guile-2.2', required by 'virtual:world', not found
>> >> >     >
>> >> >     > both guile and artanis latest versions are downloaded from the
>> >> recomended git repository.
>> >> >     > I installed and used gmake on FreeBSD and I was using gmake
>> while
>> >> building guile.
>> >> >     > I placed all the steps I followed for building and installing
>> >> guile under FreeBSD here
>> >> >     >
>> >> http://nikolasnikou.blogspot.com/2018/08/build-guile-for-freebsd.html
>> >> >     >
>> >> >     > any more ideas?
>> >> >     >
>> >> >     > Kind Regards
>> >> >     > Nikolas
>> >> >     >
>> >> >     >
>> >> >     > Στις Σάβ, 11 Αυγ 2018 στις 2:17 π.μ., ο/η Julio Claudio Matus
>> >> Ramirez <address@hidden> έγραψε:
>> >> >     >
>> >> >     >     Hello Nikolas,
>> >> >     >
>> >> >     >     So, you tried to install artanis with guile 2.2.4 right?
>> >> >     >
>> >> >     >     Please try the command:
>> >> >     >
>> >> >     >     pkg-config --exists --print-errors guile-2.2
>> >> >     >     (configure does something like this to check your guile
>> >> version)
>> >> >     >
>> >> >     >     And see you don't get any errors.
>> >> >     >     If this worked then you can ignore the rest of this email...
>> >> >     >
>> >> >     >     If not,
>> >> >     >     I'm guessing your pkgconfig path is not the default one so
>> you
>> >> need to
>> >> >     >     declare it before running configure.
>> >> >     >
>> >> >     >     Mine looks like:
>> >> >     >     export PKG_CONFIG_PATH=/home/XXX/bin/lib/pkgconfig
>> >> >     >
>> >> >     >     Yours might be /usr/local/lib/pkgconfig ?
>> >> >     >     You can check by:
>> >> >     >
>> >> >     >     find / -name "guile-2.2.pc"
>> >> >     >
>> >> >     >     And use that dir path.
>> >> >     >
>> >> >     >     Cheers,
>> >> >     >
>> >> >     >     Java House <address@hidden> writes:
>> >> >     >
>> >> >     >     > Hello
>> >> >     >     >
>> >> >     >     > totally new in Gnu Guile and artanis.
>> >> >     >     > I am trying for the last couple of weeks to setup guile
>> and
>> >> artanis my local environment.
>> >> >     >     > I finally manage to build guile using the latest from git
>> >> 2.2.4
>> >> >     >     >
>> >> >     >     > I am following instruntions from here
>> >> https://www.gnu.org/software/artanis/manual/manual.html
>> >> >     >     > but ./configure fails to fins guile even though it has
>> been
>> >> installed.
>> >> >     >     >
>> >> >     >     > I downloaded artanis and then run
>> >> >     >     >
>> >> >     >     >     $ ./autogen.sh
>> >> >     >     >     aclocal -I m4
>> >> >     >     >     autoconf
>> >> >     >     >     Now try ./configure
>> >> >     >     >     $ ./configure
>> >> >     >     >     checking for a BSD-compatible install...
>> >> /usr/bin/install -c
>> >> >     >     >     checking whether ln -s works... yes
>> >> >     >     >     checking whether make sets $(MAKE)... yes
>> >> >     >     >     checking for pkg-config... /usr/local/bin/pkg-config
>> >> >     >     >     checking pkg-config is at least version 0.9.0... yes
>> >> >     >     >     configure: checking for guile 2.2
>> >> >     >     >     configure: checking for guile 2.3
>> >> >     >     >     configure: checking for guile 3.0
>> >> >     >     >     configure: error:
>> >> >     >     >     No Guile development packages were found.
>> >> >     >     >
>> >> >     >     > guile has been built and installed succesfully (after alot
>> >> of effort)
>> >> >     >     >
>> >> >     >     >     $ find / -name guile 2> /dev/null
>> >> >     >     >     /usr/home/nikolas/Downloads/guile
>> >> >     >     >     /usr/home/nikolas/Downloads/guile/libguile/.libs/guile
>> >> >     >     >     /usr/home/nikolas/Downloads/guile/libguile/guile
>> >> >     >     >     /usr/home/nikolas/Downloads/guile/meta/guile
>> >> >     >     >
>> >>  /usr/home/nikolas/Downloads/guile-2.2.4/libguile/.libs/guile
>> >> >     >     >     /usr/home/nikolas/Downloads/guile-2.2.4/libguile/guile
>> >> >     >     >     /usr/home/nikolas/Downloads/guile-2.2.4/meta/guile
>> >> >     >     >     /usr/local/bin/guile
>> >> >     >     >     /usr/local/lib/guile
>> >> >     >     >     /usr/local/include/guile
>> >> >     >     >     /usr/local/share/guile
>> >> >     >     >     /usr/ports/lang/guile
>> >> >     >     >
>> >> >     >     > I have also built
>> >> >     >     > guile-dbi-guile-dbd-postgresql-2.1.6
>> >> >     >     > guile-dbi-guile-dbi-2.1.6
>> >> >     >     >
>> >> >     >     > I am running FreeBSD
>> >> >     >     > # uname -a
>> >> >     >     > FreeBSD drake 11.2-RELEASE FreeBSD 11.2-RELEASE #0
>> r335510:
>> >> Fri Jun 22 04:32:14 UTC 2018     address@hidden
>> >> :/usr/obj/usr/src/sys/
>> >> >     >     GENERIC  amd64
>> >> >     >     >
>> >> >     >     > Any help or reference is aprreciated.
>> >> >     >     > Kind Regards
>> >> >     >     > Nikolas
>> >> >     >     >
>> >> >     >     >
>> >> >     >     >
>> >> >     >
>> >> >     >     --
>> >> >     >     address@hidden (XMPP/mail)
>> >> >     >     diaspora: sysad.org/u/rikijpn
>> >> >     >     GPG key:
>> >> http://pgp.mit.edu/pks/lookup?op=get&search=0x280640B9A94C170D
>> >> >     >
>> >> >
>> >> >     --
>> >> >     address@hidden (XMPP/mail)
>> >> >     other mails:address@hidden,gmail.com}
>> >> >     diaspora: sysad.org/u/rikijpn
>> >> >     tel: 050-5856-2271
>> >> >     SIP: address@hidden
>> >> >     GPG key:
>> >> http://pgp.mit.edu/pks/lookup?op=get&search=0x280640B9A94C170D
>> >> >
>> >>
>> >> --
>> >> address@hidden (XMPP/mail)
>> >> diaspora: sysad.org/u/rikijpn
>> >> GPG key: http://pgp.mit.edu/pks/lookup?op=get&search=0x280640B9A94C170D
>> >>
>>
>>
>> --
>> GNU Powered it
>> GPL Protected it
>> GOD Blessed it
>> HFG - NalaGinrut
>> Fingerprint F53B 4C56 95B5 E4D5 6093 4324 8469 6772 846A 0058
>>


--
GNU Powered it
GPL Protected it
GOD Blessed it
HFG - NalaGinrut
Fingerprint F53B 4C56 95B5 E4D5 6093 4324 8469 6772 846A 0058

Attachment: signature.asc
Description: PGP signature


reply via email to

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