Subject: pkgsrc on Tru64
To: None <>
From: Lars Nordlund <>
List: tech-pkg
Date: 08/17/2005 01:44:41

Having helped a friend over IRC getting pkgsrc to work a bit better on
OSF1 tonight, I thought I could share the findings.

We used the Compaq c compiler, ccc.

Compiling programs which do not use pthreads works "ok", I guess. The
pthread using programs did not work at all. After some digging around
we found that the reason audio/xmms failed to configure properly was
that the -pthread flag was missing when the pre-processor was used to
test the pthread.h file. Right now the fix on his machine is:


in /etc/mk.conf.

But I think a variant of this fix is this patch on

RCS file: /home/cvs/cvsup/netbsd/pkgsrc/mk/,v
retrieving revision 1.9
diff -u -p -r1.9
---  9 Jun 2005 06:03:40 -0000       1.9
+++  16 Aug 2005 23:06:50 -0000
@@ -59,6 +59,7 @@ BUILDLINK_CFLAGS.pthread+=    -pthread
 BUILDLINK_LDFLAGS.pthread+=    -pthread
 .    elif ${OPSYS} == "OSF1"
 BUILDLINK_CFLAGS.pthread+=     -pthread
+BUILDLINK_CPPFLAGS.pthread+=   -pthread
 .    else
 .    endif

Perhaps some more OSF1-user can verify? Without the addition of
-pthread to CPPFLAGS the configure script of pthread using programs
will bomb because code including pthread.h can not be run through
the pre-processor.

libao lacks an output plugin for OSF1. Have not looked at this any
closer. He is trying libao-esound right now but it is unclear if esound
will be able to make any sound in the speakers.

Best regards
	Lars Nordlund