Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #54670

Re: libpng12 makes it impossible to compile gforth with C bindings

From anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups comp.lang.forth
Subject Re: libpng12 makes it impossible to compile gforth with C bindings
Date 2017-02-06 08:53 +0000
Organization Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID <2017Feb6.095336@mips.complang.tuwien.ac.at> (permalink)
References <b99fe4bf-a20e-49b2-b177-0318ab54adde@googlegroups.com>

Show all headers | View raw


anotherreepca@gmail.com writes:
>Attempted to compile gforth as per instructions in INSTALL.md, got some errors
>in the "make more" stage complaining about libpng12 having a messed up header -
>apparently something about not wanting to include setjmp.h again? Not sure how
>to resolve that without a headache caused by manual package
>management... anyway, the important part is that (perhaps because of that,
>perhaps because of some other reason I didn't see in the build log) the c
>interface isn't defined at all - "c-interface" gives an "undefined word"
>error. Frustrating, I was hoping to use the C interface to get poll.h so I could
>plop a REPL in a loop without blocking.
>
>Any idea how to resolve this or if that's what's causing my problems with the C
>interface? 
>
>http://pastebin.com/KrUf9Vp6

It was not obvious how to make sense of the above, but I think I get
the gist of it now.  The link at the end is the build log, and it
shows that, while pre-building the C library wrappers, there is a
problem, apparently with unix/png.fs.

This means that unix/png.fs and unix/soillib.fs don't get their C
wrappers pre-built; if you use these, the system will try to build
them at run-time; if you don't, you will miss nothing.

Concerning C-INTERFACE, no such word is documented in the Gforth
documentation.  Maybe you are thinking of C-LIBRARY?  This exists and
works on your system, otherwise you would not see the error messages
you see.

Concerning poll(), this is already covered in unix/libc.fs, so you
don't have to deal with the definition part of the C interface to use
poll().  Just require unix/libc.fs and then call

poll ( fds nfds timeout -- r )

- anton
-- 
M. Anton Ertl  http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
     New standard: http://www.forth200x.org/forth200x.html
   EuroForth 2016: http://www.euroforth.org/ef16/

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

libpng12 makes it impossible to compile gforth with C bindings anotherreepca@gmail.com - 2017-02-03 18:46 -0800
  Re: libpng12 makes it impossible to compile gforth with C bindings anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-02-06 08:53 +0000
  Re: libpng12 makes it impossible to compile gforth with C bindings caleb.ristvedt@cune.org - 2017-02-08 14:59 -0800
    Re: libpng12 makes it impossible to compile gforth with C bindings anotherreepca@gmail.com - 2017-02-08 19:53 -0800
    Re: libpng12 makes it impossible to compile gforth with C bindings anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-02-09 10:37 +0000
      Re: libpng12 makes it impossible to compile gforth with C bindings anotherreepca@gmail.com - 2017-02-12 02:59 -0800
        Re: libpng12 makes it impossible to compile gforth with C bindings anotherreepca@gmail.com - 2017-02-12 13:04 -0800
          Re: libpng12 makes it impossible to compile gforth with C bindings anotherreepca@gmail.com - 2017-02-12 15:24 -0800
        Re: libpng12 makes it impossible to compile gforth with C bindings anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-02-13 14:18 +0000
          Compilation errors anotherreepca@gmail.com - 2017-02-14 17:10 -0800

csiph-web