LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 04-06-2004, 07:28 AM   #1
toadatrix
LQ Newbie
 
Registered: Apr 2004
Posts: 7

Rep: Reputation: 0
SuSE Compiler Problem


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.
 
Old 04-06-2004, 10:03 AM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
libtool: line 1975: libtool: No such file or directory

The libtool shell script or program is not in the PATH, it looks like.

I would edit the libtool script and see where its first occurring on line 1975,
and fix the fact.
 
Old 04-06-2004, 11:23 AM   #3
toadatrix
LQ Newbie
 
Registered: Apr 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Are you saying I need to add /bin/sh to the PATH? If so, how do I do that as I am a linux newbie? Please explain in more detail if you can. Thanks.
 
Old 04-21-2004, 03:48 PM   #4
ebola
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
same problem here

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

Thanks in advance.

-Mike
 
Old 05-10-2004, 09:18 AM   #5
cdukes
LQ Newbie
 
Registered: May 2004
Location: Tampa, FL
Distribution: Gentoo
Posts: 7

Rep: Reputation: 0
Re: same problem here

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

Thanks in advance.

-Mike
 
Old 02-04-2005, 08:03 PM   #6
ccool
Member
 
Registered: Oct 2002
Location: Canada
Distribution: Slackware 10.1
Posts: 71

Rep: Reputation: 15
Try to go in src/ directory.

and then, type the command libtool manually and add, before "--mode=link" , "--tag=" and whatever you want in there... it worked for me.

Good luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem trying to get a C++ compiler on Suse 9.1 cyclebain SUSE / openSUSE 6 01-24-2005 01:13 AM
SuSe 9.1 C++ compiler oprogue SUSE / openSUSE 11 12-19-2004 12:35 PM
compiler for SuSE 9.1 personal deftones Linux - General 16 09-21-2004 01:30 AM
Fortran Compiler in SuSE? Krater47 Linux - Software 4 09-09-2004 12:10 AM
Installing C and C++ compiler in SuSE mikedeatworld Linux - Software 0 08-15-2004 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration