Sign In
New User? Sign Up
exiv2
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
You can search the group for older messages.

Messages

  Messages Help
Advanced
Compile problem   Topic List   < Prev Topic  |  Next Topic >
Summarise Messages Sort by Date  
#1509 From: "cjefferysmall" <jeff@...>
Date: Fri Jan 30, 2009 5:02 am
Subject: Compile problem
cjefferysmall
Offline Offline
Send Email Send Email
 
On a Solaris 10 system, I am compiling exiv2 for the first time.
After running configure, when I type gmake from the top-level
directory, I get the following:

gmake
if test "x1" = "x1"; then cd xmpsdk/src && gmake xmpsdk; fi;
gmake[1]: Entering directory `/u/src/lib/exiv2/exiv2-0.18/xmpsdk/src'
g++ -O2 -Wall -Wcast-align -Wpointer-arith -Wformat-security
-Wmissing-format-attribute -Woverloaded-virtual -W -MMD -I.
-I/opt/csw/include -I/opt/csw/lib/include
-DEXV_LOCALEDIR=\"/usr/local/X11/lib/share/locale\" -I../include
-funsigned-char -DNDEBUG=1 -I/opt/csw/lib/include
-DEXV_HAVE_STDINT_H=1 -c ParseRDF.cpp -fPIC -DPIC -o .libs/ParseRDF.o
g++ -O2 -Wall -Wcast-align -Wpointer-arith -Wformat-security
-Wmissing-format-attribute -Woverloaded-virtual -W -MMD -I.
-I/opt/csw/include -I/opt/csw/lib/include
-DEXV_LOCALEDIR=\"/usr/local/X11/lib/share/locale\" -I../include
-funsigned-char -DNDEBUG=1 -I/opt/csw/lib/include
-DEXV_HAVE_STDINT_H=1 -c ParseRDF.cpp -o ParseRDF.o >/dev/null 2>&1
/bin/sh: test: argument expected
gmake[1]: *** [ParseRDF.o] Error 1
gmake[1]: Leaving directory `/u/src/lib/exiv2/exiv2-0.18/xmpsdk/src'
gmake: *** [xmpsdk] Error 2

Notice that the compile for the file succeeds but there is a shell
error. If I retype "gmake" it moves on to the next file and repeats
the same error. On and on. I have run gmake in debug mode, but there
is no expanded info regarding the error which is being returned from
the shell and not gmake. There is only one line in the Makefile that
references $(SHELL):

$(SHELL) $(top_srcdir)/config.status --recheck

and I don't see where the test problem is there, if that is the
problem at all. Any ideas as to what might be the problem and the
solution? Thank.
--
Jeffery Small




#1510 From: "Andreas Huggel" <ahuggel@...>
Date: Fri Jan 30, 2009 6:06 am
Subject: Re: Compile problem
zzzahu
Offline Offline
Send Email Send Email
 
> Any ideas as to what might be the problem and the
> solution?

Hi Jeffery,

Quick guess: Have you tried to run configure with the option
--disable-dependency-tracking? This tracking runs some shell code
right after each compile command.

Andreas

PS: Please continue the discussion on the new forum,
http://dev.exiv2.org/projects/exiv2/boards. This group ought to be
closed for posting, I hope I'll find the time to sort this out over
the weekend. See http://uk.groups.yahoo.com/group/exiv2/message/1499
for context.





#1511 From: "cjefferysmall" <jeff@...>
Date: Fri Jan 30, 2009 7:42 am
Subject: Re: Compile problem
cjefferysmall
Offline Offline
Send Email Send Email
 
Andreas:

Yes, you were correct. I did manage to get it to compile using "gmake
-i", but I added the configure flag you suggested, did a "make clean;
configure; gmake" and everything built just fine. Thank you for your
quick and accurate suggestion!

Someone on the build team should look into this and see what is
causing the problem on a Solaris system. Since /bin/sh is a true
Bourne shell here, there must be some incompatibility with the shell
used on Linux (assuming no one on that platform is seeing this problem).

I don't know how to migrate this discussion to the new groups, but I
will use them exclusively from this point onward.

Thanks again.

Regards,
--
Jeff




 
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! UK. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help