From owner-freebsd-ports Wed Mar 8 8:20:11 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 4EB5037C099 for ; Wed, 8 Mar 2000 08:20:07 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA08591; Wed, 8 Mar 2000 08:20:07 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from kot.ne.mediaone.net (kot.ne.mediaone.net [24.218.15.190]) by hub.freebsd.org (Postfix) with ESMTP id E8EE137B5E3; Wed, 8 Mar 2000 08:14:43 -0800 (PST) (envelope-from mi@kot.ne.mediaone.net) Received: from rtfm.newton (mi@rtfm.newton [10.10.0.1]) by kot.ne.mediaone.net (8.9.3/8.9.1) with ESMTP id LAA04643; Wed, 8 Mar 2000 11:14:40 -0500 (EST) Received: (from mi@localhost) by rtfm.newton (8.9.3/8.9.3) id LAA90214; Wed, 8 Mar 2000 11:14:40 -0500 (EST) (envelope-from mi@kot.ne.mediaone.net) Message-Id: <200003081614.LAA90214@rtfm.newton> Date: Wed, 8 Mar 2000 11:14:40 -0500 (EST) From: Mikhail Teterin Reply-To: mi+lyx@aldan.algebra.com To: FreeBSD-gnats-submit@FreeBSD.org Cc: dirk@FreeBSD.org X-Send-Pr-Version: 3.2 Subject: ports/17267: new lyx port does not link -- gettext (-lintl is missing) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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