[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-glpk] Library has no TOC when built; needs to be ranlib'd

From: Wade Tregaskis
Subject: [Bug-glpk] Library has no TOC when built; needs to be ranlib'd
Date: Fri, 7 Nov 2003 23:48:55 +1100

What follows is the terminal log for building GLPK 4.1 on MacOS X 10.2.8 (Darwin 6.8), Apple-gcc 3.1. It seems the library, libglpk.a, is being generated without a table of contents, which seems to be throwing off the linker. Presumably some flag somewhere needs to be toggled, or an automatic call to ranlib added.

[Screech:/Users/Shared/BuildTemp] wadetregaskis% cd glpk-4.1/
[Screech:Shared/BuildTemp/glpk-4.1] wadetregaskis% ls
AUTHORS ChangeLog Makefile.in README configure.in doc install-sh sample > win32bc.mak COPYING INSTALL NEWS configure contrib include mkinstalldirs source win32vc.mak
[Screech:Shared/BuildTemp/glpk-4.1] wadetregaskis% ./configure
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
[Screech:Shared/BuildTemp/glpk-4.1] wadetregaskis% make
gcc -c -g -O2  -Iinclude source/glpavl.c -o source/glpavl.o
gcc -c -g -O2  -Iinclude source/glpbcs1.c -o source/glpbcs1.o
gcc -c -g -O2  -Iinclude source/glpbcs2.c -o source/glpbcs2.o
gcc -c -g -O2  -Iinclude source/glpchol.c -o source/glpchol.o
gcc -c -g -O2  -Iinclude source/glpdmp.c -o source/glpdmp.o
gcc -c -g -O2  -Iinclude source/glphbsm.c -o source/glphbsm.o
gcc -c -g -O2  -Iinclude source/glpies1.c -o source/glpies1.o
gcc -c -g -O2  -Iinclude source/glpies2.c -o source/glpies2.o
gcc -c -g -O2  -Iinclude source/glpies3.c -o source/glpies3.o
gcc -c -g -O2  -Iinclude source/glpinv.c -o source/glpinv.o
gcc -c -g -O2  -Iinclude source/glpipm.c -o source/glpipm.o
gcc -c -g -O2  -Iinclude source/glplib1.c -o source/glplib1.o
gcc -c -g -O2  -Iinclude source/glplib2.c -o source/glplib2.o
gcc -c -g -O2  -Iinclude source/glplib3.c -o source/glplib3.o
gcc -c -g -O2  -Iinclude source/glplpp1.c -o source/glplpp1.o
gcc -c -g -O2  -Iinclude source/glplpp2.c -o source/glplpp2.o
gcc -c -g -O2  -Iinclude source/glplpt.c -o source/glplpt.o
gcc -c -g -O2  -Iinclude source/glplpx1.c -o source/glplpx1.o
gcc -c -g -O2  -Iinclude source/glplpx2.c -o source/glplpx2.o
gcc -c -g -O2  -Iinclude source/glplpx3.c -o source/glplpx3.o
gcc -c -g -O2  -Iinclude source/glplpx4.c -o source/glplpx4.o
gcc -c -g -O2  -Iinclude source/glplpx5.c -o source/glplpx5.o
gcc -c -g -O2  -Iinclude source/glplpx6a.c -o source/glplpx6a.o
gcc -c -g -O2  -Iinclude source/glplpx6b.c -o source/glplpx6b.o
gcc -c -g -O2  -Iinclude source/glplpx6c.c -o source/glplpx6c.o
gcc -c -g -O2  -Iinclude source/glplpx7.c -o source/glplpx7.o
gcc -c -g -O2  -Iinclude source/glplpx8a.c -o source/glplpx8a.o
gcc -c -g -O2  -Iinclude source/glplpx8c.c -o source/glplpx8c.o
gcc -c -g -O2  -Iinclude source/glplpx8d.c -o source/glplpx8d.o
gcc -c -g -O2  -Iinclude source/glpluf.c -o source/glpluf.o
gcc -c -g -O2  -Iinclude source/glpmat.c -o source/glpmat.o
gcc -c -g -O2  -Iinclude source/glpmip1.c -o source/glpmip1.o
gcc -c -g -O2  -Iinclude source/glpmpl1.c -o source/glpmpl1.o
gcc -c -g -O2  -Iinclude source/glpmpl2.c -o source/glpmpl2.o
gcc -c -g -O2  -Iinclude source/glpmpl3.c -o source/glpmpl3.o
gcc -c -g -O2  -Iinclude source/glpmpl4.c -o source/glpmpl4.o
gcc -c -g -O2  -Iinclude source/glpmps.c -o source/glpmps.o
gcc -c -g -O2  -Iinclude source/glpqmd.c -o source/glpqmd.o
gcc -c -g -O2  -Iinclude source/glpspm.c -o source/glpspm.o
gcc -c -g -O2  -Iinclude source/glpspx1.c -o source/glpspx1.o
gcc -c -g -O2  -Iinclude source/glpspx2.c -o source/glpspx2.o
gcc -c -g -O2  -Iinclude source/glpstr.c -o source/glpstr.o
gcc -c -g -O2  -Iinclude source/glptsp.c -o source/glptsp.o
ar cru libglpk.a source/glpavl.o source/glpbcs1.o source/glpbcs2.o source/glpchol.o source/glpdmp.o source/glphbsm.o source/glpies1.o source/glpies2.o source/glpies3.o source/glpinv.o source/glpipm.o source/glplib1.o source/glplib2.o source/glplib3.o source/glplpp1.o source/glplpp2.o source/glplpt.o source/glplpx1.o source/glplpx2.o source/glplpx3.o source/glplpx4.o source/glplpx5.o source/glplpx6a.o source/glplpx6b.o source/glplpx6c.o source/glplpx7.o source/glplpx8a.o source/glplpx8c.o source/glplpx8d.o source/glpluf.o source/glpmat.o source/glpmip1.o source/glpmpl1.o source/glpmpl2.o source/glpmpl3.o source/glpmpl4.o source/glpmps.o source/glpqmd.o source/glpspm.o source/glpspx1.o source/glpspx2.o source/glpstr.o source/glptsp.o
gcc -g -O2  -Iinclude sample/glpsol.c \
        libglpk.a -lm  -o glpsol
