ellson / MOTHBALLED-graphviz

Moved to https://gitlab.com/graphviz/graphviz
Eclipse Public License 1.0
1.29k stars 253 forks source link

Build is failing: libuuid problem #15

Open dilawar opened 10 years ago

dilawar commented 10 years ago

I compiled graphviz from github. I downloaded libuuid and build it, installed it before compiling graphgiz. Yet it fails with following error.

make[4]: Leaving directory `/root/Bhandar/Applications/SourceCode/graphviz/cmd/lefty/examples'
make[4]: Entering directory `/root/Bhandar/Applications/SourceCode/graphviz/cmd/lefty'
  CCLD   lefty
/usr/lib/libSM.so: undefined reference to `uuid_unparse_lower@UUID_1.0'
/usr/lib/libSM.so: undefined reference to `uuid_generate@UUID_1.0'
ellson commented 10 years ago

What OS are you building on?

-lSM comes from @X_PRE_LIBS@ which is set by the AC_PATH_XTRA macro in configure.ac

Its not something we've changed in 10+ years, I think. I've no idea why the new dependency on libuuid, or why your autoconf doesn't know about it.

Perhaps see if there is an autoconf upgrade available?

dilawar commented 10 years ago

I am on Slacko puppy linux 5.7.0. Its a rather minimal distro which one keeps on external hdd. l had to recompile libsm and everything went fine. I guess its was a problem with default libsm on puppy.

Dilawar

John Ellson notifications@github.com wrote:

What OS are you building on? -lSM comes from @X_PRE_LIBS@ which is set by the AC_PATH_XTRA macro in configure.ac Its not something we've changed in 10+ years, I think. I've no idea why the new dependency on libuuid, or why your autoconf doesn't know about it. Perhaps see if there is an autoconf upgrade available? — Reply to this email directly or view it on GitHub.

emdenrg commented 10 years ago

We made some changes to cmd/lefty/os/unix/io.c within the last 6 months because it wasn't compatible with recent versions of getaddrinfo. In turn, this broke the build on some other systems. Apparently, this is one of those areas where the correct API is very system and version dependent. There is no include of uuid.h in lefty, so it has to be coming in from some system include file.

Unless you really need lefty and dotty, the simplest workaround is to not build them. They are really old and we've been hoping to remove them for a long time. Unfortunately, we no longer have the resources to track down the correct #ifdefs needed to discriminate between systems, especially on software barely being maintained. If you can submit a patch that would fix the problem, we'd welcome it.