[Web10g-user] broken Makefile for userspace APIs

Colin Dixon ckd at us.ibm.com
Mon Aug 13 17:33:50 EDT 2012


I tried to build the userspace APIs on Ubuntu 12.0.4 and found that the
wouldn't compile. After a bit of poking, our intern found that moving the
-lmnl option to the end of the lines in the Makefile solved the problem.

Presumably, others will run into this issue. I've put the relevant patch
inline below.

Colin Dixon
Researcher
IBM Research — Austin

$ diff -up web10g-estats-0.1-3.2/Makefile
web10g-estats-0.1-3.2-fixed-Makefile/Makefile
--- web10g-estats-0.1-3.2/Makefile	2012-03-20 21:24:02.000000000 -0500
+++ web10g-estats-0.1-3.2-fixed-Makefile/Makefile	2012-08-08
12:10:42.597202989 -0500
@@ -1,7 +1,7 @@

 default:
-	$(CC) -Wall -Wextra -Wno-unused -lmnl web10g_request.c
tcp_estats_resolve.c -o web10g_request
-	$(CC) -Wall -Wextra -Wno-unused -lmnl web10g_receive.c
tcp_estats_resolve.c tcp_estats_var.c -o web10g_receive
+	$(CC) -Wall -Wextra -Wno-unused web10g_request.c tcp_estats_resolve.c
-o web10g_request -lmnl
+	$(CC) -Wall -Wextra -Wno-unused web10g_receive.c tcp_estats_resolve.c
tcp_estats_var.c -o web10g_receive -lmnl

 clean:
 	rm -rf *.o web10g_receive web10g_request
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.psc.edu/pipermail/web10g-user/attachments/20120813/6b1d2eea/attachment.html 


More information about the Web10g-user mailing list