<div dir="ltr">Hi,<br> Everyone. I am developping an appliacation on CHINOOK.<br> Because my code used some functions provided by Libcurl, I revised the Makefile to the following <br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div style="margin-left: 40px;">CC = gcc<br><br>CFLAGS = `pkg-config --cflags gtk+-2.0 hildon-1` -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 -Wl,/scratchbox/host_shared/lib/ -Wl,-rpath -Wl,/scratchbox/tools/lib/ -Wl,-rpath -Wl,/scratchbox/devkits/maemo3-tools/lib/ -L/scratchbox/devkits/maemo3-tools/lib -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz<br>
<br>TARGET = GalleryBrowser<br><br>SOURCES = src/main.c src/xxxx.c<br><br>$(TARGET): $(SOURCES)<br> $(CC) -o $(TARGET) $(SOURCES) $(CFLAGS) $(CFLAGS_CURL) $(LIBS) $(LIB_CURL)<br></div></blockquote> <br>The CFLAGS_CURL and LIB_CURL 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">https://bugs.maemo.org/show_bug.cgi?id=2261#add_comment</a><br clear="all">
<br>Unfortuantely, no solution is provided in this page.<br>Someone in this page mentioned to remove -lidn. When I removed the -lidn, the linking process is OK. However, if I run the program, I will get a error messge: <br>
<br>" relocation error: /scratchbox/host_shared/lib/libc.so.6: symbol _dl_starting_up, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference"<br><br>Thus, is there anyone who can help me?<br>
<br>Thanks in advance.<br><br>-- <br> Sincerely yours, <br><br>Yao Wang<br><br>Mobile Life Lab<br>Beijing University of Posts & Telecommunications<br>
</div>