gEDA-dev: Preview widget in File-Open (schem)

Peter Clifton pcjc2 at cam.ac.uk
Tue Jul 25 10:38:23 EDT 2006


On Tue, 2006-07-25 at 18:28 +0200, Patrick Bernaud wrote:
> Peter Clifton writes:
>  > [...]
>  > I've used:
>  > 
>  > configure --prefix=/home/pcjc2/geda_bernaud/ --with-libintl-prefix=/usr/
>  > 
>  > But at the final linking stage, it gives:
>  > 
>  > "gcc -Wall -g -O2   -o gschem  a_pan.o a_zoom.o g_register.o g_hook.o
>  > g_rc.o g_keys.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
>  > o_picture.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_compselect.o x_fileselect.o x_preview.o x_attribedit.o
>  > x_multiattrib.o parsecmd.o o_cue.o -lstroke -Wl,-rpath,/usr/lib
>  > -L/home/pcjc2/geda_bernaud//lib -lgeda -lguile -lguile-ltdl -lqthreads
>  > -lpthread -lcrypt -lgdgeda -lpng -lz -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm
>  > -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl
>  > -lglib-2.0   -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
>  > -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl
>  > -lglib-2.0       -lSM -lICE -lX11 -lm  -lpaper
>  > a_zoom.o: In function `a_zoom_box':
>  > ../noweb/a_zoom.nw:297: undefined reference to `_'
>  > g_hook.o: In function `g_make_attrib_smob_list':
>  > ../noweb/g_hook.nw:103: undefined reference to `_'
>  > g_rc.o: In function `g_rc_gschem_version':
>  > ../noweb/g_rc.nw:227: undefined reference to `_'
>  > ../noweb/g_rc.nw:230: undefined reference to `_'
>  > g_rc.o: In function `g_rc_color_general':
>  > ../noweb/g_rc.nw:298: undefined reference to `_'
>  > g_rc.o:../noweb/g_rc.nw:515: more undefined references to `_' follow
>  > collect2: ld returned 1 exit status
>  > "
>  > 
>  > Any insight? I realise its i18n related.
>  > 
> 
> It looks strange. I never encountered this problem. 
> 
> If there really was a problem with i18n, you would have much more
> errors of this kind since other files are using this macro. Are you
> sure it is not picking header files from an other libgeda? You should
> have seen warnings at compilation of these files that could be
> interesting.

I did get lots of warnings when I ran configure without the
--with-libintl-prefix=/usr/ option.

Having spotted the missing i18n bits during that compile, I went back
to ./configure in your gschem directory looking for an option to "fix"
the i18n settings.  --with-libintl-prefix=/usr/ fixed the warnings but
not the link. Do you know what library or ".o" file should provide the
"_" function?

> What version of gettext do you have? Mine is 0.14.6.

Mine is 0.14.5, but I doubt this would make a big difference.

Peter




More information about the geda-dev mailing list