ld: archive: libglpk.a has no table of contents, add one with ranlib(1) (can't load from it)
make: *** [glpsol] Error 1
[Screech:Shared/BuildTemp/glpk-4.1] wadetregaskis% ls
AUTHORS INSTALL NEWS config.log configure.in include mkinstalldirs win32bc.mak COPYING Makefile README config.status contrib install-sh sample win32vc.mak ChangeLog Makefile.in config.cache configure doc libglpk.a source
[Screech:Shared/BuildTemp/glpk-4.1] wadetregaskis% ranlib libglpk.a
[Screech:Shared/BuildTemp/glpk-4.1] wadetregaskis% make
gcc -g -O2  -Iinclude sample/glpsol.c \
        libglpk.a -lm  -o glpsol
[Screech:Shared/BuildTemp/glpk-4.1] wadetregaskis% sudo make install
/bin/sh ./mkinstalldirs /usr/local/bin
/bin/sh ./mkinstalldirs /usr/local/include
/bin/sh ./mkinstalldirs /usr/local/lib
for i in glpavl.h glpbcs.h glpchol.h glpdmp.h glphbsm.h glpies.h glpinv.h glpipm.h glpk.h glplib.h glplpp.h glplpt.h glplpx.h glpluf.h glpmat.h glpmip.h glpmpl.h glpmps.h glpqmd.h glpspm.h glpspx.h glpstr.h glptsp.h; do \
        /usr/bin/install -c -m 644 ./include/$i \
                /usr/local/include/$i; \
        /usr/bin/install -c -m 644 ./include/$i \
                /usr/include/$i || : ; \
/usr/bin/install -c -m 644 libglpk.a /usr/local/lib/libglpk.a
/usr/bin/install -c glpsol /usr/local/bin/glpsol

Wade Tregaskis
-- Sed quis custodiet ipsos custodes?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]