Hi again,

2020-03-23 'Jon Trulson' wrote:

I've had a little time lately so I went through these and merged some of
them, and modified a merge of one of them as outlined below:


- *2.3.2-link_libtrcp.patch* - NOT merged.

  This one directly edits a Makefile, not the Makefile.am, and should
  not be required anyway as /tirpc/ is a dependent library for /libtt/ now.

  Also -lm and -lcrypt are detected and used automatically if present.
  This patch may be for an older version of the autotools-conversion branch.

Right, obviously.

The reason for this patch was I was getting this linker error (this still happens with current autotools-conversion):

libtool: link: i686-pc-linux-gnu-c++ -I../../slib -I../../lib -I../../mini_isam "-DTT_VERSION_STRING=\"CDE Version 2.3.1a\"" -march=i686 -mtune=bdver2 -O2 -pipe -w -fomit-frame-pointer -DOPT_TIRPC -I/usr/include/tirpc -pthread -Wl,-O1 -o .libs/ttdbck ttdbck-binkey.o ttdbck-binkey_utils.o ttdbck-common.o ttdbck-options.o ttdbck-options_tt.o ttdbck-prop.o ttdbck-prop_utils.o ttdbck-spec.o ttdbck-spec_repair.o ttdbck-spec_utils.o ttdbck-ttdbck.o -Wl,--as-needed ../../../../lib/tt/lib/.libs/libtt.so -lpthread -lstdc++ -ltirpc ../../slib/libstt.a ../../mini_isam/libisam.a -lXm -lSM -lICE -lXt -lXau -lX11 -lcrypt -lm -pthread -Wl,-rpath -Wl,/usr/dt/lib
/usr/lib/gcc/i686-pc-linux-gnu/8.3.0/../../../../i686-pc-linux-gnu/bin/ld: 
../../slib/libstt.a(libstt_a-mp_rpc_implement.o): undefined reference to symbol 
'svcerr_noproc@@TIRPC_0.3.0'
/usr/lib/gcc/i686-pc-linux-gnu/8.3.0/../../../../i686-pc-linux-gnu/bin/ld: 
/lib/libtirpc.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

explicitly adding -ltirpc at the end fixed this for me, and I'm not sure how to 
get the linker order right otherwise.

br,
  Peter G.

--
"I do not think the way you think I think."
    -- Kai, last of the Brunnen G
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to