On Wed, Jan 08, 2003 at 04:02:46PM -0500, Thomas Heute wrote:
I am getting close, i still can't link everything when i crosscompile Dillo to port on iPAQ
Now i have this message:
arm-linux-gcc -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -g -O2 -D_REENTRANT -D_THREAD_SAFE -Wall -Waggregate-return -L/usr/local/lib -o dillo chain.o commands.o cache.o dw.o dw_aligned_page.o dw_bullet.o dw_button.o dw_container.o dw_embed_gtk.o dw_gtk_scrolled_frame.o dw_gtk_scrolled_window.o dw_gtk_statuslabel.o dw_gtk_viewport.o dw_hruler.o dw_image.o dw_list_item.o dw_marshal.o dw_page.o dw_style.o dw_table.o dw_tooltip.o dw_widget.o findtext.o web.o progressbar.o dillo.o bookmark.o dicache.o dns.o gif.o jpeg.o png.o html.o image.o misc.o interface.o history.o nav.o plain.o menu.o prefs.o colors.o bitvec.o klist.o url.o cookies.o external.o IO/libDio.a -L/skiff/local/arm-linux/lib -L/skiff/local/arm-linux/lib/X11 -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -L/skiff/local/arm-linux/lib dns.o: In function `Dns_server': /home/theute/AppliPDA/dillo-current-arm/src/dns.c:232: undefined reference to `pthread_detach'
Add -lpthread.
dns.o: In function `Dns_server_req': /home/theute/AppliPDA/dillo-current-arm/src/dns.c:316: undefined reference to `pthread_create' jpeg.o: In function `Jpeg_close':
Add -ljpeg (and compile it)
/home/theute/AppliPDA/dillo-current-arm/src/jpeg.c:131: undefined reference to `jpeg_destroy_decompress' jpeg.o: In function `Jpeg_new': /home/theute/AppliPDA/dillo-current-arm/src/jpeg.c:211: undefined reference to `jpeg_std_error' /home/theute/AppliPDA/dillo-current-arm/src/jpeg.c:214: undefined reference to `jpeg_CreateDecompress' /home/theute/AppliPDA/dillo-current-arm/src/jpeg.c:231: undefined reference to `jpeg_resync_to_restart' jpeg.o: In function `Jpeg_write': /home/theute/AppliPDA/dillo-current-arm/src/jpeg.c:274: undefined reference to `jpeg_read_header' /home/theute/AppliPDA/dillo-current-arm/src/jpeg.c:294: undefined reference to `jpeg_start_decompress' /home/theute/AppliPDA/dillo-current-arm/src/jpeg.c:304: undefined reference to `jpeg_read_scanlines' /home/theute/AppliPDA/dillo-current-arm/src/jpeg.c:316: undefined reference to `jpeg_destroy_decompress' /home/theute/AppliPDA/dillo-current-arm/src/jpeg.c:322: undefined reference to `jpeg_destroy_decompress' png.o: In function `Png_error_handling':
-lpng :)
/home/theute/AppliPDA/dillo-current-arm/src/png.c:108: undefined reference to `png_get_error_ptr' png.o: In function `Png_datainfo_callback': /home/theute/AppliPDA/dillo-current-arm/src/png.c:130: undefined reference to `png_get_progressive_ptr' /home/theute/AppliPDA/dillo-current-arm/src/png.c:133: undefined reference to `png_get_IHDR' /home/theute/AppliPDA/dillo-current-arm/src/png.c:147: undefined reference to `png_get_valid' /home/theute/AppliPDA/dillo-current-arm/src/png.c:149: undefined reference to `png_set_expand' /home/theute/AppliPDA/dillo-current-arm/src/png.c:151: undefined reference to `png_set_expand' /home/theute/AppliPDA/dillo-current-arm/src/png.c:155: undefined reference to `png_set_strip_16' /home/theute/AppliPDA/dillo-current-arm/src/png.c:161: undefined reference to `png_get_gAMA' /home/theute/AppliPDA/dillo-current-arm/src/png.c:162: undefined reference to `png_set_gamma' /home/theute/AppliPDA/dillo-current-arm/src/png.c:167: undefined reference to `png_set_gray_to_rgb' /home/theute/AppliPDA/dillo-current-arm/src/png.c:172: undefined reference to `png_set_interlace_handling' /home/theute/AppliPDA/dillo-current-arm/src/png.c:176: undefined reference to `png_read_update_info' /home/theute/AppliPDA/dillo-current-arm/src/png.c:178: undefined reference to `png_get_IHDR' /home/theute/AppliPDA/dillo-current-arm/src/png.c:181: undefined reference to `png_get_rowbytes' /home/theute/AppliPDA/dillo-current-arm/src/png.c:182: undefined reference to `png_get_channels' png.o: In function `Png_datarow_callback': /home/theute/AppliPDA/dillo-current-arm/src/png.c:218: undefined reference to `png_get_progressive_ptr' /home/theute/AppliPDA/dillo-current-arm/src/png.c:220: undefined reference to `png_progressive_combine_row' png.o: In function `Png_dataend_callback': /home/theute/AppliPDA/dillo-current-arm/src/png.c:281: undefined reference to `png_get_progressive_ptr' png.o: In function `Png_callback': /home/theute/AppliPDA/dillo-current-arm/src/png.c:324: undefined reference to `png_destroy_read_struct' /home/theute/AppliPDA/dillo-current-arm/src/png.c:352: undefined reference to `png_check_sig' /home/theute/AppliPDA/dillo-current-arm/src/png.c:358: undefined reference to `png_create_read_struct' /home/theute/AppliPDA/dillo-current-arm/src/png.c:364: undefined reference to `png_create_info_struct' /home/theute/AppliPDA/dillo-current-arm/src/png.c:369: undefined reference to `png_set_progressive_read_fn' /home/theute/AppliPDA/dillo-current-arm/src/png.c:383: undefined reference to `png_process_data' IO/libDio.a(file.o): In function `File_transfer_file': /home/theute/AppliPDA/dillo-current-arm/src/IO/file.c:167: undefined reference to `pthread_detach' IO/libDio.a(file.o): In function `File_transfer_dir': /home/theute/AppliPDA/dillo-current-arm/src/IO/file.c:205: undefined reference to `pthread_detach' IO/libDio.a(file.o): In function `File_get_dir': /home/theute/AppliPDA/dillo-current-arm/src/IO/file.c:353: undefined reference to `pthread_create' IO/libDio.a(file.o): In function `File_get_file': /home/theute/AppliPDA/dillo-current-arm/src/IO/file.c:372: undefined reference to `pthread_create' /skiff/local/arm-linux/lib/libc.so.6: undefined reference to `_dl_init_next@GLIBC_2.0'
This is bad. How did the compile glibc?
/skiff/local/arm-linux/lib/libglib.so: undefined reference to `getpwuid_r@GLIBC_2.1.2' /skiff/local/arm-linux/lib/libgdk.so: undefined reference to `shmctl@GLIBC_2.2' /skiff/local/arm-linux/lib/libgtk.so: undefined reference to `localeconv@GLIBC_2.2' /skiff/local/arm-linux/lib/libgtk.so: undefined reference to `fnmatch@GLIBC_2.2.3'
This could be a sign for wrong include files or it is related to the _dl_init_next@GLIBC_2.0 problem.
collect2: ld returned 1 exit status
Any help would be very appreciated.
Hopefully it helps... - Joerg
Thomas
_______________________________________________ Dillo-dev mailing list Dillo-dev@lists.auriga.wearlab.de http://lists.auriga.wearlab.de/cgi-bin/mailman/listinfo/dillo-dev