Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to compile my first program (called steghide) with SuSE 9.0 Pro from the tarball source code. I first installed the C++ compiler (nothing else installed) using YaST2 because I initially got an error saying the compiler was missing which YaST2 verified. I then checked to be sure that I had all the required libraries and dependicies installed. The required library complilation and installation seemed to go fine. However, when I tired to compile the main program I ran into problems. No errors appeared when I did ./configure. When I did "make" the compilation seemed to go fine until the very end when I got the following error message:
---------------------------------------------------------------------------
/bin/sh libtool --mode=link g++ -O2 -Wall -o steghide Arg.o Arguments.o AssertionFailed.o AuFile.o AuSampleValues.o DFSAPHeuristic.o BFSAPHeuristic.o BinaryIO.o BitString.o BmpFile.o BmpPaletteSampleValue.o BmpRGBSampleValue.o BmpSampleValue.o WKSConstructionHeuristic.o DMDConstructionHeuristic.o CvrStgFile.o Edge.o EdgeIterator.o EmbData.o Embedder.o EncryptionAlgorithm.o EncryptionMode.o Extractor.o Graph.o JpegFile.o JpegSampleValue.o MCryptPP.o MHashKeyGen.o MHashPP.o Matching.o MatchingAlgorithm.o ProgressOutput.o PseudoRandomSource.o RGBTriple.o RandomSource.o SampleValue.o SampleValueAdjacencyList.o Selector.o Session.o SteghideError.o Terminal.o Utils.o Vertex.o WavChunk.o WavChunkHeader.o WavChunkUnused.o WavFile.o WavFormatChunk.o WavPCMSampleValue.o error.o main.o msg.o SMDConstructionHeuristic.o -ljpeg -lmcrypt -lmhash -lz
libtool: line 1975: libtool: No such file or directory
libtool: link: unable to infer tagged configuration
libtool: link: specify a tag with `--tag'
make[2]: *** [steghide] Error 1
make[2]: Leaving directory `/home/jsnyder/Downloads/Steganography/steghide/steghide-0.5.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jsnyder/Downloads/Steganography/steghide/steghide-0.5.1'
make: *** [all] Error 2
----------------------------------------------------------------------------
YaST2 says that libtool is installed on my system so what is wrong here? Can you give me any ideas as to how to clear up the problem? Is there some required program or library I might not have installed? The INSTALL file with the program did offer this suggestion, which I don't understand, if it help:
Some systems require unusual options for compilation or linking that
the `configure' script does not know about. You can give `configure'
initial values for variables by setting them in the environment. Using
a Bourne-compatible shell, you can do that on the command line like
this:
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
Or on systems that have the `env' program, you can do it like this:
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
When I type libtool from the terminal as either root or a regular user I get this:
*** Warning: inferring the mode of operation is deprecated.
*** Future versions of Libtool will require -mode=MODE be specified.
libtool: warning: cannot infer operation mode without MODE-ARGS
libtool: you must specify a MODE
Try `libtool --help' for more information
Thanks. I am a linux newbie and would really like the get this working.
USING:
-fedora core 1 with all rhn updates as of 04/20/2004.
-default distro libtool version ltmain.sh (GNU libtool) 1.5 (1.1220.2.1 2003/04/14 22:48:00)
-libmcrypt-2.5.7
-mhash 0.9.1 (also tried 0.8.18)
ERROR:
Making all in src
make[2]: Entering directory `/home/mgoodman/downloads/done/security/stego/steghide-0.5.1/src'
/bin/sh libtool --mode=link g++ -O2 -Wall -o steghide Arg.o Arguments.o AssertionFailed.o AuFile.o AuSampleValues.o DFSAPHeuristic.o BFSAPHeuristic.o BinaryIO.o BitString.o BmpFile.o BmpPaletteSampleValue.o BmpRGBSampleValue.o BmpSampleValue.o WKSConstructionHeuristic.o DMDConstructionHeuristic.o CvrStgFile.o Edge.o EdgeIterator.o EmbData.o Embedder.o EncryptionAlgorithm.o EncryptionMode.o Extractor.o Graph.o JpegFile.o JpegSampleValue.o MCryptPP.o MHashKeyGen.o MHashPP.o Matching.o MatchingAlgorithm.o ProgressOutput.o PseudoRandomSource.o RGBTriple.o RandomSource.o SampleValue.o SampleValueAdjacencyList.o Selector.o Session.o SteghideError.o Terminal.o Utils.o Vertex.o WavChunk.o WavChunkHeader.o WavChunkUnused.o WavFile.o WavFormatChunk.o WavPCMSampleValue.o error.o main.o msg.o SMDConstructionHeuristic.o -ljpeg -lmcrypt -lmhash -lz
libtool: line 1978: libtool: No such file or directory
libtool: line 1978: libtool: No such file or directory
libtool: line 1978: libtool: No such file or directory
libtool: link: unable to infer tagged configuration
libtool: link: specify a tag with `--tag'
make[2]: *** [steghide] Error 1
im not quite so much a newbie. it doesnt look like a path problem, as libtool is in /usr/bin and that is obviously in my path...that and the error is coming from libtool...
however, the code within libtool in question is:
for z in $available_tags; do
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then
# Evaluate the configuration.
eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`"
case $base_compile in
"$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*)
# The compiler in $compile_command matches
# the one in the tagged configuration.
# Assume this is the tagged configuration we want.
tagname=$z
break
;;
esac
fi
done
The second line ("if grep"...) is where it's failing. I added some echoing before and after that grep line to make sure, and sure enough only the echos before the grep showed up. The variables in that line, $z and $0 were as follows:
1st iteration: start grep | z = CXX | 0 = libtool
2nd iteration: start grep | z = F77 | 0 = libtool
3rd iteration: start grep | z = GCJ | 0 = libtool
I don't know wtf CXX, F77 and GCJ are at all. Any idea why this would barf? I don't have another c compiler available at the moment (just gcc), and this built fine on my RH 9 machine with distro gcc and a slightly older version of mhash...
Also, I did notice some weird pointer errors when configuring, making and installing mhash, but it did install fine, and I get no errors on make, though it is repeatable. It figures that it seems to do with libtool again. Sample lines:
Making all in lib
make[2]: Entering directory `/home/mgoodman/downloads/done/security/mhash/mhash-0.9.1/lib'
if /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT mhash.lo -MD -MP -MF ".deps/mhash.Tpo" \
-c -o mhash.lo `test -f 'mhash.c' || echo './'`mhash.c; \
then mv -f ".deps/mhash.Tpo" ".deps/mhash.Plo"; \
else rm -f ".deps/mhash.Tpo"; exit 1; \
fi
mhash.c:105: warning: initialization from incompatible pointer type
... these happen about 50 more times, down to the next line.
mhash.c:184: warning: initialization from incompatible pointer type
Same thing happened with 0.8.18 of mhash. WTF is wrong wtih libtool!? :P
I have the exact same problem, however I am trying to compile freeradius on a gentoo server running on a sparc64 architecture.
So I think the problem really has everything to do with libtool but I haven't the slightest clue as to what to do to fix it.
Anyone?
Code:
libtool: link: unable to infer tagged configuration
libtool: link: specify a tag with `--tag'
gmake[4]: *** [libradius.a] Error 1
gmake[4]: Leaving directory `/var/tmp/portage/freeradius-0.9.3-r1/work/freeradius-0.9.3/src/lib'
gmake[3]: *** [common] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/freeradius-0.9.3-r1/work/freeradius-0.9.3/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/freeradius-0.9.3-r1/work/freeradius-0.9.3/src'
gmake[1]: *** [common] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/freeradius-0.9.3-r1/work/freeradius-0.9.3'
make: *** [all] Error 2
!!! ERROR: net-dialup/freeradius-0.9.3-r1 failed.
!!! Function src_compile, Line 86, Exitcode 2
!!! (no error message)
Quote:
Originally posted by ebola same thing is happening to me.
TRYING:
-to compile the latest steghide .0.5.1.
USING:
-fedora core 1 with all rhn updates as of 04/20/2004.
-default distro libtool version ltmain.sh (GNU libtool) 1.5 (1.1220.2.1 2003/04/14 22:48:00)
-libmcrypt-2.5.7
-mhash 0.9.1 (also tried 0.8.18)
ERROR:
Making all in src
make[2]: Entering directory `/home/mgoodman/downloads/done/security/stego/steghide-0.5.1/src'
/bin/sh libtool --mode=link g++ -O2 -Wall -o steghide Arg.o Arguments.o AssertionFailed.o AuFile.o AuSampleValues.o DFSAPHeuristic.o BFSAPHeuristic.o BinaryIO.o BitString.o BmpFile.o BmpPaletteSampleValue.o BmpRGBSampleValue.o BmpSampleValue.o WKSConstructionHeuristic.o DMDConstructionHeuristic.o CvrStgFile.o Edge.o EdgeIterator.o EmbData.o Embedder.o EncryptionAlgorithm.o EncryptionMode.o Extractor.o Graph.o JpegFile.o JpegSampleValue.o MCryptPP.o MHashKeyGen.o MHashPP.o Matching.o MatchingAlgorithm.o ProgressOutput.o PseudoRandomSource.o RGBTriple.o RandomSource.o SampleValue.o SampleValueAdjacencyList.o Selector.o Session.o SteghideError.o Terminal.o Utils.o Vertex.o WavChunk.o WavChunkHeader.o WavChunkUnused.o WavFile.o WavFormatChunk.o WavPCMSampleValue.o error.o main.o msg.o SMDConstructionHeuristic.o -ljpeg -lmcrypt -lmhash -lz
libtool: line 1978: libtool: No such file or directory
libtool: line 1978: libtool: No such file or directory
libtool: line 1978: libtool: No such file or directory
libtool: link: unable to infer tagged configuration
libtool: link: specify a tag with `--tag'
make[2]: *** [steghide] Error 1
im not quite so much a newbie. it doesnt look like a path problem, as libtool is in /usr/bin and that is obviously in my path...that and the error is coming from libtool...
however, the code within libtool in question is:
for z in $available_tags; do
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then
# Evaluate the configuration.
eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`"
case $base_compile in
"$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*)
# The compiler in $compile_command matches
# the one in the tagged configuration.
# Assume this is the tagged configuration we want.
tagname=$z
break
;;
esac
fi
done
The second line ("if grep"...) is where it's failing. I added some echoing before and after that grep line to make sure, and sure enough only the echos before the grep showed up. The variables in that line, $z and $0 were as follows:
1st iteration: start grep | z = CXX | 0 = libtool
2nd iteration: start grep | z = F77 | 0 = libtool
3rd iteration: start grep | z = GCJ | 0 = libtool
I don't know wtf CXX, F77 and GCJ are at all. Any idea why this would barf? I don't have another c compiler available at the moment (just gcc), and this built fine on my RH 9 machine with distro gcc and a slightly older version of mhash...
Also, I did notice some weird pointer errors when configuring, making and installing mhash, but it did install fine, and I get no errors on make, though it is repeatable. It figures that it seems to do with libtool again. Sample lines:
Making all in lib
make[2]: Entering directory `/home/mgoodman/downloads/done/security/mhash/mhash-0.9.1/lib'
if /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT mhash.lo -MD -MP -MF ".deps/mhash.Tpo" \
-c -o mhash.lo `test -f 'mhash.c' || echo './'`mhash.c; \
then mv -f ".deps/mhash.Tpo" ".deps/mhash.Plo"; \
else rm -f ".deps/mhash.Tpo"; exit 1; \
fi
mhash.c:105: warning: initialization from incompatible pointer type
... these happen about 50 more times, down to the next line.
mhash.c:184: warning: initialization from incompatible pointer type
Same thing happened with 0.8.18 of mhash. WTF is wrong wtih libtool!? :P
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.