From shamkhalil at famaco.com.my Sun Oct 8 18:30:46 2006 From: shamkhalil at famaco.com.my (Sham Khalil) Date: Sun Oct 8 18:32:24 2006 Subject: [X-Unix] Install gd-2.0.33 on tiger PPC 10.4.8 Message-ID: <4529A646.8090706@famaco.com.my> Hi all I can't install gd-2.0.33 on my ibook G4 Tiger 10.4.8. I used command ./configure then make. It gave error like this if /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include/freetype2 -I/usr/local/include -g -O2 -MT gdft.lo -MD -MP -MF ".deps/gdft.Tpo" -c -o gdft.lo gdft.c; \ then mv -f ".deps/gdft.Tpo" ".deps/gdft.Plo"; else rm -f ".deps/gdft.Tpo"; exit 1; fi rm -f .libs/gdft.lo gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include/freetype2 -I/usr/local/include -g -O2 -MT gdft.lo -MD -MP -MF .deps/gdft.Tpo -c gdft.c -fno-common -DPIC -o .libs/gdft.lo gdft.c:1366:35: error: fontconfig/fontconfig.h: No such file or directory gdft.c:1429: error: parse error before '*' token gdft.c:1429: error: parse error before '*' token gdft.c: In function 'find_font': gdft.c:1431: error: 'FcResult' undeclared (first use in this function) gdft.c:1431: error: (Each undeclared identifier is reported only once gdft.c:1431: error: for each function it appears in.) gdft.c:1431: error: parse error before "result" gdft.c:1433: error: 'pattern' undeclared (first use in this function) gdft.c:1433: error: 'FcMatchPattern' undeclared (first use in this function) gdft.c:1434: error: 'FcMatchFont' undeclared (first use in this function) gdft.c:1437: error: 'result' undeclared (first use in this function) gdft.c:1437: warning: return makes pointer from integer without a cast gdft.c: At top level: gdft.c:1442: error: parse error before '*' token gdft.c: In function 'find_postscript_font': gdft.c:1444: error: 'FcPattern' undeclared (first use in this function) gdft.c:1444: error: 'font' undeclared (first use in this function) gdft.c:1447: error: 'fontpattern' undeclared (first use in this function) gdft.c:1449: error: 'fontname' undeclared (first use in this function) gdft.c:1450: error: 'FcChar8' undeclared (first use in this function) gdft.c:1450: error: 'family' undeclared (first use in this function) gdft.c:1452: error: 'pattern' undeclared (first use in this function) gdft.c:1454: error: 'FC_FAMILY' undeclared (first use in this function) gdft.c:1454: error: 'FcTypeString' undeclared (first use in this function) gdft.c:1455: error: 'FC_STYLE' undeclared (first use in this function) gdft.c:1460: error: 'FcResultMatch' undeclared (first use in this function) gdft.c: In function 'font_pattern': gdft.c:1479: error: 'FcPattern' undeclared (first use in this function) gdft.c:1479: error: 'font' undeclared (first use in this function) gdft.c:1480: error: 'FcChar8' undeclared (first use in this function) gdft.c:1480: error: 'file' undeclared (first use in this function) gdft.c:1481: error: 'pattern' undeclared (first use in this function) gdft.c:1494: error: parse error before "FcChar8" gdft.c:1501: error: 'FC_FILE' undeclared (first use in this function) gdft.c:1501: error: 'FcResultMatch' undeclared (first use in this function) make[2]: *** [gdft.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 I have installed zlib-1.2.3, libpng-1.2.12, jpeg-6b and freetype-2.2.1. All above i used ./configure, make, sudo make install. freetype-2.2.1 was installed in two locations /usr/local and /usr/X11R6 I also tried to install gd-2.0.33 using configure.pl --prefix /usr/local, make and sudo make install. It gave out error like this gcc -fPIC -I. -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include -g -DHAVE_LIBPNG -DHAVE_LIBZ -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -DHAVE_LIBXPM -DHAVE_LIBX11 -c -o gdft.o gdft.c In file included from gdft.c:113: /usr/local/include/freetype2/freetype/freetype.h:20:2: error: #error "`ft2build.h' hasn't been included yet!" /usr/local/include/freetype2/freetype/freetype.h:21:2: error: #error "Please always use macros to include FreeType header files." /usr/local/include/freetype2/freetype/freetype.h:22:2: error: #error "Example:" /usr/local/include/freetype2/freetype/freetype.h:23:2: error: #error " #include " /usr/local/include/freetype2/freetype/freetype.h:24:2: error: #error " #include FT_FREETYPE_H" make: *** [gdft.o] Error 1 It looks like the error has something to do with freetype. Could someone help me figure this out? thanks sham khalil From rick at rickgordon.com Thu Oct 12 12:39:50 2006 From: rick at rickgordon.com (Rick Gordon) Date: Thu Oct 12 12:40:09 2006 Subject: [X-Unix] Terminal Syntax for Writing to /private/etc/authorization In-Reply-To: References: Message-ID: This really breaks down into two questions: 1) Even trying to read the file (which is in XML plist format) doesn't seem to work with the following syntax: sudo defaults read /private/etc/authorization I get a "Domain /private/etc/authorization does not exist" error. 2) Assuming I could get around that, how does the defaults command deal with nested entries in a plist file? For instance, I'm looking for a quick and convenient way (other than opening authorization in the Property List Editor via Pseudo) to toggle the entry "rights > system.privilege.admin > group" from admin to wheel, or vice versa. Can someone straighten me out here? Thanks in advance. -- ___________________________________________________ RICK GORDON EMERALD VALLEY GRAPHICS AND CONSULTING ___________________________________________________ WWW: http://www.shelterpub.com From MWheeler at tntech.edu Thu Oct 12 12:56:16 2006 From: MWheeler at tntech.edu (Michael Wheeler) Date: Thu Oct 12 12:56:29 2006 Subject: [X-Unix] Terminal Syntax for Writing to /private/etc/authorization In-Reply-To: Message-ID: I think that's because it doesn't have .plist on the end of the filename. You could try creating a symbolic link to it that ends with .plist as that worked when I just tried it on my machine. Michael W. Wheeler, OpenVMS, Windows, Solaris and Macintosh Systems Support, Tennessee Technological University -----Original Message----- From: x-unix-bounces@listserver.themacintoshguy.com [mailto:x-unix-bounces@listserver.themacintoshguy.com] On Behalf Of Rick Gordon Sent: Thursday, October 12, 2006 2:40 PM To: A place to discuss Mac OS X from the perspective of the command line. Subject: [X-Unix] Terminal Syntax for Writing to /private/etc/authorization This really breaks down into two questions: 1) Even trying to read the file (which is in XML plist format) doesn't seem to work with the following syntax: sudo defaults read /private/etc/authorization I get a "Domain /private/etc/authorization does not exist" error. 2) Assuming I could get around that, how does the defaults command deal with nested entries in a plist file? For instance, I'm looking for a quick and convenient way (other than opening authorization in the Property List Editor via Pseudo) to toggle the entry "rights > system.privilege.admin > group" from admin to wheel, or vice versa. Can someone straighten me out here? Thanks in advance. -- ___________________________________________________ RICK GORDON EMERALD VALLEY GRAPHICS AND CONSULTING ___________________________________________________ WWW: http://www.shelterpub.com _______________________________________________ X-Unix mailing list X-Unix@listserver.themacintoshguy.com http://listserver.themacintoshguy.com/mailman/listinfo/x-unix Listmom is trying to clean out his closets! Vintage Mac and random stuff: http://search.ebay.com/_W0QQsassZmacguy1984 From lists_lrb at mac.com Thu Oct 12 15:54:11 2006 From: lists_lrb at mac.com (Rod Buchanan) Date: Thu Oct 12 15:54:34 2006 Subject: [X-Unix] Terminal Syntax for Writing to /private/etc/authorization In-Reply-To: Message-ID: On 10/12/06 2:39 PM, "Rick Gordon" wrote: > This really breaks down into two questions: > > 1) Even trying to read the file (which is in XML plist format) doesn't seem to > work with the following syntax: > > sudo defaults read /private/etc/authorization > > I get a "Domain /private/etc/authorization does not exist" error. Try this: $ plutil -convert binary1 -o /tmp/auth.plist /etc/authorization (copy file to binary file auth.plist in /tmp) $ defaults read /tmp/auth (display .plist file) > 2) Assuming I could get around that, how does the defaults command deal with > nested entries in a plist file? For instance, I'm looking for a quick and > convenient way (other than opening authorization in the Property List Editor > via Pseudo) to toggle the entry "rights > system.privilege.admin > group" > from admin to wheel, or vice versa. This I'm not sure how to do. -- Rod Windows NT crashed. I am the Blue Screen of Death No one hears your screams. -- Salon Haiku Contest, 1998 From rick at rickgordon.com Thu Oct 12 22:59:58 2006 From: rick at rickgordon.com (Rick Gordon) Date: Thu Oct 12 23:00:11 2006 Subject: [X-Unix] Terminal Syntax for Writing to /private/etc/authorization In-Reply-To: References: Message-ID: It sounds as though PlistBuddy might be the answer. ------------------ On 10/12/06 at 5:54 PM -0500, Rod Buchanan wrote in a message entitled "Re: [X-Unix] Terminal Syntax for Writing to /private/etc/au": >On 10/12/06 2:39 PM, "Rick Gordon" wrote: > > > 2) Assuming I could get around that, how does the defaults command deal with >> nested entries in a plist file? For instance, I'm looking for a quick and >> convenient way (other than opening authorization in the Property List Editor >> via Pseudo) to toggle the entry "rights > system.privilege.admin > group" >> from admin to wheel, or vice versa. > >This I'm not sure how to do. -- ___________________________________________________ RICK GORDON EMERALD VALLEY GRAPHICS AND CONSULTING ___________________________________________________ WWW: http://www.shelterpub.com From poolmouse_nyc at mac.com Mon Oct 16 23:57:16 2006 From: poolmouse_nyc at mac.com (don) Date: Mon Oct 16 23:57:26 2006 Subject: [X-Unix] need help creating a find/move script Message-ID: i was wondering if the unix gurus on this list could help me out with a script i'm trying to create. the script will be used as a "pre" script for bru so only full backup stage files (which are over 150g in size) are upstaged (moved to tape) while incremental stage files are moved to a folder where bru will not try to put them on tape. 1. search /Users/Shared/Staging directory for files that are under 100g in size and over 24hrs old 2. move the files to /Users/Shared/Incrementals i thought the script should look something like this: find /Users/Shared/Staging/. -type f -atime +1 -size -100000000k -exec mv {} /Users/Shared/Incrementals/. \; ...how does this look? thanks for sharing your knowledge. :) don -- don montalvo, nyc curmudgeon at large From jerry at ieee.org Sat Oct 21 16:01:00 2006 From: jerry at ieee.org (Jerry Krinock) Date: Sat Oct 21 16:01:12 2006 Subject: [X-Unix] Where is lchown? Message-ID: I have a manual (man) page for lchown and would like to use it. But I get no results in searching for it on my either of my Tiger Macs, neither PowerPC nor Intel. chown is in /usr/sbin. Where is the executable lchown? Thanks, Jerry From subscriber at gloaming.com Sat Oct 21 16:40:17 2006 From: subscriber at gloaming.com (James Bucanek) Date: Sat Oct 21 16:40:43 2006 Subject: [X-Unix] Where is lchown? In-Reply-To: Message-ID: Jerry Krinock wrote on Saturday, October 21, 2006: >I have a manual (man) page for lchown and would like to use it. But I get >no results in searching for it on my either of my Tiger Macs, neither >PowerPC nor Intel. > >chown is in /usr/sbin. > >Where is the executable lchown? I have no man page for lchown as a command (sections 1 or 8). There's one for the lchown C _function_ (section 2), but that's an API not an executable. To get the function of lchown on the command line, run the chown executable with the -P option. -- James Bucanek From jellis at dhnet.us Sun Oct 29 20:48:06 2006 From: jellis at dhnet.us (Jeffrey Ellis) Date: Sun Oct 29 20:48:11 2006 Subject: [X-Unix] Owner/Group changes depending on login? Message-ID: Hi-- I just viewed the same group of files from the same ext. firewire drive on the same machine, but booted from two different drives, and two different OS's. These files are at the root of Drive A, which contains neither of the boot volumes. The first time I viewed Drive A from a 10.3.7 boot volume. This is how it looked: drwxrwxrwx 8 jeffrey admin 272 7 Oct 2004 Act 2a Project drwxrwxrwx 7 jeffrey admin 238 12 Sep 2004 Act 2c Project drwxrwxrwx 4 jeffrey admin 136 6 May 2005 Andrew - King of the Wo Project drwxrwxr-x 45 root admin 1530 29 May 2002 Applications Next, I booted from a 10.4.8 volume. Again, these are the same files from Drive A. drwxrwxrwx 8 jeffrey jeffrey 272 Oct 7 2004 Act 2a Project drwxrwxrwx 7 jeffrey jeffrey 238 Sep 12 2004 Act 2c Project drwxrwxrwx 4 jeffrey jeffrey 136 May 6 2005 Andrew - King of the Wo Project drwxrwxr-x 45 jeffrey jeffrey 1530 May 29 2002 Applications Now, it has since come to my attention that this is happening because I have these volumes set to Ignore Ownership in the Finder. So my first question is, is there some flag which is visible at the command line which would show this, and if so, what command would I use? But more ? and stranger to me ? is that when I?m sudo?d, the same volumes suddenly give ?unknown? as their Owner/Group?? And this is even for volumes where Ignore Ownership is not checked. drwxrwxrwx 8 unknown unknown - 272 Oct 7 2004 Act 2a Project drwxrwxrwx 7 unknown unknown - 238 Sep 12 2004 Act 2c Project drwxrwxrwx 4 unknown unknown - 136 May 6 2005 Andrew - King of the Wo Project drwxrwxr-x 45 unknown unknown - 1530 May 29 2002 Applications I have checked ls with ?n for these volumes, and indeed, they seem to have numerical user-ids I don?t recognize ? but then why are they associated with an Owner name when viewed as a non-superuser, and only display as unknown when a superuser? Anyway, the gist of this is I jesdongitit Can someone explain how all this works? All My Best, Jeffrey From subscriber at gloaming.com Sun Oct 29 21:27:33 2006 From: subscriber at gloaming.com (James Bucanek) Date: Sun Oct 29 21:27:58 2006 Subject: [X-Unix] Owner/Group changes depending on login? In-Reply-To: Message-ID: Jeffrey Ellis wrote on Sunday, October 29, 2006: >So my first question >is, is there some flag which is visible at the command line which would show >this, and if so, what command would I use? diskutil info /Volumes/Vol ... Owners: Ensabled/Disabled ... >But more ? and stranger to me ? is that when I?m sudo?d, the same volumes >suddenly give ?unknown? as their Owner/Group?? And this is even for volumes >where Ignore Ownership is not checked. I know of a bug in the OS where the UID of files on external volumes is different if you read the catalog information as a regular user vs. root. I suspect that it applies to files written with an earlier version of the OS as attempts to reproduce the problem have failed on my system. -- James Bucanek From Peter_Dyballa at Web.DE Mon Oct 30 04:38:06 2006 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Mon Oct 30 04:42:14 2006 Subject: [X-Unix] Re: Install gd-2.0.33 on tiger PPC 10.4.8 In-Reply-To: <20061030044816.E7191357D24@listserver.themacintoshguy.com> References: <20061030044816.E7191357D24@listserver.themacintoshguy.com> Message-ID: <4BD2AD5D-0445-47CD-AA3C-AA2477DBF46B@Web.DE> Am 30.10.2006 um 05:48 schrieb x-unix- request@listserver.themacintoshguy.com: > gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include/freetype2 > -I/usr/local/include -g -O2 -MT gdft.lo -MD -MP -MF .deps/gdft.Tpo -c > gdft.c -fno-common -DPIC -o .libs/gdft.lo > gdft.c:1366:35: error: fontconfig/fontconfig.h: No such file or > directory > [...] > gcc -fPIC -I. -I/usr/include/freetype2 -I/usr/local/include/freetype2 > -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include -g > -DHAVE_LIBPNG -DHAVE_LIBZ -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE > -DHAVE_LIBXPM -DHAVE_LIBX11 -c -o gdft.o gdft.c > In file included from gdft.c:113: > /usr/local/include/freetype2/freetype/freetype.h:20:2: error: #error > "`ft2build.h' hasn't been included yet!" Try to run './configure --help' to see some project specific options! What you need to do is to add search paths for fontconfig header files (-I/usr/local/fontconfig ? although it's really not obvious from the first error, have you just forgotten to install libfontconfig?) and you need *two* components for freetype: /usr/ local/include/freetype2 *and* /usr/local/include, because in /usr/ local/include you'll find ft2build.h. So, if you think invoking './configure --help' isn't worth every time you should at least pass to configure a reasonable set of CPPFLAGS. BTW, -I/usr/include/X11 and -I/usr/X11R6/include/X11 are both nonsense. X11 header files are included as X11/. -- Greetings Pete Basic, n.: A programming language. Related to certain social diseases in that those who have it will not admit it in polite company. From kuestner at macnews.de Mon Oct 30 12:45:05 2006 From: kuestner at macnews.de (B. Kuestner) Date: Mon Oct 30 12:46:15 2006 Subject: [X-Unix] Owner/Group changes depending on login? In-Reply-To: References: Message-ID: <27B6A197-ED9D-4355-9B48-4E45A1480398@macnews.de> I think the answer to your first question is, that OS X (or any Unixish OS) actually sees UIDs and GIDs, i. e. numbers and not file owners and groups. These numbers are then assigned to logins and groups. So if "Act 2a Project" is assigned to UID 501 and GID 123, it matters if the OS maps GID 123 to group admin or to group jeffrey. Either with Panther or with Tiger Apple introduced a new concept of dealing with groups: Each user is assigned his own group. Your experiment suggests that this change happened with Tiger, so that's why you see the difference. I have no idea for the second observation that ownership feedback changes if you ls as root. Bj?rn