2020-03-24 'Peter G.' wrote:

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

Scratch that, the attached patch fixes this by moving LIBTT to a later spot in the list in lib/tt/bin/dbck/Makefile.am, lib/tt/bin/tt_type_comp/Makefile.am

br,
  Peter G.

--
"I do not think the way you think I think."
    -- Kai, last of the Brunnen G
diff -Naur a/lib/tt/bin/dbck/Makefile.am b/lib/tt/bin/dbck/Makefile.am
--- a/lib/tt/bin/dbck/Makefile.am	2020-03-23 20:51:01.000000000 +0100
+++ b/lib/tt/bin/dbck/Makefile.am	2020-03-24 15:14:05.482181934 +0100
@@ -4,7 +4,7 @@
 
 bin_PROGRAMS = ttdbck
 
-ttdbck_LDADD = @LIBTT@ ../../slib/libstt.a ../../mini_isam/libisam.a \
+ttdbck_LDADD = ../../slib/libstt.a ../../mini_isam/libisam.a @LIBTT@ \
 	$(XTOOLLIB) 
 
 ttdbck_CXXFLAGS = -I../../slib -I../../lib -I../../mini_isam \
diff -Naur a/lib/tt/bin/tt_type_comp/Makefile.am b/lib/tt/bin/tt_type_comp/Makefile.am
--- a/lib/tt/bin/tt_type_comp/Makefile.am	2020-03-23 20:51:01.000000000 +0100
+++ b/lib/tt/bin/tt_type_comp/Makefile.am	2020-03-24 15:21:42.274247511 +0100
@@ -17,7 +17,7 @@
 tt_type_comp_SOURCES = mp_type_comp.C        mp_types_table.C \
 		frozen.mp_types_lex.C frozen.mp_types_gram.C
 
-tt_type_comp_LDADD = $(LIBTT) ../../slib/libstt.a $(XTOOLLIB)
+tt_type_comp_LDADD = ../../slib/libstt.a $(LIBTT) $(XTOOLLIB)
 
 if SOLARIS
 tt_type_comp_LDADD += $(XTOOLLIB) -ldl -lintl -lsocket -lnsl
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to