[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: geda vs. SPARC



Hi folks,


Now I can compile gschem's objects, but the linker fails. It seems that
there's something wrong with the guile lib.

The output is:

gcc  -g -O2   -o gschem  a_pan.o a_zoom.o g_register.o g_hook.o g_rc.o
g_key.o g_funcs.o globals.o gschem.o i_basic.o i_callbacks.o i_vars.o
o_basic.o o_attrib.o o_move.o o_copy.o o_delete.o o_misc.o o_slot.o
o_grips.o o_arc.o o_box.o o_circle.o o_complex.o o_select.o o_find.o
o_line.o o_net.o o_text.o o_pin.o o_bus.o o_buffer.o o_undo.o x_basic.o
x_dialog.o x_event.o x_grid.o x_log.o x_menus.o x_script.o x_pagesel.o
x_print.o x_window.o x_stroke.o x_image.o x_color.o x_fileselect.o
x_preview.o x_attribedit.o x_multiattrib.o parsecmd.o o_cue.o -lstroke
-L/usr/local/lib -lgeda -lguile -lsocket -lnsl -lm -lglib  
-R/usr/openwin/lib -L/usr/local/lib -L/usr/openwin/lib -lgtk -lgdk
-lXext -lX11 -lsocket -lnsl -lm -lglib     -L/usr/openwin/lib
-R/usr/openwin/lib -lsocket  -lnsl  -lSM -lICE -lX11 -lm
Undefined                       first referenced
 symbol                             in file
lt_dlclose                          /usr/local/lib/libguile.a(dynl.o)
lt_dlerror                          /usr/local/lib/libguile.a(dynl.o)
lt_dlopenext                        /usr/local/lib/libguile.a(dynl.o)
lt_dlinit                           /usr/local/lib/libguile.a(dynl.o)
lt_dlsym                            /usr/local/lib/libguile.a(dynl.o)
ld: fatal: Symbol referencing errors. No output written to gschem
collect2: ld returned 1 exit status



I wrote a little program, to figure out things, but I had no succes.
Here's my program:


#include <stdio.h>
#include </usr/local/include/libguile.h>
#include </usr/local/include/ltdl.h>
#include <guile/gh.h>

main()
{
   int i;
   
   printf("Kakukk\n");
   lt_dlclose(&i);
   return 0;
}


I compiled it with the following command:


leva@levasparc2:~$ gcc -O2 `guile-config compile` `guile-config link` -o
test test.c



test.c: In function `main':
test.c:11: warning: passing arg 1 of `lt_dlclose' from incompatible
pointer type /*That's OK.*/
Undefined                       first referenced
 symbol                             in file
lt_dlclose                          /var/tmp//cctKmjco.o
ld: fatal: Symbol referencing errors. No output written to test
collect2: ld returned 1 exit status

I get the same thing. Why? It has all what gulie want to include, since
I used directly the guile-config scripts.

I'm stuck. Please help me. I gues you know the background. Solaris 2.6,
Ultra1, SPARC, GCC 3.2 (or something like that)

Thank you
Levente

-- 
Leva

__

E-Mail: leva@interware.hu
AIM: ha5ogl
ICQ: 48710903
MSN: ha5ogl@hotmail.com
Yahoo!: kieg_tk16
Home Page: http://web.interware.hu/leva
Public key: http://web.interware.hu/leva/cuccok/public_key

________________________________________

/"\
\ /    ASCII Ribbon Campaign
 X   against HTML email & vCards
/ \     http://arc.pasp.de/

Have Fun, & Linux! 73 for all by HA5OGL.
This message was generated by Sylpheed.

Attachment: pgp00002.pgp
Description: PGP signature