Re: Compiling mc: libgnomeui.so: undefined reference to `dgettext'



On 17 May 1998, Tom Tromey wrote:

> Adding -lintl to the link line is the right fix.  But the
> LIBS=... trick only works if the Makefile was written that way.  MC
> doesn't use automake, so there's no guarantee it uses the same
> convention.
> 
> I just looked, and in fact it doesn't.

Actually, it does. And I do see it on the command line for gcc. I *still*
get the error. Again, this is when LINKING the binary, not when compiling.

gcc   -L/usr/X11R6/lib -L/usr/local/lib -lgnomeui -lgnome -lgnomesupport
-ldl -lgdk_imlib -ltiff -lz -ljpeg -lgif -ljpeg -lpng -lz -lSM -lICE
-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lglib -lXext -lX11 -lm -o gmc
mad.o main.o dlg.o screen.o widget.o wtools.o info.o boxes.o file.o find.o
dialog.o help.o key.o chmod.o chown.o view.o panelize.o hotlist.o listmode.o
background.o dir.o util.o win.o color.o profile.o user.o ext.o setup.o
tree.o subshell.o terms.o achown.o fsusage.o mountlist.o regex.o complete.o
command.o option.o cmd.o utilunix.o popt.o xslint.o gkey.o gmain.o gscreen.o
gwidget.o gmenu.o ghelp.o ginfo.o glayout.o gtools.o gdesktop.o gtrans.o
gutil.o gcmd.o gmc-chargrid.o gview.o gprop.o gpageprop.o gcliplabel.o
gcache.o gblist.o -L../vfs -L../slang -L../edit -lvfs -lmcslang -ledit
-lX11  -lSM -lICE -lintl  -lgpm  -lintl  
/usr/local/lib/libgnomeui.so: undefined reference to `dgettext'
make[2]: *** [mx] Error 1
make[2]: Leaving directory `/home/sp249/GNOME/mc/gnome'
make[1]: *** [gmc] Error 2
make[1]: Leaving directory `/home/sp249/GNOME/mc/gnome'
make: *** [all] Error 1



-- Stephanos Piperoglou -- sp249@cam.ac.uk -------------------
All tribal myths are true, for a given value of `true'.
                         - Terry Pratchett, The Last Continent
------------------------- http://www.thor.cam.ac.uk/~sp249/ --



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