Hi,

it looks to me as if you're not telling the linker where to find the 
repository of file info created during the compile phase. Alternatively, if 
this repository is the standard one and you compile other code too, then the 
linker can get confused. The important flag to pass to the linker is -ptr 
some_repository.

Hope the info below helps. You'll have to make clean and then make again to 
refill the repository with sensible info.

Angus

cxx man page.

  -ptr dir       Specifies a repository, with ./cxx_repository as the
                 default. If you specify several repositories, only the first
                 is writable, and the rest are read only. Read-only reposi-
                 tories are used only at link time.
                 Specifying this option at link time enables DIGITAL C++ to
                 recognize and use the template instantiation information
                 files within the specified repository. If you use this
                 option, make sure that the repository specified at compile
                 time is the same one specified at link time. 

For your info I attach the script with which I configure my setup:
configure_cxx:

#!/bin/sh
 
CC=deccc CFLAGS="-O2" CXX=deccxx CXXFLAGS="-ptr 
$(top_srcdir)/lyx_cxx_repository -O2" ./configure --host=alphaev5-dec-osf4.0e 
--prefix=/usr/local --with-extra-inc=/usr/local/include --disable-nls 
--with-included-gettext --without-included-string                             
                                              
and the script (a hacked version of Jean-Marc's) with which I call cxx
deccxx:
#!/bin/sh
 
CXX=cxx
EXTRA_ARGS="-std strict_ansi -nocleanup"
found=no
nextisoutname=no
removenextwl=no
 
for i in $* ; do
    case $i in
    -Wp,-MD,*)
        loc=`echo $i | sed -e 's%-Wp,-MD,\(\.deps/.*$\)%\1%'`
        name=`echo $loc | sed -e 's%\.deps/\(.*\)\.[a-zA-Z]*$%\1%'`
        args="$args -MD"
        nextisoutname=no
        found=yes;;
    -Wl,-rpath)
        args="$args -rpath"
        removenextwl=yes;;
    -Wl,*)
        if test $removenextwl = "yes" ; then
            ldarg=`echo $i | sed 's/^-Wl,\(.*\)$/\1/'`
            args="$args $ldarg"
            removenextwl=no
        else
            args="$args $i"
        fi;;
    -o)
        nextisoutname=yes
        args="$args $i";;
    *)
        test $nextisoutname = yes && outname=$i
        nextisoutname=no
        args="$args $i";;
    esac
done
 
 
test -z "$outname" && outname=$name.o
 
echo $CXX $EXTRA_ARGS $args
$CXX $EXTRA_ARGS $args || error=1
 
if test $found = yes ; then
mv $outname.d $loc
fi
 
exit $error                                                                   


