On Sun, Dec 14, 2008 at 09:24:34AM +0530, Rishikesh K. Rajak wrote: > 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) > The Makefile in the current way is not correct however. Instead of linking to the library from the upper folder it should link from the standard system path. I will fix it in sometime. Rishi, Did you do a make install in upper dir? Or is the libcgroup package installed ?
-- Regards Sudhir Kumar Linux Technology Center IBM, India. ------------------------------------------------------------------------------ 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
