It's so weird... It works now, either with #include bsd/stdlib.h or
not.
于2014年7月31日 8:40:05,Jonathan Billings写到:
On Thu, Jul 31, 2014 at 08:09:52AM +0800, Theodore Si wrote:
I build it myself, not using rpm since it doesn't work. My OS is 32bit.
It works for me with libbsd and libbsd-devel
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
I build it myself, not using rpm since it doesn't work. My OS is 32bit.
On Jul 31, 2014 4:21 AM, Jonathan Billings billi...@negate.org wrote:
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
On Thu, Jul 31, 2014 at 08:09:52AM +0800, Theodore Si wrote:
I build it myself, not using rpm since it doesn't work. My OS is 32bit.
It works for me with libbsd and libbsd-devel installed:
$ cd /tmp
$ wget http://www.apuebook.com/src.3e.tar.gz
$ tar zxvf src.3e.tar.gz
$ cd apue.3e
$ make
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:
gcc -ansi -I../include -Wall -DLINUX -D_GNU_SOURCE barrier.c -o barrier
-L../lib -lapue -pthread -lrt -lbsd
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
So all the packages of Fedora can also be used in CentOS?
于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
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,
I've installed libbsd(I think I have successed because when I execute
man heapsort I see this)
and I make a link /lib/libbsd.so
since in the file Make.defines.linux the LDDIR is as follows:
then I add this to threads/barrier.c
howerver, I still get this:
? 2014/7/29 23:58, Jonathan
2014-07-30 6:01 GMT+03:00 Theodore Si sjyz...@gmail.com:
I've installed libbsd(I think I have successed because when I execute
man heapsort I see this)
install libbsd development package also?
--
Eero
___
CentOS mailing list
CentOS@centos.org
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
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?
12 matches
Mail list logo