Steve Jenson's blog

libevent 1.1 on Solaris 10

libevent 1.1 on Solaris 10

If you're trying to build libevent 1.1a on Solaris 10, you will run into a few problems:

Step 1) gcc 3.4 is installed but not in your $PATH. Fix this by adding /usr/sfw/bin to your $PATH

Step 2) The Makefile generated by autoconf is hardcoded to use make. Just edit it and set the MAKE variable to gmake.

Step 3) The link step will fail with the following error:

    false cru .libs/libevent.a  event.o buffer.o evbuffer.o log.o select.o poll.o devpoll.o signal.o
    gmake[2]: *** [] Error 1

You will shake your head and ask wtf? What's happened is that ar can't be found and so the value false has been put in it's place. You can tell this happened by looking at the configure output. The offending line is:

    checking for ar... false


Answer: add /usr/ccs/bin to your $PATH and re-run configure. Actually, if you had added this to your $PATH initially, you could've skipped Step 2. Both make and ar would have been found.

If I was smart enough, I would send some patches in. Things seem to work otherwise, I'm currently running plb successfully.

Oh yeah, so I'm running Solaris 10 on a Thinkpad A31p and I'm impressed that it recognized my video card and I could configure it to display at 1600x1200x32 without editing a single freaking config file. I wrote a small C++ program with a few subtle flaws to exercise dtrace but sofar my bugs aren't complicated enough to warrant dtrace; gdb would've done fine. We'll see.

Hey Solaris gurus, what do you use in Solaris that rivals epoll on Linux or kqueue on FreeBSD/OS X?

# — 19 June, 2005