bugfindutils - Bugs: bug #26868, compilation Error on Solsaris...

 
 

bug #26868: compilation Error on Solsaris x86_64: pred.c:662: error: wrong type argument to unary minus

Submitted by:  None
Submitted on:  Mon 22 Jun 2009 12:07:14 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: Compilation FailureStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Alois WiedenhoferOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.4.2
Fixed Release: 4.5.6b

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 10 Apr 2010 11:10:59 PM UTC, comment #4:

In fact, all that commit 8ba9443ed5 does is import the gnulib math module, and update the ChangeLog and NEWS files.

I'm going to mark this bug as fixed and closed. If you find it still to be a problem, please go ahead and reopen it.

8ba9443ed5 was first included in relase 4.5.6b, so I'll use that as the fixed release.

James Youngman <jay>
Project AdministratorIn charge of this item.
Fri 04 Dec 2009 11:02:14 PM UTC, comment #3:

Actually, this may be an instance of the bug that gnulib commit 833333 was designed to fix. In other words, the Solaris bug is that HUGE_VAL was defined as a function address rather than a floating point constant, so (-1.0*HUGE_VAL) will be just as much of a syntax error as -HUGE_VAL. And if I'm correct, you should revert commit 8ba9443ed5 from findutils, and instead merely assure that you are using the gnulib module math from a new enough snapshot of gnulib. But I don't have access to an x86_64 Solaris machine to quickly confirm this.

Eric Blake <ericb>
Project Administrator
Fri 04 Dec 2009 06:51:50 PM UTC, comment #2:

Despite the lack of response, I mailed a patch to the mailing list.

James Youngman <jay>
Project AdministratorIn charge of this item.
Sun 05 Jul 2009 05:51:16 PM UTC, comment #1:

If you change the relevant code to (-1.0*HUGE_VAL) instead of -HUGE_VAL what happens?

James Youngman <jay>
Project AdministratorIn charge of this item.
Mon 22 Jun 2009 12:07:14 PM UTC, original submission:

(root@web1:NODB) $ pwd
/opt/install/findutils-4.4.2

(root@web1:NODB) $ make
make all-recursive
Making all in gnulib
Making all in lib
make all-am
Making all in tests
make all-recursive
Making all in build-aux
Making all in lib
make all-am
Making all in find
Making all in .
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../lib -I../gnulib/lib -I../intl -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -g -O2 -MT pred.o -MD -MP -MF .deps/pred.Tpo -c -o pred.o pred.c
pred.c: In function `file_sparseness':
pred.c:662: error: wrong type argument to unary minus

      • Error code 1

make: Fatal error: Command failed for target `pred.o'
Current working directory /opt/install/findutils-4.4.2/find

      • Error code 1

The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
case $f in \
= | --[!k]*);; \
k) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='. testsuite'; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /opt/install/findutils-4.4.2/find

      • Error code 1

The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
case $f in \
= | --[!k]*);; \
k) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='gnulib tests build-aux lib find xargs locate doc po m4'; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /opt/install/findutils-4.4.2

      • Error code 1

make: Fatal error: Command failed for target `all'
(root@web1:NODB) $

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ericb (Posted a comment)
  • -unavailable- added by jay (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 10 Apr 2010 11:10:59 PM UTCjayStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.5.6b
    Wed 31 Mar 2010 07:29:44 AM UTCjayStatusFixed=>Need Info
    Fri 04 Dec 2009 10:25:43 PM UTCjayStatusReady For Test=>Fixed
    Fri 04 Dec 2009 06:51:50 PM UTCjayStatusNone=>Ready For Test
    Sun 05 Jul 2009 05:51:16 PM UTCjayAssigned toNone=>jay

    Back to the top


    Powered by Savane 3.1-cleanup1