<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How To: create your own work generator script (part 4)</title>
	<atom:link href="http://blog.os-tools.net/en/how-to-create-your-own-work-generator-script-part-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.os-tools.net/en/how-to-create-your-own-work-generator-script-part-4/</link>
	<description>Notes of an open-source programmer.</description>
	<lastBuildDate>Fri, 27 Aug 2010 18:46:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: FG</title>
		<link>http://blog.os-tools.net/en/how-to-create-your-own-work-generator-script-part-4/comment-page-1/#comment-20419</link>
		<dc:creator>FG</dc:creator>
		<pubDate>Fri, 27 Aug 2010 18:46:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.os-tools.net/?p=236#comment-20419</guid>
		<description>I tried compiling it, but it did not work...

INCLUDES= -I. -I$(BOINC_BUILD) \
-I$(BOINC_BUILD)/api \
-I$(BOINC_BUILD)/lib \
-I$(BOINC_BUILD)/db \
-I$(BOINC_BUILD)/sched \
-I$(BOINC_BUILD)/tools \
-I$(BOINC_BUILD)/include/boinc \
-I/usr/include/mysql

##- Libraries:
LIBDIRS= -L. -L$(BOINC_BUILD)/lib \
-L$(BOINC_BUILD)/api \
-L$(BOINC_BUILD)/sched \
-L/usr/lib

LIBS= -lm $(LIBDIRS) -lsched -lmysqlclient -lboinc_api -lboinc -lz

-----------------------------------------------

The error message I am getting is the following:

/usr/lib/libmysqlclient.a(mf_pack.o): In function `unpack_dirname&#039;:
(.text+0xac9): warning: Using &#039;getpwnam&#039; in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libmysqlclient.a(libmysql.o): In function `read_user_name&#039;:
(.text+0x4271): warning: Using &#039;getpwuid&#039; in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libmysqlclient.a(mf_pack.o): In function `unpack_dirname&#039;:
(.text+0xae9): warning: Using &#039;endpwent&#039; in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libmysqlclient.a(my_gethostbyname.o): In function `my_gethostbyname_r&#039;:
(.text+0x3c): warning: Using &#039;gethostbyname_r&#039; in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libmysqlclient.a(libmysql.o): In function `mysql_server_init&#039;:
(.text+0x49c2): warning: Using &#039;getservbyname&#039; in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/home/francis/boinc/sched/libsched.a(libsched_la-process_result_template.o): In function `add_signatures(char*, R_RSA_PRIVATE_KEY&amp;)&#039;:
/home/francis/boinc/sched/../tools/process_result_template.cpp:63: undefined reference to `generate_signature(char*, char*, R_RSA_PRIVATE_KEY&amp;)&#039;
collect2: ld returned 1 exit status
make: *** [workgen] Error 1


I tried under different platforms (Kubuntu-32bit/64bit)

The version of BOINC is 6.11.1
The version of MySQL is mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1</description>
		<content:encoded><![CDATA[<p>I tried compiling it, but it did not work&#8230;</p>
<p>INCLUDES= -I. -I$(BOINC_BUILD) \<br />
-I$(BOINC_BUILD)/api \<br />
-I$(BOINC_BUILD)/lib \<br />
-I$(BOINC_BUILD)/db \<br />
-I$(BOINC_BUILD)/sched \<br />
-I$(BOINC_BUILD)/tools \<br />
-I$(BOINC_BUILD)/include/boinc \<br />
-I/usr/include/mysql</p>
<p>##- Libraries:<br />
LIBDIRS= -L. -L$(BOINC_BUILD)/lib \<br />
-L$(BOINC_BUILD)/api \<br />
-L$(BOINC_BUILD)/sched \<br />
-L/usr/lib</p>
<p>LIBS= -lm $(LIBDIRS) -lsched -lmysqlclient -lboinc_api -lboinc -lz</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>The error message I am getting is the following:</p>
<p>/usr/lib/libmysqlclient.a(mf_pack.o): In function `unpack_dirname&#8217;:<br />
(.text+0xac9): warning: Using &#8216;getpwnam&#8217; in statically linked applications requires at runtime the shared libraries from the glibc version used for linking<br />
/usr/lib/libmysqlclient.a(libmysql.o): In function `read_user_name&#8217;:<br />
(.text+0&#215;4271): warning: Using &#8216;getpwuid&#8217; in statically linked applications requires at runtime the shared libraries from the glibc version used for linking<br />
/usr/lib/libmysqlclient.a(mf_pack.o): In function `unpack_dirname&#8217;:<br />
(.text+0xae9): warning: Using &#8216;endpwent&#8217; in statically linked applications requires at runtime the shared libraries from the glibc version used for linking<br />
/usr/lib/libmysqlclient.a(my_gethostbyname.o): In function `my_gethostbyname_r&#8217;:<br />
(.text+0x3c): warning: Using &#8216;gethostbyname_r&#8217; in statically linked applications requires at runtime the shared libraries from the glibc version used for linking<br />
/usr/lib/libmysqlclient.a(libmysql.o): In function `mysql_server_init&#8217;:<br />
(.text+0x49c2): warning: Using &#8216;getservbyname&#8217; in statically linked applications requires at runtime the shared libraries from the glibc version used for linking<br />
/home/francis/boinc/sched/libsched.a(libsched_la-process_result_template.o): In function `add_signatures(char*, R_RSA_PRIVATE_KEY&amp;)&#8217;:<br />
/home/francis/boinc/sched/../tools/process_result_template.cpp:63: undefined reference to `generate_signature(char*, char*, R_RSA_PRIVATE_KEY&amp;)&#8217;<br />
collect2: ld returned 1 exit status<br />
make: *** [workgen] Error 1</p>
<p>I tried under different platforms (Kubuntu-32bit/64bit)</p>
<p>The version of BOINC is 6.11.1<br />
The version of MySQL is mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1</p>
]]></content:encoded>
	</item>
</channel>
</rss>

