Hi List,

When you run make inside libcgroup-0.32.1/tests directory, it will give
error as:

:/usr/src/packages/BUILD/libcgroup-0.32.1/tests # make
cc -g -O2 -Wall -DDEBUG -o pathtest pathtest.c -L .. -lcgroup -lpthread
pathtest.c:6:23: error: libcgroup.h: No such file or directory
pathtest.c: In function ‘main’:
pathtest.c:23: warning: implicit declaration of function ‘cgroup_init’
pathtest.c:25: warning: implicit declaration of function
‘cgroup_get_current_controller_path’
make: *** [pathtest] Error 1
:/usr/src/packages/BUILD/libcgroup-0.32.1/tests #

This patch fix the problem.
---
Index: tests/Makefile
===================================================================
--- tests.orig/Makefile
+++ tests/Makefile
@@ -21,7 +21,7 @@ setuid: setuid.c
        $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LIBS)

 pathtest: pathtest.c
-       $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LIBS)
+       $(CC) $(CXXFLAGS) -o $@ $< $(LDFLAGS) $(LIBS)

 clean:
        \rm -f $(TARGET)


Rishi
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to