Thank you for your advices. I have fixed the problem according to guidelines you provided.<br><br><br><div class="gmail_quote">On Mon, Oct 20, 2008 at 7:05 AM, Eero Tamminen <span dir="ltr">&lt;<a href="mailto:eero.tamminen@nokia.com">eero.tamminen@nokia.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<div class="Ih2E3d"><br>
<br>
ext Yao Wang wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 &nbsp; &nbsp;Everyone. I am developping an appliacation on CHINOOK.<br>
 &nbsp; &nbsp;Because my code used some functions provided by Libcurl, I revised the<br>
Makefile &nbsp;to the following<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
CC = gcc<br>
<br>
CFLAGS = `pkg-config --cflags gtk+-2.0 hildon-1` &nbsp;-ansi -Wall -ggdb<br>
<br>
CFLAGS_CURL = -I/scratchbox/devkits/maemo3-tools/include<br>
<br>
LIBS = `pkg-config --libs gtk+-2.0 hildon-1`<br>
<br>
LIB_CURL = -L/scratchbox/devkits/maemo3-tools/lib -lcurl -Wl,-rpath<br>
-Wl,/scratchbox/host_shared/lib/ -Wl,-rpath -Wl,/scratchbox/tools/lib/<br>
-Wl,-rpath -Wl,/scratchbox/devkits/maemo3-tools/lib/<br>
-L/scratchbox/devkits/maemo3-tools/lib -lidn -lssl -lcrypto -ldl -lssl<br>
-lcrypto -ldl -lz<br>
</blockquote></blockquote>
<br></div>
You should never mix stuff for the target and stuff from the Scratchbox<br>
itself like this.<div class="Ih2E3d"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

TARGET = &nbsp; &nbsp; &nbsp; &nbsp;GalleryBrowser<br>
<br>
SOURCES = src/main.c src/xxxx.c<br>
<br>
$(TARGET): $(SOURCES)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;$(CC) -o $(TARGET) $(SOURCES) $(CFLAGS) $(CFLAGS_CURL) $(LIBS)<br>
$(LIB_CURL)<br>
<br>
</blockquote>
<br>
The CFLAGS_CURL and LIB_CURL &nbsp;are generated by curl-config.<br>
<br>
After compiling and linking, I got a error messege same as following link:<br>
<br>
<a href="https://bugs.maemo.org/show_bug.cgi?id=2261#add_comment" target="_blank">https://bugs.maemo.org/show_bug.cgi?id=2261#add_comment</a><br>
<br>
Unfortuantely, no solution is provided in this page.<br>
</blockquote>
<br></div>
Just remove the curl-config from Scratchbox installation (as host tools<br>
override target tools for performance reasons) and install curl -dev<br>
package to your Scratchbox target.<div class="Ih2E3d"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Someone in this page mentioned to remove -lidn. When I removed the -lidn,<br>
the linking process is OK. However, if I run the program, I will get a error<br>
messge:<br>
<br>
&quot; relocation error: /scratchbox/host_shared/lib/libc.so.6: symbol<br>
_dl_starting_up, version GLIBC_PRIVATE not defined in file ld-linux.so.2<br>
with link time reference&quot;<br>
</blockquote>
<br></div>
You&#39;re mixing libraries that bring in different C-libraries,<br>
the x86 Scratchbox target one, and the Scratchbox x86 host tools one.<br><font color="#888888">
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;- Eero</font><div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thus, is there anyone who can help me?<br>
<br>
Thanks in advance.<br>
</blockquote>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Sincerely yours, <br><br>Yao Wang<br><br>Mobile Life Lab<br>Beijing University of Posts &amp; Telecommunications<br>