From: Vladimir V. Kamarzin Date: Thu, 27 Oct 2011 00:40:11 +0600 Subject: [PATCH] Fix libstorage linking ../libtool --mode=link i586-alt-linux-gcc -o innfeed article.o buffer.o config_l.o config_y.o endpoint.o host.o innlistener.o main.o misc.o tape.o connection.o /usr/src/RPM/BUILD/inn-2.5.2/storage/libstorage.la /usr/src/RPM/BUILD/inn-2.5.2/history/libinnhist.la /usr/src/RPM/BUILD/inn-2.5.2/lib/libinn.la -L/usr/lib -ldb libtool: link: i586-alt-linux-gcc -o .libs/innfeed article.o buffer.o config_l.o config_y.o endpoint.o host.o innlistener.o main.o misc.o tape.o connection.o -L/usr/lib /usr/src/RPM/BUILD/inn-2.5.2/history/.libs/libinnhist.so /usr/src/RPM/BUILD/inn-2.5.2/storage/.libs/libstorage.so /usr/src/RPM/BUILD/inn-2.5.2/lib/.libs/libinn.so -ldb /usr/src/RPM/BUILD/inn-2.5.2/storage/.libs/libstorage.so: undefined reference to `HISlookup' verify-elf: ERROR: ./usr/lib/libstorage.so.3.0.2: undefined symbol: HISlookup diff -Nur inn.old/history/Makefile inn/history/Makefile --- inn.old/history/Makefile 2018-03-18 00:00:00.000000000 +0000 +++ inn/history/Makefile 2018-09-25 20:46:33.000000000 +0000 @@ -51,7 +51,7 @@ @exit 1 libinnhist.la: $(OBJECTS) $(LIBSTORAGE) $(LIBINN) - $(LIBLD) $(LDFLAGS) -o $@ $(LOBJECTS) \ + $(LIBLD) $(LDFLAGS) -o $@ $(LOBJECTS) -L../storage/.libs \ $(LIBSTORAGE) $(LIBINN) $(STORAGE_LIBS) $(LIBS) \ -rpath $(PATHLIB) -version-info $(LTVERSION) diff -Nur inn.old/Makefile inn/Makefile --- inn.old/Makefile 2018-03-18 00:00:00.000000000 +0000 +++ inn/Makefile 2018-09-25 20:46:33.000000000 +0000 @@ -52,11 +52,11 @@ all-include: ; cd include && $(MAKE) all -all-libraries: all-lib all-storage all-history all-perl +all-libraries: all-lib all-history all-storage all-perl all-lib: all-include ; cd lib && $(MAKE) all all-storage: all-lib ; cd storage && $(MAKE) library -all-history: all-storage ; cd history && $(MAKE) all +all-history: ; cd history && $(MAKE) all all-perl: all-history ; cd perl && $(MAKE) all all-programs: all-innd all-nnrpd all-innfeed all-control all-expire \ diff -Nur inn.old/storage/Makefile inn/storage/Makefile --- inn.old/storage/Makefile 2018-03-18 00:00:00.000000000 +0000 +++ inn/storage/Makefile 2018-09-25 20:49:32.000000000 +0000 @@ -55,8 +55,9 @@ @exit 1 libstorage.la: $(OBJECTS) $(LIBINN) - $(LIBLD) $(LDFLAGS) -o $@ $(LOBJECTS) \ - $(LIBINN) $(STORAGE_LIBS) $(LIBS) \ + $(LIBLD) $(LDFLAGS) -o $@ $(LOBJECTS) -L../lib/.libs \ + $(LIBINN) $(STORAGE_LIBS) $(LIBS) ../history/his.lo \ + ../history/hismethods.lo ../history/hisv6/hisv6.lo \ -rpath $(PATHLIB) -version-info $(LTVERSION) libstorage.a: $(OBJECTS)