Re: Status of gfortran?
ask about in on a high energy physics list, or a HEP google group. particle physicists are heavily into fortran. Speaking as one, we used to use F77, years back, but these days we mostly use C++. Praise the Lord. I dropped out of my UCSC Physics degree in 1987 to work in industry for a few years, but eventually completed it with my Senior Thesis at CERN during the Summer of 1993. I was appalled at CERNLIB, Patchy and friends. I asked my advisor, Clem Heusch, why they didn't hire professional software engineers to write all that code. Students need jobs, he replied. I required seven weeks to make sense of my collaborations code and their tools, three or four days to write my own patchy patch, then four days to run my Monte Carlo simulation. After I was all done I had all of the the graduate students and postdocs look at my source - I was the only undergraduate. They were dumbfounded at the pristine, readible clarity of my source - despite being fortran. The reason physics software is so difficult, I angrily told them all, IS THAT YOU PHYSICISTS MAKE IT DIFFICULT! Thine In Eternal Torment, Mike ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Status of gfortran?
ask about in on a high energy physics list, or a HEP google group. particle physicists are heavily into fortran. Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Sun, Mar 8, 2015 at 12:45 PM, René J.V. rjvber...@gmail.com wrote: On Sunday March 08 2015 15:15:24 Samuel Dupree wrote: If worse comes to worse, you might want to take a look at http://hpc.sourceforge.net/. This site has binaries compiled from the GNU source code with versions for Yosemite, Mavericks, Mountain Lion and Lion. I've have been able to successfully install and gfortran from this site. The R Project (www.r-project.org) also used to provide a gfortran binary, which at some point (couple years ago) was preferable to the one from hpc. Can't remember why though. R. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Install netatalk on OS X 10.8.5 - error (incomplete definition of type 'struct _ipp_s')
Many of the protocols that were once built on top of AppleTalk are now built on top of TCP/IP. I know that was done specifically for AppleShare; I don't know about printing but I expect that Mac OS X now uses something like BSD's print spooler. Mike Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Sun, Mar 8, 2015 at 3:24 AM, fo...@amolsch.com wrote: Am 07.03.15 um 10:41 schrieb Ryan Schmidt On Mar 6, 2015, at 9:53 AM, fo...@amolsch.com wrote: I tried to install netatalk on OS X 10.8.5. I want to use it for printing so I don't have to start up a VM every time I want to print. When I used MacPorts I got an error message (https://trac.macports.org/ticket/46991) in my log which is the same as reported in this ticket: https://trac.macports.org/ticket/36672. This issue has been fixed: https://trac.macports.org/browser/trunk/dports/net/netatalk/Portfile has since been revised and now says disable AppleTalk use on OS versions newer than 10.6 too. Disable AppleTalk doesn't sound very promising - or do I get something wrong here? And on top I now get a different error, the same as reported at https://trac.macports.org/ticket/36674 : incomplete definition of type 'struct _ipp_s' Is there any solution to this? We should try to update the netatalk port to the latest version (https://trac.macports.org/ticket/36673). If that does not work we should report the problem to the developers of netatalk. Do you think the updating will be done any time soon? ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: On reloading MacOS
Make more than one backup. Test them both before you wipe. Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Sat, Feb 14, 2015 at 2:34 PM, René J.V. rjvber...@gmail.com wrote: On Sunday February 15 2015 09:24:52 Dave Horsfall wrote: So, before I wipe the thing, does anyone have any horror stories? Can I put complete trust in my Time Capsule etc? What are you intending to do? A clean install, or just a format and then reinstall from backup which will hopefully leave you with little to no free space fragmentation (supposing you have a HDD)? I myself have a confirmed faith in CCC (Carbon Copy Cloner) combined with a series of external harddisks. Either make a fresh clone, wipe your main boot disk, and clone back onto it, or do a fresh install and then use the Migration Assistant to pull of everything you want from the clone (yes, that'll work though you may have to boot off the external once for everything to be in place). In the TC's defence, I've only ever had to use it once, when I deleted the wrong file... I had to go back about a week. Whew! That's what TM is great for. But I wouldn't want to have to do without the possibility to boot off an external with a recent clone of my set-up! R. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: A question about Localhost with Safari
DNS is a protocol, not an API. To the extent that hosts is used, it's because developer of the software that implements the protocol chooses to use it. It's a PITA if it's not used - I quite commonly set up small networks in my own office, with static IPs hardwired into my hosts files. Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Sun, Jan 4, 2015 at 8:24 AM, Brandon Allbery allber...@gmail.com wrote: On Sun, Jan 4, 2015 at 11:20 AM, William H. Magill mag...@mac.com wrote: BIND9 at least comes with a local zone definition that includes localhost. as a name, with the usual mapping. That said, people *usually* get it from /etc/hosts... *but* OS X is a little weird in how/when it uses the hosts file. If one believes the contents of /etc/hosts -- OSX only consults it at boot time. That comment is an approximation of the truth. But, while BSD API stuff follows similar rules to other Unixes (checks hosts first then the name service --- but since the name service isn't up yet at boot time, it only uses the hosts file), Cocoa API doesn't appear to do so. (I admit to not knowing exactly what that API does, just that it seems to be different.) -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: A question about Localhost with Safari
HTTP 1.0 used only the IP address; if you wanted a single server to serve multiple domains, it needed to have multiple IP addresses. HTTP 1.1 permits the use of the hostname, and a single IP that multiple hosts all share. However, in general it should work to leave off the hostname. What you'd get is the the default host's website. I myself use warplife.frylock as the domain for my website when I work on it locally. I have Apache configs for each of my hosts - presently only that one but at times I have more than one. Here I'm counting on the .frylock not being a real TLD, however TLDs have been proliferating lately. MIke Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Sat, Jan 3, 2015 at 11:06 PM, William H. Magill mag...@mac.com wrote: On Jan 3, 2015, at 3:41 PM, William H. Magill wrote: Did Apple change something in Yosemite/Safari so that localhost is no longer an accessible DNS address for Safari? I have no trouble ssh-ing to localhost on my system, but Safari always responds Can't connect to the Server. Note that at one time I was using Apple's Apache via OSX Server, but have since replaced that with MacPorts. And, I have no idea if localhost worked after I upgraded to Yosemite and OSX Server ceased operation. Interesting set of replies (below). What triggered my query was the fact that various how to pages describe using localhost as a mechanic for testing certain web based services -- which did not work! https://trac.macports.org/wiki/howto/Apache2 I'm guessing that the over-arching description that one can define ServerName localhost:80 is simply no longer an appropriate statement for OSX and Yosemite. And apparently for Apache2 in general -- it works and passes validation, but the results of its use are not predictable. It also appears that the function of the ServerName directive has changed. The current Apache manual http://httpd.apache.org/docs/2.2/mod/core.html#servername describes its syntax as requiring a FQDN -- which neither Localhost nor IP address constructs (127.0.0,1) really are. (Apparently the directive is directly related to various DOS, Virtual Host and other DNS issues and is supplanted by the results from gethostname C function. http://httpd.apache.org/docs/2.2/dns-caveats.html In short, it appears that the old localhost shortcut needs to disappear from the documentation. For no other reason than the fact that results from using it are not reproducible. I hate documentation which states do X for result Y -- only to get result Z when you do so! All of which is compounded by the fact that while Yosemite will work if you are not connected to the Internet, Apple has structured things such that Yosemite EXPECTS to be connected to the Internet, i.e the iCloud. On Jan 3, 2015, at 7:45 PM, Ryan Schmidt ryandes...@macports.org wrote: I experience the problem on Yosemite that localhost will randomly switch between accessing the IPv4 address of my server (which works) and the IPv6 address of my server (which apparently isn't working). I've had to start using 127.0.0.1 instead, which is the IPv4 address. This does not appear to be specific to Safari; I saw it in the terminal with curl too. On Jan 3, 2015, at 7:49 PM, Richard L. Hamilton rlha...@smart.net wrote: You might try http://127.0.0.1/ and http://[::1]/ (IPv4 and IPv6 addresses for localhost - use https and a port number if required) If neither of those works either, it's probably not the hostname lookup (which is not necessarily just DNS, depending on how you're configured). Safari should be able to look up localhost from other than DNS (/etc/hosts or local OpenDirectory storage, I think) anyway.. On Jan 3, 2015, at 7:51 PM, Dave Horsfall d...@horsfall.org wrote: I've seen it in Firefox from time to time, when my MacBook's FF refreshes itself against the pages on my FreeBSD server (which happens to support IPv6 as well, but it shows in the Apache logs). On Jan 3, 2015, at 8:00 PM, René J.V. Bertin rjvber...@gmail.com wrote: I experience the problem on Yosemite that localhost will randomly switch between accessing the IPv4 address of my server (which works) and the IPv6 address of my server (which apparently isn't working). I've had to start using 127.0.0.1 instead, which is the IPv4 address. This does not appear to be specific to Safari; I saw it in the terminal with curl too. I had similar issues a long time ago already, already back in October 2006 I commented out the line with the IPv6 localhost address in /etc/hosts. I've never noticed any side-effects, and using IPv6 when you're behind a router that probably assigns addresses from a private netblock like 192.168.0.0/16 is completely unnecessary. I've never tried, but it might be enough to deactivate IPv6
Re: Which Xcode?
Xcode doesn't really do anything that you couldn't do with clang, llvm, gnu make and your choice of text editor. The best I've ever been able to say about Xcode is that I found it barely tolerable, now I regard using it as just like pounding nails with my fists. This is not at all to say I don't like Integrated Development Environments. I like them just fine - ThinkC, Symantec C and Metrowerks CodeWarrior all suited me just fine. It's that I regard Xcode as quite poorly designed. While I haven't actually done so yet, sometime soon I'm going to write a Makefile to build my iPhone App Warp Life (http://www.warplife.com/life/). I'm planning to release the source as Free Software. That source release isn't going to come with an Xcode project, because I have grown so weary of new versions of Xcode breaking stuff that used to work well. Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Sat, Nov 22, 2014 at 11:23 PM, René JV Bertin rjvber...@gmail.com wrote: If you have concerns about problems in Xcode 6.1, could you be more specific? I suppose he may be referring to the reviews on the Store (I checked several national stores, the reviews all agree that this version is buggy and crashy) ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Which Xcode?
Apple has not documented any way to plug in compilers other than those that come with Xcode. That doesn't mean that one cannot do so, just that Apple won't tell you how. However - while it would be some work - you could write an external compiler that plugs into CodeWarrior. That would just be a wrapper around the clang command-line tool, as well as the various configuration dialogs. The current FreeScale CodeWarrior only runs on Windows, I think, but you could write a clang plugin for CodeWarrior 8 or 9. Am I correct that CodeWarrior Pro 9 for OS X was free as in beer? I have CodeWarrior Pro 8 for both Windows and Mac. It's quite nice. Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Sun, Nov 23, 2014 at 4:51 AM, René JV Bertin rjvber...@gmail.com wrote: I wonder to what extent Xcode 3.2.6 can be configured to use new clang and the latest SDKs. That's an IDE concept I still prefer: individual editor windows, a separate project window etc. I really don't get that fashion of monolithic interfaces that block everything behind them and make it complicated to do copy/pasting among documents. R On 23 Nov 2014, at 09:44, Michael Crawford mdcrawf...@gmail.com wrote: Xcode doesn't really do anything that you couldn't do with clang, llvm, gnu make and your choice of text editor. The best I've ever been able to say about Xcode is that I found it barely tolerable, now I regard using it as just like pounding nails with my fists. This is not at all to say I don't like Integrated Development Environments. I like them just fine - ThinkC, Symantec C and Metrowerks CodeWarrior all suited me just fine. It's that I regard Xcode as quite poorly designed. While I haven't actually done so yet, sometime soon I'm going to write a Makefile to build my iPhone App Warp Life (http://www.warplife.com/life/). I'm planning to release the source as Free Software. That source release isn't going to come with an Xcode project, because I have grown so weary of new versions of Xcode breaking stuff that used to work well. Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Sat, Nov 22, 2014 at 11:23 PM, René JV Bertin rjvber...@gmail.com wrote: If you have concerns about problems in Xcode 6.1, could you be more specific? I suppose he may be referring to the reviews on the Store (I checked several national stores, the reviews all agree that this version is buggy and crashy) ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Odd non-fatal GIMP Behavior
If you select a document in the Finder, then ask that it be opened in an application - or just double-click it - the Finder will launch the application, then shortly after it will send the application an Open Document Apple Event. However, GIMP is a *NIX/X11 application, so it does not natively support Apple Events, which were introduced in Mac OS System 7. So somewhere in there, there must be a wrapper that receives the Apple Event as if it were a regular sort of native OS X program - Cocoa or Carbon - then it translates the request into something that the native Linux GIMP builds would do. Quite likely the problem is not actually in libiconv, but something else is screwed up earlier in time, but only causes trouble when libiconv is called. My understanding is that the original Apple Event Manager as documented in Inside Macintosh, Volume 6 works completely unmodified to this very day - it's binary compatible, you don't even need to recompile old source - but you're going to have a hard time getting anyone at Apple to admit to that fact. The closest any of today's Official Apple developer doc comes to mentioning Apple Events is that Cocoa provides some support in Cocoa/Objective-C code that's required to support AppleScript. But what AppleScript actually does is send Apple Events to event-driven applications, as well as receive them from those apps. More or less an Apple Event is a network packet that's dropped into your GUI event quite along with mouse clicks and keypresses. I wrote a paper on the Word Services Apple Event Suite for the MacHack '94 conference proceedings that explains Apple Events in general pretty well, there is also a Develop magazine article called Apple Event Objects and You that I have a PDF of. However my old site fell over, I haven't put this stuff up on my new site yet. I'll do so in the next day or so. Also I have some straightforward sample code in C. Hope That Beats The Subject Completely To Death, Mike Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Tue, Nov 18, 2014 at 10:58 AM, Jeff Singleton gvib...@gmail.com wrote: On 11/18/14 12:34 PM, Ryan Schmidt wrote: On Nov 18, 2014, at 12:30 PM, Jeff Singleton wrote: On 11/18/14 12:20 PM, Ryan Schmidt wrote: otool -L/Users/USER/*/GIMP.app/Conte jsingleton@minimac ~ $ lipo -info /opt/local/lib/libiconv.2.dylib Non-fat file: /opt/local/lib/libiconv.2.dylib is architecture: x86_64 jsingleton@minimac ~ $ lipo -info /Applications/GIMP.app/Contents/Resources/lib/libgobject-2.0.0.dylib Non-fat file: /Applications/GIMP.app/Contents/Resources/lib/libgobject-2.0.0.dylib is architecture: x86_64 Ok, so the architectures match. jsingleton@minimac ~ $ otool -L /Applications/GIMP.app/Contents/Resources/lib/libgobject-2.0.0.dylib /Applications/GIMP.app/Contents/Resources/lib/libgobject-2.0.0.dylib: /opt/local/lib/libgobject-2.0.0.dylib (compatibility version 4201.0.0, current version 4201.1.0) /opt/local/lib/libglib-2.0.0.dylib (compatibility version 4201.0.0, current version 4201.1.0) /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0) /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 1.0.0) /opt/local/lib/libffi.6.dylib (compatibility version 7.0.0, current version 7.2.0) /opt/local/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.2.0) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 157.0.0) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1151.16.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0) This looks reasonable. It's linked with the correct libiconv library. You're sure we're looking at the correct GIMP.app here? The error message implied the GIMP.app was in /Users but this one is in /Applications. jsingleton@minimac ~ $ echo $DYLD_LIBRARY_PATH jsingleton@minimac ~ $ Ok... so you don't have it set in your terminal. But does GIMPskel set it? I launched GIMP.app from /Applications ... and I don't really get why the crash dump would substitute my actual Users folder with /Users/USER/*/? Is that a built-in alias for my actual Users folder? Because GIMP.app is definitely not in my Users folder. Has my Yosemite lost its marbles? ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Virtual machines and OS X
I don't think shared folders are implemented as network shares, some other method is used. However if you do export a host folder as a share, your guest should be able to mount it. I was about to say that the folder is made to look like a regular disk drive but I'm not so sure, that would require the guest to manage the filesystem structure - allocating sectors c. - and that's not done with any of the VMs I've used. VirtualBox works on my MacBook Pro (Model Identifier MacBookPro10,1), but the one time I tried to install a Mac OS X guest, the guest panicked during boot because it was incompatible with the host microprocessor. I remain puzzled as to why that would be a problem. What I wanted to do was run an earlier OS X so I could develop my iOS App with an older Xcode version, so I could use the iDevice Simulator to test my App with some now long-deprecated APIs. VirtualBox' doc specifically warns that a guest might not run on a later CPU model than Apple tested it with during development. I still find that surprising, as all the CPU vendors work really, really hard to enable upward compatibility - like the Xeon in my desktop box can still do 16-bit MS-DOS just fine. I've never known Linux, Windows nor BSD to ever have a problem with later CPUs. However if it's a kernel panic, xnu - the OS X kernel - might have used a supervisor-mode machine instruction that works differently than it does on earlier model of CPU. Because Apple makes both the hardware and the software they might not be so concerned about making their code run on just anything: Installing Linux on a Dead Badger http://www.strangehorizons.com/2004/20040405/badger.shtml I don't recall clearly but I think I wanted to run Snow Leopard in a VM. Either 64- or 32-bit would be fine. If either Parallels or VMWare would work for me I'd really like to hear about it because I really do want to support the older iDevices with Warp Life, but I don't want to have to buy yet another Mac just for that. It's not the money it's that I already own a whole bunch of computing devices, I don't want to have another taking up space. Parallels offers a free demo, I'll give that a try sometime soon. Does VMWare? Mike Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Mon, Nov 17, 2014 at 10:07 AM, Marko Käning mk-macpo...@techno.ms wrote: Hi Michael, eventually I had to purchase Parallels 9 because VirtualBox wouldn't allow to successfully run Mavericks guests on my Mavericks host running on an i7-iMac. Parallels usually works fine if you _disable_ power saving on the guests!! Sometimes but I experience hanging guests! Only chance to recover from that is to kill the VM in question from within the host system and restart it (which means a cold reboot). This usually happens when there is a lot of load with e.g. two VMs running with 7 cores each on the i7 (which has 8 real cores only). This can also happen when you're creating a snapshot, while the 2nd machine is very busy. Sometimes also the keyboard's CAPSLOCK is engaged, although the keyboard's CAPSLOCK LED isn't lit. Recovering from that you will be pressing the key a couple of times until the LED is back in sync with what you type. Greets, Marko ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Virtual machines and OS X
If as you speculate, xnu is panicking just because it sees an unexpected CPU class, I wonder if one could write a guest extension that would prevent that from happening. While Mac OS X kernel extensions are mostly used for device drivers, they can be used to hot patch any part of the kernel you want to. So you could simply replace the function that identifies the CPU type, or write NOPs over the call to panic(), or patch panic's entry point so that it doesn't do anything if it's called for this particular. I don't recall what the actual panic message was, I'll give it a try again sometime soon. I'll also try both Parallels and VMWare. I used to use Parallels quite a bit - I really liked it. I've never used VMWare. Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Mon, Nov 17, 2014 at 1:52 PM, René J.V. rjvber...@gmail.com wrote: On Monday November 17 2014 13:33:58 Michael Crawford wrote: I don't think shared folders are implemented as network shares, some other method is used. Not explicitly, but in some implicit sense. I know that shared folders are treated that way in Windows guests running in VirtualBox. I was about to say that the folder is made to look like a regular disk drive but I'm not so sure, that would require the guest to manage the filesystem structure - allocating sectors c. - and that's not done with any of the VMs I've used. Sharing requires guest extensions, most of the time, which can include drivers for all kinds of exotic drive types ;) VirtualBox' doc specifically warns that a guest might not run on a later CPU model than Apple tested it with during development. I still find that surprising, as all the CPU vendors work really, really hard to enable upward compatibility - like the Xeon in my desktop box can ... However if it's a kernel panic, xnu - the OS X kernel - might have used a supervisor-mode machine instruction that works differently than it does on earlier model of CPU. Because Apple makes both the Or, Apple ties CPU model to system board and other stuff requiring drivers, detect a too-new CPU at some early point in the boot process, and provokes a panic. A KP isn't necessarily the result of an illegal operation, often it's like an abort(), to get out of a situation you know you cannot handle. VirtualBox is also less advanced in the CPU features it exports to the guest. My i7 CPU has AVX, but VirtualBox won't expose it to the VM (Parallels does, IIRC). If the OS somehow has a hardcoded set of presumptions of what a given CPU can do, that could indeed provoke crashes or KPs. I suppose you'd be less likely to run into this kind of issue if the VM software gives the possibility to create a 32bit VM, which means the CPU will be running in legacy mode. Parallels offers a free demo, I'll give that a try sometime soon. Does VMWare? I think so. Note that Parallel's demo isn't completely free in the sense that you have to sign up for spam in order activate the demo. So be sure to use a throw-away address for that. R. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Statically linked binaries killed by signal 9 on Yosemite
Apple has never guaranteed support for fully static binaries, rather it has explicitly discouraged them. The reason is that Apple wants to be free to change the binary interface for system calls. My understanding is that they are, in general, implemented by sending Mach messages from a dylib that is in the frameworks that most userspace links to, into the kernel. The ABI between userspace code and those dylibs is - for the most part - constant, but one cannot count on the private ABI between the system framework dylibs and the kernel. In principle you can still make a fully-static binary work, but if this is your problem, you will have to figure out what changed in Apple's private kernel ABI. I'm not so sure I'm cool with this but it is a fact that Apple has always been clear that it does not support system calls directly into the kernel. I'll send you my bill in the mail. Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Sat, Nov 15, 2014 at 9:20 AM, Brandon Allbery allber...@gmail.com wrote: On Sat, Nov 15, 2014 at 12:17 PM, René J.V. rjvber...@gmail.com wrote: Have you asked your users to start the executable in the debugger to see if the SIGTERM results from an abort function being called or something else? 9 is SIGKILL, not SIGTERM. I am under the impression that Apple doesn't like fully static executables any more; it's possible that 10.10 just refuses to run them now. Console.app might show what's going on. -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Statically linked binaries killed by signal 9 on Yosemite
valgrind has supported OS X for a few years now. If you can't find a prepackaged valgrind build I'd be happy to build it for you then send you the binary. If you don't want to actually install Yosemite on your own Mac, there is a documented procedure for imaging a bootable drive from the OS X App Store download. Launch the App Store application, click the Update item, select the Yosemite download but then don't permit it to actually install. (I don't recall clearly what one does from here, but the download will be in your /Applications folder, then you'll need some other tool to image the drive.) I know for sure you can image a USB stick, perhaps one can image a partition as well. You can shrink your existing partitions with Disk Utility, there is also a command-line tool for that, then create a partition to image the Yosemite upgrader application into. Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Sat, Nov 15, 2014 at 9:53 AM, Qianqian Fang fan...@gmail.com wrote: On 11/15/2014 12:17 PM, René J.V. Bertin wrote: Have you asked your users to start the executable in the debugger to see if the SIGTERM results from an abort function being called or something else? I asked my users to try valgrind, but one of them mentioned valgrind has not yet been available (for homebrew), but is it available on macports? https://groups.google.com/forum/#!msg/iso2mesh-users/ujQ7EIdTs1M/CwKSBw0ygycJ Qianqian R. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Statically linked binaries killed by signal 9 on Yosemite
valgrind does two main things: it emulates the Instruction Set Architecture of the microprocessor (x86_64 in Yosemite's case), and it also wraps all - or at least most - of the system and library calls with its own. That is, if you call, say, fopen(), when you run your code under valgrind, you'll actually be calling valgrind's implementation of fopen(), it will validate the parameters you pass it, then it will pass the call onto the original Apple-supplied fopen(). OS X has vast numbers of APIs. Some of these, while strictly speaking they may be well-documented, it can be quite difficult to actually _find_ the documentation. Consider the problem I've experienced for a number of years now, trying to figure out how to do just about anything without using Cocoa or Objective-C. Those work just fine for many applications but there are some good reasons not to use them. Ultimately what results is a system call, or a library implementation that comes from a computer science text - qsort() say - but Apple, while not exactly leaving those system or library calls completely undocumented, does not encourage their use. Back in the day I figured out how to talk directly to the audio driver, without going through QuickTime. It actually turned out to work really, really well but it was a huge PITA to figure out how to do it. The required APIs were documented, but were very, very difficult to actually find. So the challenge facing the valgrind developers is to find all that obscure documentation every time there is a major release, and to do so on all the platforms they support. Thus they have good reason to be slow, as well as to be quite reluctant to take on as-yet unsupported platforms. However... Please do try as someone previously suggested - try altering your build so that libc and libSystem are dynamically linked. Send a drop of that to your Yosemite users. If that actually turns out to work, you might still be able to make a fully-static build, but you would have to build it on Yosemite. Such a build would likely not work on Mavericks. As I said, Apple has always been quite clear that they do not support statically-linked binaries. I don't agree that that's the right attitude, but they _have_ always been clear that they don't support them, and they have always discouraged developers from using them. Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Sat, Nov 15, 2014 at 4:59 PM, Jeremy Lavergne jer...@lavergne.gotdns.org wrote: http://stackoverflow.com/questions/26564125/yosemite-and-valgrind From the above, Valgrind is notorious for taking their sweet time supporting new versions of OSX. You're just going to have to wait. On Nov 15, 2014, at 7:11 PM, Dave Horsfall wrote: Hmmm... The port for 10.10 not yet available? ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: The crazy thing I did to fix Yosemite performance
There's lots of good stuff for developers. I'm at work so I can't really take the time to look up all the links and titles. The OS X kernel - xnu? - is a massive fork off of *BSD. The two main differences are that it links _statically_ to Mach, not so much for use as a microkernel, but to avail itself of such primitives as message passing and low-level memory management. For example system calls are generally implemented by a userspace wrapper library that passes Mach messages into the kernel, rather than calling a trap - a sort of illegal instruction that results in a processor exception that switches the CPU to supervisor mode. There is a very good book on Mac OS X Internals. I think that's the title but my memory is hazy. I used to own a copy but left it on my desk when I was fired from Microsoft, as a way of pointing out to my manager - who knew nothing _whatsoever_ about the Mac - that my take on the way we should develop our product was correct, and he was blowing smoke. http://developer.apple.com/ has lots of good tutorials. You'll just have to wade through all the corporate propaganda that's aimed at the hip, new generation of iGadget coders, but the stuff is all still there, like the Hello I/O Kit tutorial that explains how to write a simple device driver. The other main way that xnu differs from *BSD is that Apple (or maybe NeXT I'm not sure) replaced the device driver architecture - originally written in C - with the I/O Kit, which is written in the badly named Embedded C++, a strictly limited subset of C++. In many ways I regard EC++ as a huge PITA - Bjarne hates it too - but otherwise I like I/O Kit coding quite a lot. It's a whole lot easier to write OS X drivers than those for Linux, Windows or most embedded systems. The man pages are there for most command-line programs. They weren't included in the very earliest releases of OS X, which made UNIX fans howl in derision. Actually a great many of Apple's own engineers are UNIX coders. I myself helped a bit with the QA of A/UX 2.0 in 1989 and 1990. I was doing the QA for MacTCP running on Systems 6 and 7, so my manager suggested I beta test the A/UX build of MacTCP, which was binary-compatible with Mac OS apps, but in reality was a wrapper around Berkeley sockets via the UNIX kernel system call interface. Back to work... :-/ Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Mon, Nov 3, 2014 at 11:40 AM, Jeff Singleton gvib...@gmail.com wrote: On 11/3/14 1:33 PM, Dave Horsfall wrote: OK, I'm going to bite. Does there exist a resource for Unix geeks to get used to Apple's way of doing things? I've read the Dummy's Guide, but it's not much more than helping Windoze lusers. I don't think there is a single guide...most of what I learned has been in pieces over the years. The method I used this time to backup/restore comes from an app I used way back that essentially was a GUI for doing the same process. I just chose to do things manually this time. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: The crazy thing I did to fix Yosemite performance
I'm a frothing Unix geek (for about 40 years) Heh. I'm a frothing VAX/VMS Geek myself. I actually scored a FORTRAN contract in 2006. There _are_ some advantages to OS X over UNIX. One thing that has always gotten me down about UNIX is that when one installs a new program, it's likely to spew files all over G-d Almighty's Own Creation. OS X GUI applications, and many other programs are all in these newfangled packages - small directory heirarchies. However, very few UNIX distros will permit the adoption of GnuStep - a Free Software Cocoa Clone - for the specific reason that these packages violate the Linux Standards Base. I myself regard these packages as solving the Linux filesystem layout problem, not screwing it up. Apple has lots of mailing lists that you'd find useful, all at http://lists.apple.com/ Stuff like darwin-kernel, darwin-drivers. Everyone there is friendly to the UNIX folk. Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Mon, Nov 3, 2014 at 12:12 PM, Dave Horsfall d...@horsfall.org wrote: On Mon, 3 Nov 2014, Michael Crawford wrote: There's lots of good stuff for developers. [...] Thanks; that's pretty much what I'm after. I'm a frothing Unix geek (for about 40 years) who was attracted to the Mac precisely because it ran FreeBSD (sort of), but I never ceased to be amazed at how they've basically broken things that worked just fine, such as /etc/fstab, /etc/inetd.conf, /etc/crontab, etc. They all seem to be merged into one monolithic program that I find difficult to trust, yet alone understand. I'm very much a command-line freak, not a Gooey-freak. -- Dave Horsfall (VK2KFU) Bliss is a MacBook with a FreeBSD server. http://www.horsfall.org/spam.html (and check the home page whilst you're there) ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: The crazy thing I did to fix Yosemite performance
IBM made the first hard drives out of red paint. I mean like the paint they use on the golden gate bridge. I Am Absolutely Serious. But that kind of paint tends to clump up, so they were filtering it through ladies' nylon stockings. (Facepalm). It didn't occur to me until just recently that they could have used Jeweler's Rouge. It's the same Ferrous Oxide (Fe2O3) as used for red primer paint, but the particles are very very fine. It's used for polishing optical glass, and is quite cheap. It's made by baking a chemical preparation of Oxalic Acid and a few other things in a low-temperature oven. Quite likely whoever made those first drives for IBM wasn't familiar with making telescopes so he just bought a can of paint at his local hardware store. Al Shugart's first disk drive business didn't work out, so he put his company under then, for a few years, operated a liquor bar in Santa Cruz, California. Eventually he founded Seagate. I'm not clear whether he figured out a better way to make the drives, or perhaps the introduction of the IBM PC made it easier to sell them. The Navy was all over me like a cheap suit to accept the Naval Reserve Officer's Training Corps scholarship when I graduated high school in 1982. Some jackass enlisted man rang me up at home one day to say How can you know what the Navy is like if you've never tried it? Listen I grew up in the Navy I know more about it than you do. I did interview for the scholarship, but the Captain who conducted my interview said that my interest in Physics suggested that I'd make a great nuclear submarine reactor. I am quite claustrophobic so I turned it down. But had he suggested I run aircraft carrier reactors, I likely would have accepted the scholarship. On the surface of the ocean, one has the chance of survival by swimming through burning jet fuel, you see. I often wonder how life would have been different for me, had I been a Naval officer like my father. He would have been quite proud of me. I gave the eulogy at his funeral. He's at rest in Willamette National Cemetery now, just south of Portland Oregon. That's one of the reasons I moved here, so I could be near my father, and honor his service to our country, and to the world. Just one last off-topic word: My father felt that the entire American military was a whole bunch of total slackers. He really did. He had quite a lot of respect for the Soviet military. He wanted very much for them to be our friends, and wanted very, very much to avoid ever having to shoot at them. One day while standing watch, my father looked through his binoculars to see a Soviet sailor looking right back at him, as their ships passed in the Mediterranean. Dad waved at the sailor. The Soviet seaman put down his binoculars, carefully looked to the left and to the right, stepped into a doorway so as not to be seen by his crewmates... ... and waved back! Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Mon, Nov 3, 2014 at 1:40 PM, Jeff Singleton gvib...@gmail.com wrote: Wow Michael.. we should talk. VAX/VMS and Fortran is what I worked with in the Navy for 8 years. Ah yes, back in the day when hard drives were the size of truck tires. Jeff On 11/3/14 2:22 PM, Michael Crawford wrote: I'm a frothing Unix geek (for about 40 years) Heh. I'm a frothing VAX/VMS Geek myself. I actually scored a FORTRAN contract in 2006. There _are_ some advantages to OS X over UNIX. One thing that has always gotten me down about UNIX is that when one installs a new program, it's likely to spew files all over G-d Almighty's Own Creation. OS X GUI applications, and many other programs are all in these newfangled packages - small directory heirarchies. However, very few UNIX distros will permit the adoption of GnuStep - a Free Software Cocoa Clone - for the specific reason that these packages violate the Linux Standards Base. I myself regard these packages as solving the Linux filesystem layout problem, not screwing it up. Apple has lots of mailing lists that you'd find useful, all at http://lists.apple.com/ Stuff like darwin-kernel, darwin-drivers. Everyone there is friendly to the UNIX folk. Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Mon, Nov 3, 2014 at 12:12 PM, Dave Horsfall d...@horsfall.org wrote: On Mon, 3 Nov 2014, Michael Crawford wrote: There's lots of good stuff for developers. [...] Thanks; that's pretty much what I'm after. I'm a frothing Unix geek (for about 40 years) who was attracted to the Mac precisely because it ran FreeBSD (sort of), but I never ceased to be amazed at how they've basically broken things that worked just fine, such as /etc/fstab, /etc/inetd.conf, /etc/crontab, etc. They all seem to be merged
Re: The crazy thing I did to fix Yosemite performance
Your user folder from your original installation will include a lot of settings, preferences and the like from applications that were part of your older OS install. Potentially that might not be what you want, I don't really know. Recent versions of OS X hide your ~/Library folder in the Finder, but you can get into it with: $ cd ; open Library There is a lot of stuff in there, put there by Apple or by third-party App developers. I don't think it's such a good idea that the Library folder is completely hidden, as most users won't know it's there, won't know to back it up and so on. But of course Apple figures everyone just uses Spotlight. :-/ I don't use Spotlight, I have grey hair, my face is getting wrinkled so I drop .tar.gzs onto USB sticks. Mike Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Sun, Nov 2, 2014 at 4:54 PM, Jeff Singleton gvib...@gmail.com wrote: On 11/2/14 12:57 PM, René J.V. Bertin wrote: On Sunday November 02 2014 12:06:35 Jeff Singleton wrote: Back story: In an attempt to figure out why the services mds and mdworker were running away with my CPU. Nothing I did resolved this, including putting every single folder except /Applications in the exception list for Spotlight. This is where I started editing Did that include switching off indexing for the whole (boot) disk (mdutil -i off) followed by a reboot? That ought to have wiped your spotlight folder, presuming that the most likely performance culprit would be updating an existing (huge) database file ... R. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users Trust me. I tried everything. Resetting the SMC, PRAM, permissions, manually deleting the .Spotlight folder from /. Anything I could find on any Apple related blog/forum, I tried it. Even going so far as to exclude lots of folders from my home Library folder, the same for System Library folder, my external drive, Bootcamp partition...none of it mattered. The only thing that had any affect was to stop the mdworker services and the syslogd service. That is the only time the CPU usage dropped and the fans started slowing. Of course, right after I rebooted, they started back up again. Somewhere in the middle of all that I probably forgot to revert an edit on one of the plist files and thats when it stopped booting to the GUI. Single-user mode was the only way, which required manually mounting my external drives and copying my user folder to it. Booted to my Mavericks USB installer, completely wiped the main drive, installed Mavericks, and upgraded to Yosemite. Then booted to single-user again, and restored my user home folder. From that point, mdworker did its initial indexing, and then dropped down to normal usage. Now the fans only spin up when I am actually doing something like compiling something under MacPorts. Jeff ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Problem with $DISPLAY
One can choose whether one's new filesystem is case-sensitive when one initializes it with Disk Utility. I don't recall when they added case-sensitivity but it was sometime around tiger or leopard. While the C programming language is defined to be case-sensitive, I don't think UNIX enforces that definition. It depends on the filesystem - consider mounting an 8.3 FAT floppy. Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Thu, Oct 16, 2014 at 10:29 PM, Lawrence Velázquez lar...@macports.org wrote: On Oct 16, 2014, at 8:56 PM, Jim Graham spooky1...@gmail.com wrote: And, case-sensitive vs case-insensitive? That debate doesn't apply on Unix systems---it's always case-sensitive. If I create two directories, foo and Foo, they are different directories, and I know, from decades of working with various Unix systems, that I am perfectly safe if I do a rm -rf on one, as it will NOT touch the other. The same goes for files. This is demonstrably false. I don't know whether the classic UFS was case-sensitive, but the HFS+ that every Mac comes pre-formatted with is most decidedly case-insensitive. % mkdir foo % mkdir Foo mkdir: Foo: File exists % stat foo 16777217 50608286 drwxr-xr-x 2 larryv staff 0 68 Oct 17 01:23:10 2014 Oct 17 01:23:10 2014 Oct 17 01:23:10 2014 Oct 17 01:23:10 2014 4096 0 0 foo % stat Foo 16777217 50608286 drwxr-xr-x 2 larryv staff 0 68 Oct 17 01:23:10 2014 Oct 17 01:23:10 2014 Oct 17 01:23:10 2014 Oct 17 01:23:10 2014 4096 0 0 Foo % rmdir Foo % rmdir foo rmdir: foo: No such file or directory % vq ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Problem with $DISPLAY
X11 goes back to way before Mac OS X, as well as long before Linux. I first built X11 on SunOS (not Solaris) in 1989, on a workstation that was running Sunview. I still own a copy of Mac X (or some such) that ran on System 7. I've never read the X11 spec but my understanding is that it only defines the wire protocol - that is, what is expected from the network connection. XLib is built _on_ _top_ of the network protocol, but isn't defined by it. When I was working on MacTCP QA in 1990, there was some discussion of building a native Mac OS alternative to the UNIX XLib, but this wasn't pursued. Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Mon, Oct 13, 2014 at 1:11 PM, Clemens Lang c...@macports.org wrote: Hi, please take your conversation off-list. We don't want to be on Lennart's next list of hostile open source projects. -- Clemens Lang (I admit, I couldn't resist that one. But please, go arguing elsewhere.) ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Why I Run Old System Software
(On the thread about the bash function problem, someone asked why the fellow runs such an old version of OS X.) I myself generally delay upgrading the system software on any platform I am developing for, so as to ensure that the code I write runs well on old systems. This so I won't be requiring my users to upgrade their own operating systems to run my code. That's not the way it's commonly practiced in commercial software development. Apple wants to move iDevices, so Apple does everything in its power to get third-party developers to write products that only run on the latest platforms. I find that practice _profoundly_ offensive. My Mom spent a lot of money for her Tiger G4 iMac back in 2002 or so. To this day it is in mint condition, there is nothing whatsoever wrong with it, however she has increasing annoyances such as, for example, SSL certs going past her expiry so that she's peppered with warnings about insecure websites. There's really no good reason that updated certs could not be installed, but were apple to provide those certs, then she wouldn't be purchasing an Intel Core iMac. Mike Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Fri, Oct 10, 2014 at 7:06 PM, Brandon Allbery allber...@gmail.com wrote: On Fri, Oct 10, 2014 at 6:45 PM, Greg Earle ea...@isolar.dyndns.org wrote: Personally I wouldn't replace Apple's bash/sh with MacPorts' versions. I did suggest building it himself first, with copying MacPorts' bash as a fallback. I even provided a caveat as to why it might not be a good idea. -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Why I Run Old System Software
I found quite a serious security problem on Mom's Tiger G4 iMac, something I cannot fix myself because I can't get the source and Apple hasn't updated Tiger in years. My memory is hazy but I think it was a problem in Safari. I will look it up I posted it online somewhere. My plan is to upgrade her to 10.5.x - is that Leopard? Does 10.6 run on a G4 iMac? I myself could replace all those expired SSL certs but it would be a huge PITA. Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Fri, Oct 10, 2014 at 8:17 PM, Lawrence Velázquez lar...@macports.org wrote: On Oct 10, 2014, at 10:59 PM, Dave Horsfall d...@horsfall.org wrote: Which brings me to security in general (and I'm a security freak). Are the fixes for Mavericks also available for Snow Leopard? No. Snow Leopard no longer receives updates of any sort, and Lion will likely follow as soon as Yosemite drops. http://support.apple.com/kb/HT1222 vq ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Why I Run Old System Software
I installed Mavericks just a few days ago because Xcode 6.0.1 requires it. I installed Xcode 6.0.1 because I need to know how to work with it, as well as to develop for iOS, just to get a job as an iOS App developer. I don't have a problem with learning to use the latest tools. What I don't understand was why Xcode refused even to launch under OS X 10.8.x. That's Just Asinine. Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Fri, Oct 10, 2014 at 10:52 PM, Dave Horsfall d...@horsfall.org wrote: On Sat, 11 Oct 2014, C.T. wrote: I quite agree with you Mike on this one. My main machine is still Snow Leopard, and while I am not a developper, I just couldn't replicate the perfect balance it struck between user-friendliness and underlying power and compatibility. I went to Mavericks because I needed some 3rd-party applications such as a decent QR-code reader (there's one for Snow Leopard but it's a bit primitive) and iStat (won't run properly on Snow Leopard), security fixes, etc. It's also much nicer all around. My only gripe is that the calendar Reminders function got hived off into its own application. -- Dave ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: /bin/sh: line 2: `BASH_FUNC_ttr%%': not a valid identifier
GNU Emacs is bundled with Mac OS X, if you need an editor until you can fix whatever is wrong with Vim. If you don't know how to use Emacs, enter Control-H T after giving the command: $ emacs ... in Terminal to get the tutorial. I mostly use Vim too but there _are_ some tasks that are easier in Emacs. Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Thu, Oct 9, 2014 at 9:25 AM, Barrie Stott zen146...@zen.co.uk wrote: This is the sequence of events that led to me getting the error in the Subject line. I had used MacVim on the previous day with no problem and had used mail and Skype today and the iMac was left switched on with several tabs open in the browser and files open in MacVim. Unrelated to the computer I removed power to the house to get some lights working again, forgetting that the m/c was still on. On returning to the iMac I found it switched off and restored Finder, Google Chrome, Mail and Terminal without problem. On trying to get MacVim going I typed something like 'mvim file1 file' in a terminal and the error message in the Subject line appeared. If anyone can tell me what is wrong or suggest how I can proceed I'd be pleased to hear about it. I was going to modify a copy of mvim by adding print statements but I'd need an editor for that and that is what I don't have at present. Barrie. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: /bin/sh: line 2: `BASH_FUNC_ttr%%': not a valid identifier
Try commenting off portions of your .bashrc by inserting # with Emacs to see if you can make the complaint go away. Alternatively, save a copy of your file as a backup, then just delete portions to see if you can eliminate the complaint. When the complaint goes away, try putting in just half of what you had last taken out, followed by - possibly the other half. This is known as bisecting a bug. It does not always work but when it does it can be a very powerful technique, because the actual source of the complaint may be in some other code that you do not yet have any reason to suspect. Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Thu, Oct 9, 2014 at 1:06 PM, Barrie Stott zen146...@zen.co.uk wrote: On 9 Oct 2014, at 19:30, Brandon Allbery wrote: On Thu, Oct 9, 2014 at 12:25 PM, Barrie Stott zen146...@zen.co.uk wrote: This is the sequence of events that led to me getting the error in the Subject line. Check your .bash_profile / .bashrc; you appear to be defining a function named ttr%%, which is an illegal function name. -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net In ~/.bashrc I define the following which gives the only area in the file where 'ttr' is mentioned: alias ttrr='echo 2012: Apr 28: May 26: Jun 30: Sep 29: Oct 27: Dec 1' function ttr() { d=Jan 25: Feb 22: Mar 29: Apr 26: May 31: Jun 28: Sep 27: Oct 25: Dec 6 echo 2014: $d } export -f ttr That was the first place I looked when I saw 'ttr' in the error message. I have defined no 'ttr%%' function though and I don't know enough about Bash to know how to get from 'ttr' to either 'ttr%%' or 'BASH_FUNC_ttr%%. If you or anyone else knows how to make a connection between 'ttr' and 'ttr%%' please let me know. Barrie. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: /bin/sh: line 2: `BASH_FUNC_ttr%%': not a valid identifier
On Thu, Oct 9, 2014 at 12:51 PM, Barrie Stott zen146...@zen.co.uk wrote: GNU Emacs is bundled with Mac OS X, if you need an editor until you can fix whatever is wrong with Vim. Thank you for that. I was wondering how I could proceed if no one had met my error message before. Kids these days! Back when I was but a lad, when TECO broke down I took apart the fourteen-inch SMD drive with a screwdriver then edited my files with a needle ripped out of my Boy Scout compass. I'll send you my bill in the mail. :-D Mike ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
MariaDB won't start
I can't get online with the machine I'm trying to use MariaDB on, so I won't quote the full text of the messages. But if you need me to I can transfer them on a stick. $ port info mariadb mariadb @5.5.34_1 Mac OS X 10.8.4 on a Retina Display MacBook Pro, Early 2013, Model Identifier MacBookPro10,1. mysqld_safe indicates a successful startup, but ps -ef | grep doesn't find any processes with mysql or maria in their names. There is only one zero-length file in /opt/local/var/log/mariadb, rather curiously named something like .turd_mariadb_server. No actual log text. I found a post advising the check the ownership and groups on the log and some other directories were both _mysql. They are. If I have to put my MariaDB Mac back on the line, it will need to wait until tomorrow when I can go to a wifi spot. But I'm in no real hurry. I just want to learn SQL out of a book, and need MariaDB to do the exercises. Thanks for any help you can give me. Mike -- Michael David Crawford mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Mobile Development in the Portland, Oregon Metropolitan Area. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
libcanberra build blocks gnucash-docs install
libcanberra won't build. I got the same result when I try to build it: http://trac.macports.org/ticket/19705 It's a dependency for gnucash-docs. But port install gnucash-docs wants to install a boatload of dependencies, such as libogg and libvorbis, that I suspect I don't really need just to browse the gnucash documentation. Is there a way I can get just the doc to install without needing to also install all these dependencies? Thanks! Mike -- Michael David Crawford mdcrawford at gmail dot com GoingWare's Bag of Programming Tricks http://www.goingware.com/tips/ ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: MacPorts and x86_64?
It's likely that some software either won't build as 64-bit, or if it builds it won't work right. It's not in MacPorts (yet), but ZooLib won't build as 64-bit, because it has a header file that sets up macros to identity the target platform and processor, and we just haven't implemented 64-bit builds yet. I don't think the code itself would have any problems with 64-bit, bit if you try to compile it that way, the header gives you a #error. (http://www.zoolib.org/) If there are any such programs in MacPorts, you'll need to identify them and restrict their builds to 32-bit until they can be updated. (I would be happy to maintain a ZooLib port for MacPorts, but not quite yet.) Mike -- Michael David Crawford mdcrawford at gmail dot com GoingWare's Bag of Programming Tricks http://www.goingware.com/tips/ ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: How does Macport work?
On Wed, Jun 10, 2009 at 4:06 PM, Fon Vitalefonvit...@gmail.com wrote: Coming back whit the C compiler example, if Macports installs the compiler when I run it what compiler is being running: Macports installed or prior Macports one? That depends on the value of your PATH environment variable. Give the following command in the Terminal: echo $PATH You'll see a list of directories. If /opt/local comes before /usr/bin, then the MacPorts version will be run; otherwise the previously installed one will be run. You can also do: which gcc ... and it will give you the pathname of the gcc that will actually be run if you simply give the gcc command. Which does its work by examining each of the directories in your PATH. If you're not hip to PATH and other environment variables, try the following Google search: UNIX shell tutorial There's lots of good ones, and if you're going to be working with the command line on Mac OS X, you would do well to read one or two. Mike \ -- Michael David Crawford mdcrawford at gmail dot com GoingWare's Bag of Programming Tricks http://www.goingware.com/tips/ ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: Native Quartz version of gnucash
On Wed, May 20, 2009 at 6:18 PM, cory steers madst...@gmail.com wrote: port clean goffice port install goffice let it fail apply patch port install goffice I had overlooked the patch. After I did just the above, my build of gnucash completed successfully. I haven't done much yet, but I've been planning to move both my personal and business books to GnuCash. Having it on my MacBook Pro will make it much more convenient. Thank You Very Much! I've been trying to run GnuCash on a Mac for several years. This is the first time I've ever had a successful build. Mike -- Michael David Crawford mdcrawford at gmail dot com GoingWare's Bag of Programming Tricks http://www.goingware.com/tips/ ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: Native Quartz version of gnucash
On Tue, May 19, 2009 at 8:46 PM, cory steers madst...@gmail.com wrote: I noticed that I could get a native Quartz version of gnucash as outlined here: http://wiki.gnucash.org/wiki/MacOSX/MacPortsDetail#Using_MacPorts_to_install_the_native_Quartz_version_of_GnuCash so I decided to give macports a try. I gave that procedure a try myself, and I got a working GnuCash - but not a Quartz GnuCash. It runs under X11. Just to make sure, I quit my X server, and doing so killed GnuCash. I suspect that some partially-built code from a previous build took precedence over my new configuration. I did do both port uninstall gnucash and port clean gnucash before I tried the install. The build happened quite quickly, just a few minutes, whereas I remember previous attempts took several hours. Short of blowing away my whole /opt directory, is there a way I can guarantee a clean build? That is, I want to clean all the dependencies too, and GnuCash has a lot of them. Here is my /opt/local/etc/macports/variants.conf: +no_static +no_x11 -x11 +quartz I'd be quite stoked if I could get a Quartz build of GnuCash working. I've been just using these giant OpenOffice spreadsheets for all my bookkeeping. They do the job, but leave much to be desired. Mike -- Michael David Crawford mdcrawford at gmail dot com GoingWare's Bag of Programming Tricks http://www.goingware.com/tips/ ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: subversion books ?
On Mar 31, 2009, at 8:13 PM, Ben Greenfield wrote: Plugging books would be right on edge of the line I'm sorry, but I just have to disagree here, and strongly so. I've been a software engineer for twenty-one years. And for all that time, I have always felt that the very-most valuable investments that I ever made were the purchase of good technical books. Most coders might well argue that hardware and software tools were worth more than their books, but I have every reason to believe that I have gotten far more out of the books that I have purchased and read, than from any computer product I have ever purchased. For that reason, I feel that plugging books on a technical mailing list is, far from being on the edge of the line, in reality a valuable service to the community. Mike -- Michael David Crawford mdcrawford at gmail dot com GoingWare's Bag of Programming Tricks http://www.goingware.com/tips/ ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Simple SMTP Relay?
Greetings, Fellow Travelers. I don't have an SMTP server to use, so I can only send mail from GMail and not from Thunderbird. Does MacPorts have a simple SMTP server I could run on my Mac, that would look up the recipient's MX record and deliver my outgoing mail directly to the recipient's mail server? I thought ssmtp might do it, but it's not a daemon but a command-line program for sending individual messages. If MacPorts can't do it, I also have a Fedora 10 box that would be sure to have something I could use, but I'd rather install it on my MacBook Pro so I can send mail while I'm in cafes. Thanks! Mike -- Michael David Crawford mdcrawford at gmail dot com I'm looking for a job in Silicon Valley: http://www.goingware.com/resume/cover-letter.html ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
gnome-doc-utils is missing db2omf
I can't build gnucash because gnome-doc-utils won't build. It won't build because db2omf isn't installed, and I can't figure out which port it should be in. I only started using MacPorts just last night, so I am very much a newbie. How can I find out which port has a given file in it? I thought port provides db2omf would do that, but apparently it only works when a file is already installed. In looking through the bug reports in Trac, I see lots of problems about gnome-doc-utils not building, that were fixed and the tickets closed. Well it looks like it's broken again. I thought maybe installing linuxdoc would give me db2omf, as it was apparently developed for linuxdoc at first, but linuxdoc-1.1.tar.gz fails to download from any of MacPort's mirror servers. Thanks for any help you can give me, Mike -- Michael David Crawford mdcrawford at gmail dot com I'm looking for a job in Silicon Valley: http://www.goingware.com/resume/cover-letter.html ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: gnome-doc-utils is missing db2omf
On Thu, Feb 5, 2009 at 12:59 PM, Michael Crawford mdcrawf...@gmail.com wrote: I can't build gnucash because gnome-doc-utils won't build. It won't build because db2omf isn't installed, and I can't figure out which port it should be in. In hopes that the packages would be the same, I used the package contents search at the Debian website to see where db2omf might be, and it said that it's in gnome-doc-utils! There are two files with that name - this is in Debian now, perhaps it's different in MacPorts: /usr/share/gnome/help/gnome-doc-xslt/C/db2omf.xml /usr/share/xml/gnome/xslt/docbook/omf/db2omf.xsl Note that the first is an XML file and the other is an XSL file. It looks like both the files are present on my Mac, in /opt/local/var/macport/build - in the gnome-doc-util's build directory. Perhaps someone can give me some tips on completing the build manually? Thanks! Mike -- Michael David Crawford mdcrawford at gmail dot com I'm looking for a job in Silicon Valley: http://www.goingware.com/resume/cover-letter.html ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: gnome-doc-utils is missing db2omf - SOLVED
On Thu, Feb 5, 2009 at 12:59 PM, Michael Crawford mdcrawf...@gmail.com wrote: I can't build gnucash because gnome-doc-utils won't build. It won't build because db2omf isn't installed, and I can't figure out which port it should be in. It turns out I was looking at the wrong error message. Here is the right one: Making all in doc Making all in gnome-doc-make Unknown option: n Usage: head [-options] url... That is, the command head -n is being given in the build, but the head command says it doesn't accept a -n argument. This was confusing, because man head said that it does - and I've used the head command for decades. It prints out the beginning of a file, with the number of lines to display being given by the -n argument. Well I finally got around to examining /usr/bin/head, and discovering that it was a Perl script, and not a binary as I expected. And it turns out to be some kind of HTTP utility. There was no head in MacPorts yet, so after again looking it up in the Debian package contents search, I installed the coreutils port. But that installed ghead, not head. Googling for: mac os x /usr/bin/head Turned up the culprit, as explained in Brad Rice's blog: /usr/bin/head and perl lwp http://www.bradrice.com/wposx/archives/95 His blog links to this post by Ken Williams: http://www.macosxhints.com/article.php?story=20010603142727786query=perl+HEAD A Perl CPAN package called LWP tries to install a command called /usr/bin/HEAD - uppercase HEAD, but because HFS+ is by default case-insensitive, it ends up overwriting the lowercase /usr/bin/head. HFS+ preserves filename cases, but you can't have to files with the same spelling in the same directory, even if their cases are different! LWP is some kind of automated HTTP client; I installed it a while back to enable the generation of RSS feeds for my blog, which is just a bunch of static HTML files, rather than being implemented by some kind of web application software. I have a Perl script that downloads my homepage and looks for new blog entries in it, then generates my RSS. I upload the RSS file to my site with scp. Both Brad Rice and Ken Williams recommend getting the /usr/bin/head from your OS X install DVD, but what I did was after installing the coreutils port, I copied /opt/local/bin/ghead to /usr/bin/head. It seems to work fine now. And I got gnome-doc-utils to install! Back to building gnucash. Ever Faithful, Mike -- Michael David Crawford mdcrawford at gmail dot com I'm looking for a job in Silicon Valley: http://www.goingware.com/resume/cover-letter.html ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users