The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - General (http://hintsforums.macworld.com/forumdisplay.php?f=16)
-   -   ls --color=auto (make this stick?) (http://hintsforums.macworld.com/showthread.php?t=8510)

mervTormel 12-20-2003 11:48 AM

Quote:

Originally posted by DMCrimson
as you can see from above... fileutils 4.1 didnt compile... trying coreutils 5 as soon as it's downed:)
ah, yeah. heh. missed that.

DMCrimson 12-20-2003 11:59 AM

Code:

In file included from /usr/include/machine/param.h:30,
                from /usr/include/sys/param.h:102,
                from /usr/include/netdb.h:84,
                from canon-host.c:36:
/usr/include/ppc/param.h:98: macro "btodb" requires 2 arguments, but only 1 given
/usr/include/ppc/param.h:100: macro "dbtob" requires 2 arguments, but only 1 given
make[3]: *** [canon-host.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
[dmcrimson][coreutils-5.0]$


:/ Grr@Apple for screwing them headers.

mervTormel 12-20-2003 12:14 PM

hmm, make worked here, coreutils-5.0, OSX 10.3.2

DMCrimson 12-20-2003 06:36 PM

10.3.2 here too... my param.h seems clunky:/

mervTormel 12-20-2003 06:51 PM

relevant code
 
Code:

/* bytes to pages */
#define btoc(x) (((unsigned)(x)+(PGOFSET))>>PGSHIFT)
#ifdef __APPLE__
#define  btodb(bytes, devBlockSize)        \
        ((unsigned)(bytes) / devBlockSize)
#define  dbtob(db, devBlockSize)            \
            ((unsigned)(db) * devBlockSize)
#else
#define btodb(bytes)                    /* calculates (bytes / DEV_BSIZE) */ \
        ((unsigned)(bytes) >> DEV_BSHIFT)
#define dbtob(db)                      /* calculates (db * DEV_BSIZE) */ \
        ((unsigned)(db) << DEV_BSHIFT)
#endif


DMCrimson 12-20-2003 08:00 PM

just as it reads in my param.h... did you use anything with ./configure?

mervTormel 12-20-2003 08:23 PM

Quote:

Originally posted by DMCrimson
just as it reads in my param.h... did you use anything with ./configure?
no, nothing

DMCrimson 12-20-2003 08:33 PM

bah, this is driving me nutcase here
well, I just gotta live with fink, then...

DMCrimson 12-21-2003 09:22 AM

HAH!

Problem solved:) commented out line 'source /sw/bin/init.sh' from my .bashrc, also changed
CFLAGS='-no-cpp-precomp' from '-Wno-long-double -no-cpp-precomp'


and now it installed coreutils 5.0.91 :)


All times are GMT -5. The time now is 05:36 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.