You shouldn't need the bsd/stdlib.h if the barrier.c used the function definition you described in your original message. I was able to find and build the file on CentOS 6 with the EPEL libbsd package installed.
Are you sure you installed the right package? 32-bit vs. 64-bit?
On July 29, 2014 11:54:01 PM EDT, Theodore Si sjyzhxw@gmail.com wrote:
I write a .c file and #include <bsd/stdlib.h> and call heapsort, I get this:
Apparently, heapsort can be called.
于2014年7月30日 11:46:55,Theodore Si写到:
I build the libbsd from source code that I downloaded from here: http://libbsd.freedesktop.org/wiki/
I think I got all things needed, right?
于2014年7月30日 10:35:39,Theodore Si写到:
I tried to install libbsd before, it didn't work.(I can execute man heapsort) Today, I installed epel-release-6-8.noarch.rpm and then yum install libbsd,(No result for man heapsort) but it still doesn't work.
于2014年7月29日 23:58:48,Jonathan Billings写到:
On Tue, Jul 29, 2014 at 10:00:53PM +0800, Theodore Si wrote:
Hi all,
I want to compile the source code of Advanced Programming in the
Unix
Environment(APUE) 3rd edition, and I encountered some
difficulties.
After executing "make", I got this message: [...] How to install libbsd to solve this problem on CentOS (this works
on
Ubuntu)?
You need the 'libbsd' package, available in EPEL. (http://fedoraproject.org/wiki/EPEL)
The 'heapsort()' function is implemented there.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos