Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Mar 2000 11:14:40 -0500 (EST)
From:      Mikhail Teterin <mi@kot.ne.mediaone.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        dirk@FreeBSD.org
Subject:   ports/17267: new lyx port does not link -- gettext (-lintl is missing)
Message-ID:  <200003081614.LAA90214@rtfm.newton>

next in thread | raw e-mail | index | archive | help

>Number:         17267
>Category:       ports
>Synopsis:       new lyx port does not link -- gettext (-lintl is missing)
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar  8 08:20:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Mikhail Teterin
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
Virtual Estates, Inc.
>Environment:

>Description:

	It  appears,   the  configure  script  does   check  for
	-lint, and  finding it  installed on the  system already
	rightfully  chooses   not  to  use  the   included  one.
	Unfortunately,  it  then does  not  set  the INTLLIB  to
	anything, which means lyx_LDADD in src/Makefile does not
	mention the -lintl at all and the following linker error
	is seen.
	
g++295 -O2 -fexpensive-optimizations -pipe -mcpu=i686 -march=i686 -L/usr/X11R6/lib -o lyx BufferView.o Bullet.o Chktex.o DepTable.o FontInfo.o FontLoader.o ImportLaTeX.o ImportNoweb.o LaTeX.o LaTeXFeatures.o LaTeXLog.o Literate.o LyXAction.o LyXSendto.o LyXView.o PaperLayout.o ParagraphExtra.o Spacing.o TableLayout.o bmtable.o buffer.o bufferlist.o bufferparams.o bullet_forms.o bullet_forms_cb.o chset.o combox.o credits.o credits_form.o debug.o filedlg.o form1.o intl.o kbmap.o lastfiles.o latexoptions.o layout.o layout_forms.o lyx.o lyx_cb.o lyx_gui.o lyx_gui_misc.o lyx_main.o lyx_sendfax.o lyx_sendfax_main.o lyx_sty.o lyxdraw.o lyxfont.o lyxfr0.o lyxfr1.o lyxfunc.o lyxlex.o lyxlookup.o lyxrc.o lyxserver.o lyxvc.o main.o menus.o minibuffer.o paragraph.o print_form.o screen.o sp_form.o spellchecker.o table.o tex-accent.o tex-strings.o texoptions.o texrow.o text.o text2.o toolbar.o trans.o trans_mgr.o undo.o vc-backend.o vspace.o mathed/.libs/libmathed.a insets/.libs/libinsets.a!
 support/.libs/libsupport.a -lxforms -lXpm -lSM -lICE -liberty -lc -lm -L/usr/X11R6/lib -lX11 
BufferView.o: In function `BufferView::resizeCurrentBuffer(void)':
BufferView.o(.text+0x96c): undefined reference to `gettext'
BufferView.o: In function `BufferView::gotoError(void)':
BufferView.o(.text+0xe5b): undefined reference to `gettext'
BufferView.o(.text+0xef9): undefined reference to `gettext'
Chktex.o: In function `Chktex::scanLogFile(TeXErrors &)':
Chktex.o(.text+0x5b3): undefined reference to `gettext'
FontLoader.o: In function `FontLoader::doLoad(LyXFont::FONT_FAMILY, LyXFont::FONT_SERIES, LyXFont::FONT_SHAPE, LyXFont::FONT_SIZE)':
FontLoader.o(.text+0xad3): undefined reference to `gettext'
LaTeX.o(.text+0x591): more undefined references to `gettext' follow
main.o: In function `main':
main.o(.text+0x98): undefined reference to `bindtextdomain'
main.o(.text+0xa8): undefined reference to `textdomain'
menus.o: In function `Menus::openByName(lyxstring const &)':
menus.o(.text+0x292): undefined reference to `gettext'
menus.o(.text+0x2c3): undefined reference to `gettext'
menus.o(.text+0x2f4): undefined reference to `gettext'
menus.o(.text+0x32c): undefined reference to `gettext'
menus.o(.text+0x35d): undefined reference to `gettext'
menus.o(.text+0x38e): more undefined references to `gettext' follow
collect2: ld returned 1 exit status
*** Error code 1

Stop.
[...]
>How-To-Repeat:


>Fix:
	A dirty fix  is to add the -lintl to  the lyx_LDADD line
	in  src/Makefile after  configure.  A clean  fix is  too
	complicated  I'm  afraid of  the  configure.in/configure
	mess.

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003081614.LAA90214>