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

Submitter:  None
Submitted:  Mon 22 Jun 2009 12:07:14 PM UTC
 
Category:  None Severity:  3 - Normal
Item Group:  Compilation Failure Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Alois Wiedenhofer Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  4.4.2
Fixed Release:  4.5.6b
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

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 Administrator
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 Administrator
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 Administrator
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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-04-10 jay StatusNeed Info Fixed
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.5.6b
    2010-03-31 jay StatusFixed Need Info
    2009-12-04 jay StatusReady For Test Fixed
    2009-12-04 jay StatusNone Ready For Test
    2009-07-05 jay Assigned toNone jay

    Back to the top


    Powered by Savane 3.9