On Wed, 13 Sep 2000, you wrote:
> Hi,
> I try to install Lyx on Digital machine under Tru64 OS.
> Since the beginning of installation, I'd some problems that I resolved.
>
> >From now I've got the message :
>
> ........
> .........
> MMaking all in po
> Making all in src
> make  all-recursive
> Making all in mathed
> Making all in insets
> Making all in support
> cxx -DHAVE_CONFIG_H -I. -I. -I. -I../images  -I../src/cheaders     -g
> -DLYX_DIR=\"/usr/local/share/lyx\"  -DTOP_SRCDIR=\"..\" -c
> ../src/lyx_main.C
> ccxx -DHAVE_CONFIG_H -I. -I. -I. -I../images  -I../src/cheaders     -g
> -DLOCALEDIR=\"/usr/local/share/locale\" -c ../src/main.C
> /bin/sh ../libtool --mode=link cxx  -g  -o lyx  BufferView.o
> BufferView2.o BufferView_pimpl.o Bullet.o  Chktex.o ColorHandler.o
> CutAndPaste.o DepTable.o FontInfo.o  FontLoader.o ImportLaTeX.o
> ImportNoweb.o LColor.o LaTeX.o  LaTeXFeatures.o LaTeXLog.o Literate.o
> LyXAction.o LyXSendto.o LyXView.o  Painter.o PainterBase.o PaperLayout.o
> ParagraphExtra.o Spacing.o  TableLayout.o TabularLayout.o TextCache.o
> ToolbarDefaults.o  UpdateInset.o WorkArea.o bmtable.o buffer.o
> bufferlist.o bufferparams.o  bufferview_funcs.o bullet_forms.o
> bullet_forms_cb.o chset.o combox.o  credits.o credits_form.o debug.o
> filedlg.o font.o form1.o intl.o  kbmap.o kbsequence.o language.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 lyxfont.o lyxfr0.o lyxfr1.o  lyxfunc.o lyxlex.o lyxlex_pimpl.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
> tabular.o tex-accent.o tex-strings.o  texoptions.o texrow.o text.o
> text2.o toolbar.o tracer.o trans.o  trans_mgr.o undo.o vc-backend.o
> vspace.o mathed/libmathed.la insets/libinsets.la support/libsupport.la
> ../intl/libintl.a -lforms -lXpm  -lSM -lICE -lc -lm -L/usr/lib -lX11
> --ldnet_stub
> cxx -g -o lyx BufferView.o BufferView2.o BufferView_pimpl.o Bullet.o
> Chktex.o ColorHandler.o CutAndPaste.o DepTable.o FontInfo.o FontLoader.o
> ImportLaTeX.o ImportNoweb.o LColor.o LaTeX.o LaTeXFeatures.o LaTeXLog.o
> Literate.o LyXAction.o LyXSendto.o LyXView.o Painter.o PainterBase.o
> PaperLayout.o ParagraphExtra.o Spacing.o TableLayout.o TabularLayout.o
> TextCache.o ToolbarDefaults.o UpdateInset.o WorkArea.o bmtable.o
> buffer.o bufferlist.o bufferparams.o bufferview_funcs.o bullet_forms.o
> bullet_forms_cb.o chset.o combox.o credits.o credits_form.o debug.o
> filedlg.o font.o form1.o intl.o kbmap.o kbsequence.o language.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 lyxfont.o lyxfr0.o lyxfr1.o lyxfunc.o lyxlex.o lyxlex_pimpl.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
> tabular.o tex-accent.o tex-strings.o texoptions.o texrow.o text.o
> text2.o toolbar.o tracer.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 ../intl/libintl.a -lforms -lXpm -lSM -lICE
> -lc -lm -L/usr/lib -lX11 -ldnet_stub
> ld:
> Unresolved:
> std::_RWfinal_insertion_sort(binary_op_pair*, binary_op_pair*, compara)
> std::_RWquick_sort_loop_aux(binary_op_pair*, binary_op_pair*,
> binary_op_pair*, compara)
> std::_RWlower_bound(binary_op_pair*, binary_op_pair*, const short&,
> compara, long*, std::random_access_iterator_tag)
> std::_RWfinal_insertion_sort(math_deco_struct*, math_deco_struct*,
> math_deco_compare)
> std::_RWquick_sort_loop_aux(math_deco_struct*, math_deco_struct*,
> math_deco_struct*, math_deco_compare)
> std::_RWlower_bound(math_deco_struct*, math_deco_struct*, const int&,
> math_deco_compare, long*, std::random_access_iterator_tag)
> std::find(figdata**, figdata**, const figdata*&)
> std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(void)
>
> std::find(std::list<int, std::allocator<int> >::iterator, std::list<int,
> std::allocator<int> >::iterator, const int&)
> std::find(Figref**, Figref**, const Figref*&)
> std::vector<Figref*, std::allocator<Figref*> >::_RWinsert_aux(Figref**,
> const Figref*&)
> std::copy(Figref**, Figref**, Figref**)
> std::vector<figdata*, std::allocator<figdata*>
>
> >::_RWinsert_aux(figdata**, const figdata*&)
>
> std::copy(figdata**, figdata**, figdata**)
> std::deque<queue_element, std::allocator<queue_element> >::~deque(void)
> std::copy(std::deque<queue_element, std::allocator<queue_element>
>
> >::const_iterator, std::deque<queue_element,
>
> std::allocator<queue_element> >::const_iterator,
> std::back_insert_iterator<std::deque<queue_element,
> std::allocator<queue_element> > >)
> std::deque<queue_element, std::allocator<queue_element>
>
> >::_RWallocate_at_end(void)
>
> std::deque<queue_element, std::allocator<queue_element>
>
> >::_RWdeallocate_at_begin(void)
>
> std::list<int, std::allocator<int> >::erase(std::list<int,
> std::allocator<int> >::iterator, std::list<int, std::allocator<int>
>
> >::iterator)
>
> std::list<int, std::allocator<int> >::_RWdeallocate_buffers(void)
> std::vector<std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >, std::allocator<std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > > >::operator =(const
> std::vector<std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >, std::allocator<std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > > >&)
> std::vector<InsetText::row_struct, std::allocator<InsetText::row_struct>
>
> >::_RWinsert_aux(InsetText::row_struct*, const InsetText::row_struct&)
>
> std::copy(InsetText::row_struct*, InsetText::row_struct*,
> InsetText::row_struct*)
> std::count(const char*, const char*, const char&)
> std::basic_string<char, std::char_traits<char>, std::allocator<char>
>
> >::find(const char*, unsigned long, unsigned long) const
>
> std::basic_string<char, std::char_traits<char>, std::allocator<char>
>
> >::find_last_not_of(const char*, unsigned long, unsigned long) const
>
> std::basic_string<char, std::char_traits<char>, std::allocator<char>
>
> >::find_first_not_of(const char*, unsigned long, unsigned long) const
>
> std::vector<std::pair<unsigned long, unsigned long>,
> std::allocator<std::pair<unsigned long, unsigned long> >
>
> >::_RWinsert_aux(std::pair<unsigned long, unsigned long>*, const
>
> std::pair<unsigned long, unsigned long>&)
> std::copy(std::pair<unsigned long, unsigned long>*, std::pair<unsigned
> long, unsigned long>*, std::pair<unsigned long, unsigned long>*)
> std::basic_ostream<char, std::char_traits<char>
>
> >::basic_ostream(std::basic_streambuf<char, std::char_traits<char> >*)
>
> *** Exit 1
> Stop.
> *** Exit 1
> Stop.
> *** Exit 1
> Stop.
> *** Exit 1
> Stop.
>
> I haven't any idear of what appends here, someone have one perhaps.....
>
> --
> Cordialement
>
> ---------------------------
> E. POIZOT
> CNAM/INTECHMER
> B.P. 324
> 50103 CHERBOURG
>
> Tél : (33)233 887 342
> Fax : (33)233 887 339

Reply via email to