vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
547 stars 90 forks source link

Unchecked rpc/types.h dependency #288

Closed hfiguiere closed 2 years ago

hfiguiere commented 2 years ago

Between 2.70 and now, asymptote started expecting rpc/types.h to be available (building on Linux).

However:

So asymptote build fail.

A few more notes:

johncbowman commented 2 years ago

There is some confusion here.

To support v3d, you need to install libtirpc-devel; we haven't relied on glibc for its (broken) rpc headers for many years now...

Before the 2.71 release, v3dfile.h and v3dfile.cc were already guarded by

ifdef HAVE_RPC_RPC_H

But I see now that this guard is missing from pair.h, triple.h, and oPRCFile.h.

Not having XDR support is far from ideal; it much better to simply install libtirpc-devel before configuring.

By the way we don't currently check for rpc/netdb.h If you are also missing this standard file, a workaround is to configure with --disable-lsp.

hfiguiere commented 2 years ago

I'm was just saying rpc/netdb.h is the only include in rpc/*.

johncbowman commented 2 years ago

Fixed in 827f4188c785a80199c9499122b04256667880bb.