Re: Question on packages and ports (and versions)
Hi, Ah, I see. So if I need a more advanced version of some software, that has been installed as a package, I can use portupgrade (or other port management tools) to upgrade the package to a port. Am I right? Thanks, Antonio (As a newbie I'm somewhat concerned about keeping consistency between package and port versions, but I suppose this is handled by port management tools automagically) 2010/6/10 Erik Trulsson ertr1...@student.uu.se: A package is best seen as simply a pre-compiled port, i.e. packages are built from ports. After it has been installed there is no difference between software installed via ports or software installed via packages. -- Insert your favourite quote here. Erik Trulsson ertr1...@student.uu.se ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Midphase Hosting
On Thursday 10 June 2010 18:30:52 Matthew Seaman wrote: On 10/06/2010 17:12:50, Jerry wrote: On Thu, 10 Jun 2010 15:12:48 +0200 Jonathan McKeown j.mcke...@ru.ac.za articulated: Isn't that called VERP (variable envelope return path)? I agree - the load it would impose isn't worth it. I'm just shocked that midphase care so little about their reputation or the impression this is giving, on one of the more widely-archived mailing lists, of their competence and diligence. I have employed VERP with mailing lists that I controlled. I never noticed any adverse effects. I know of several technical lists like Dovecot that employ it. Obviously, they find it useful. VERP itself is reasonably lightweight, as it modifies the envelope sender address -- something that can be applied during processing by the MTA as part of sending the message. As far as mail delivery goes, that's a very different story -- it goes from one message with tens of thousands of recipients, to tens of thousands of messages each with one recipient. Exactly - you can't batch up all the messages for users at the same domain because they now have different envelope senders. The impact of that on your mail delivery system (and the receiver's SMTP receiving system) depends on whether you have lots of individual subscribers, or several large groups. Having said that, I looked up VERP last night to check that I was right about the extra load, and came across a reference to VERP being the idea of DJB, and being acceptable to qmail users because there's no penalty load - qmail never batches up messages for the same domain, always sending each one individually. Is that true? It seems an odd design decision to me. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Create YOUR own prediction contest and challenge your friends/colleagues!
To view the images, click here ! [http://mailer.makemeweb.net/display.php?M=101419C=4455b2d881a882568d8490dfcc5a99f6S=92L=4N=43] Return to the site [http://www.bloggyfoot.net/nl] Organise a competition with your friends : Bloggyfoot takes care of everything! Hello, It gives us great pleasure to inform you that a new FREE on-line tool has been activated. It will revolutionise prediction competition between friends and/or colleagues! Thanks to Bloggyfoot.net, everyone can create their own sport prediction competition and invite their friends, colleagues, clients, suppliers, and others to play... Bloggyfoot takes care of everything: uploading prediction grids, calculating and updating rankings right after matches...and many other options for you to discover... all in complete privacy! Bloggyfoot.net is totally free. Have fun! The team Click here [http://www.bloggyfoot.net/en] © BLOGGYSPORT 2010 To no longer receive emails from Bloggysport. [http://mailer.makemeweb.net/unsubscribe.php?M=101419C=4455b2d881a882568d8490dfcc5a99f6L=4N=92] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Question on packages and ports (and versions)
On Fri, Jun 11, 2010 at 9:23 AM, Antonio Vieiro anto...@antonioshome.net wrote: Hi, Ah, I see. So if I need a more advanced version of some software, that has been installed as a package, I can use portupgrade (or other port management tools) to upgrade the package to a port. Am I right? The packages are built from the ports tree itself. Therefore if your ports tree matches the one that is used to build the packages exactly you will have no problems. If your ports tree is newer you will have no problems attempting to upgrade using a port. However if you want to use packages after you upgraded via ports and the build cluster has yet to catch up to your version the package may depend on an old version and see to install it. -- Eitan Adler ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: lang/cmucl broken on amd64?
Martin Cracauer wrote: Right now I think there's a general lack of people building CMUCL binaries, BTW. There are recent cmucl binaries built here: http://common-lisp.net/project/cmucl/downloads/snapshots/2009/01/ for freebsd 7 and freebsd 8. I think this is for x86, not x86-64 but they should work, it is not clear for me if cmucl makes use of 64 bits anyways (maxima doesn't). Unfortunately there are not more recent snapshots for freebsd 8 and no freebsd snapshots at all since 2010. In january 2010 there is the comment: The FreeBSD binaries I had uploaded for the snapshot were flawed: I just discovered that I accidentally built them without Unicode support. To avoid confusion, these binaries have been removed. -- Alex Goncharov, 2010-03-30 Being a maxima user i am very attached to cmucl which works very well with maxima (faster than sbcl), and i have in the past compiled cmucl using older cmucl versions, which works quite easily. Here i am afraid that Alex Goncharov has encountered some problem, and also that Darwin, Linux and NetBSD support were considered more important ... -- Michel TALON ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
MPCUSTOMER: Possible culprit
Just posted on the GNUPG mail forum: quote The culprit was supp...@resell.biz - I unsubscribed this address and banned it from further subscriptions /quote Evidently, they were able to find who how compromised their mail system. -- Jerry freebsd.u...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ Mark's Dental-Chair Discovery: Dentists are incapable of asking questions that require a simple yes or no answer. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
resize freebsd slice
hello, in my machine i have gentoo and freebsd installed. i was using gentoo until i installed successfully FBSD,now i want to make my FBSD slice bigger.. i have 4 slices: ad0s1-gentoo ad0s2-linux swap ad0s3-free space (no type) ad0s4-FBSD ad0s4a-/ ad0s4b-FBSD swap ad0s4c-/home how can i make my ad0s4a and ad0s4c slices bigger? P.S.: i want to take space from ad0s3 thanks in advance ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: resize freebsd slice
El día Friday, June 11, 2010 a las 11:30:00AM -0200, Giorgos Tsiapaliokas escribió: hello, in my machine i have gentoo and freebsd installed. i was using gentoo until i installed successfully FBSD,now i want to make my FBSD slice bigger.. i have 4 slices: ad0s1-gentoo ad0s2-linux swap ad0s3-free space (no type) ad0s4-FBSD ad0s4a-/ ad0s4b-FBSD swap ad0s4c-/home how can i make my ad0s4a and ad0s4c slices bigger? The only way is making a DUMP to some other device (like USB) or to some other machine in the network, boot from DVD an rescue system, re-slice/re-size ad0s4 and RESTORE the dumps. P.S.: i want to take space from ad0s3 You may use the entire ad0s3 or slice it with sysinstall, make file system(s) and mount them onto your existing system. HIH matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e g...@unixarea.de - w http://www.unixarea.de/ Solidarity with the zionistic pirates of Israel? Not in my name! ¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: resize freebsd slice
2010-06-11 15:30, Giorgos Tsiapaliokas skrev: hello, in my machine i have gentoo and freebsd installed. i was using gentoo until i installed successfully FBSD,now i want to make my FBSD slice bigger.. i have 4 slices: ad0s1-gentoo ad0s2-linux swap ad0s3-free space (no type) ad0s4-FBSD ad0s4a-/ ad0s4b-FBSD swap ad0s4c-/home how can i make my ad0s4a and ad0s4c slices bigger? P.S.: i want to take space from ad0s3 thanks in advance ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Firstly, ad0s4 is slice. ad0s4a and ad0s4c are not slices, but partitions within the ad0s4 slice. Secondly, the c partition of ANY slice is expected to cover the entire slice, i.e. NOT be used for a file system. Perhaps it is possible to do so, but it is not recommended. For historical reasons, I've been told, and that history goes farther back than my *nix experience, and I never researched it further. Perhaps someone else can enlighten us. With that in mind, if I were you, I'd backup the / and /home partitions, delete the s4 slice and make the s3 slice cover the combined space of the current s3 and s4 slices (using either fdisk directly or sysinstall's interactive frontend to fdisk) without touching s1 and s2, and then partition the new s3 like this. ad0s3a -- / ad0s3b -- swap ad0s3d -- /home To make backups, just boot into single user and do not mount / rw. You'll need some extra storage, e.g. a USB disk, to store the backup. To do the reslicing, repartitioning and restoring the backups, you'll need to boot from some other medium, e.g. the LiveFS CD. When making and restoring the backups, you may also need to have a writable /tmp directory. You can accomplish this by mdmfs -M -S -s 20m md /tmp which will give you a 20 MB filesystem stored in RAM with soft-updates disabled. That should be sufficient. This is how I would do it. Perhaps someone else has a better, simpler approach. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE:resize freebsd slice
thanks for the information but the point is that i don't know how to merge s4 and s3 with sysinstall. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: resize freebsd slice
On Fri, Jun 11, 2010 at 07:17:23PM +0300, Giorgos Tsiapaliokas wrote: thanks for the information but the point is that i don't know how to merge s4 and s3 with sysinstall. You just delete those two slices and then make a new s3 that contains all the space of both. jerry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE:resize freebsd slice
ok,but if i delete this 2 slices then i will delete my entire system.. then should i have to install it from the beggining,but i don't want to do that. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
error with linux-f10-flashplugin10
hello, while i am trying to install the port flashplugin i came up with this error. fetch: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz: size mismatch: expected 4050435, actual 4760657 fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/flashplugin/10.0r45/install_flash_player_10_linux.tar.gz: File unavailable (e.g., file not found, no access) i have tryed to install it as a package but it failed too. thanks in advance ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Problems with textproc/iso8879 port?
Hi all, I'm trying to install port iso8879 in 8.0-RELEASE (needed by docbook and by gnome and wxgtk28) and I'm getting the problem below. I contacted the maintainer without success. Any ideas, anyone? Thanks in advance, Antonio [r...@casa /usr/ports/textproc/iso8879]# make === Vulnerability check disabled, database not found === License check disabled, port has not defined LICENSE === Extracting for iso8879-1986_2 = MD5 Checksum OK for isoENTS.zip. = SHA256 Checksum OK for isoENTS.zip. === Patching for iso8879-1986_2 === iso8879-1986_2 depends on executable: unzip - found === Configuring for iso8879-1986_2 [r...@casa /usr/ports/textproc/iso8879]# make install === Installing for iso8879-1986_2 === iso8879-1986_2 depends on file: /usr/local/bin/xmlcatmgr - found === Generating temporary packing list === Checking if textproc/iso8879 already installed Archive: /usr/ports/distfiles/isoENTS.zip caution: filename not matched: -d caution: filename not matched: /usr/local/share/sgml/iso8879 *** Error code 11 If I remove the file in /usr/ports/distfiles/isoENTS.zip and try again the build fails too: [r...@casa /usr/ports/textproc/iso8879]# make install === Vulnerability check disabled, database not found === License check disabled, port has not defined LICENSE = isoENTS.zip doesn't seem to exist in /usr/ports/distfiles/. = Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/kuriyama/. isoENTS.zip 100% of 20 kB 25 kBps === Extracting for iso8879-1986_2 = MD5 Checksum OK for isoENTS.zip. = SHA256 Checksum OK for isoENTS.zip. === Patching for iso8879-1986_2 === iso8879-1986_2 depends on executable: unzip - found === Configuring for iso8879-1986_2 === Installing for iso8879-1986_2 === iso8879-1986_2 depends on file: /usr/local/bin/xmlcatmgr - found === Generating temporary packing list === Checking if textproc/iso8879 already installed Archive: /usr/ports/distfiles/isoENTS.zip caution: filename not matched: -d caution: filename not matched: /usr/local/share/sgml/iso8879 *** Error code 11 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problems with textproc/iso8879 port?
On Fri, 11 Jun 2010 20:02:47 +0200 Antonio Vieiro anto...@antonioshome.net wrote: I'm trying to install port iso8879 in 8.0-RELEASE (needed by docbook and by gnome and wxgtk28) and I'm getting the problem below. I contacted the maintainer without success. Any ideas, anyone? === Checking if textproc/iso8879 already installed Archive: /usr/ports/distfiles/isoENTS.zip caution: filename not matched: -d caution: filename not matched: /usr/local/share/sgml/iso8879 *** Error code 11 If I remove the file in /usr/ports/distfiles/isoENTS.zip and try again the build fails too: It looks like a problem with the zip command in textproc/iso8879/Makefile: @${UNZIP_CMD} -q -o ${DISTDIR}/${DISTFILES} -d ${INSTDIR} I don't know what the solution is, but http://installingcats.com/2008/05/23/caution-filename-not-matched-unzipping-multiple-files/ explains what the error means. -- Bruce Cran ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: resize freebsd slice
2010-06-11 19:17, Giorgos Tsiapaliokas skrev: ok,but if i delete this 2 slices then i will delete my entire system.. then should i have to install it from the beggining,but i don't want to do that. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Read my previous description of how I would have approached the problem, and the answers shall come to you... In case you don't know how to back up data, read the dump(8) and restore(8) man pages. If you don't have access to any external space, e.g. a USB disk or network access to sufficient storage space, you may need to consider backing up only the important files from the /home partition and personalised config files from /etc and /usr/local/etc to a DVD, reinstall the system from scratch (the installation program lets you delete the s3 and s4 slices and create a new, bigger s3 slice), and then restore the backed up files. If you don't even have a DVD recorder, try accessing the Linux slice. I've never used it myself, but FreeBSD should be able to access ext* file systems, and store the backup there. Do this BEFORE reinstalling. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problems with textproc/iso8879 port?
In the last episode (Jun 11), Bruce Cran said: On Fri, 11 Jun 2010 20:02:47 +0200 Antonio Vieiro anto...@antonioshome.net wrote: I'm trying to install port iso8879 in 8.0-RELEASE (needed by docbook and by gnome and wxgtk28) and I'm getting the problem below. I contacted the maintainer without success. Any ideas, anyone? === Checking if textproc/iso8879 already installed Archive: /usr/ports/distfiles/isoENTS.zip caution: filename not matched: -d caution: filename not matched: /usr/local/share/sgml/iso8879 *** Error code 11 If I remove the file in /usr/ports/distfiles/isoENTS.zip and try again the build fails too: It looks like a problem with the zip command in textproc/iso8879/Makefile: @${UNZIP_CMD} -q -o ${DISTDIR}/${DISTFILES} -d ${INSTDIR} The -d option to unzip is dangerous imho, since it's in the wrong location (at the end of the comamndline, after everything else). Safer to use cd ${INSTDIR} ${UNZIP_CMD} -q -o ${DISTDIR}/${DISTFILES} -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problems with textproc/iso8879 port?
On 11/06/10 20:34, Dan Nelson wrote: If I remove the file in /usr/ports/distfiles/isoENTS.zip and try again the build fails too: It looks like a problem with the zip command in textproc/iso8879/Makefile: @${UNZIP_CMD} -q -o ${DISTDIR}/${DISTFILES} -d ${INSTDIR} The -d option to unzip is dangerous imho, since it's in the wrong location (at the end of the comamndline, after everything else). Safer to use cd ${INSTDIR} ${UNZIP_CMD} -q -o ${DISTDIR}/${DISTFILES} Thanks all for this. I got it working (docbook is being installed as I write this and yes, I'm using the new parallel make on a QuadCore and things fly indeed [1] ). As I'm still a FreeBSD newbie I don't dare to write a patch for this yet. (I still have to learn what ${EXTRACT_BEFORE_ARGS} means in that makefile, for instance). I'm a little bit overwhelmed with FreeBSD documentation. I've just found the FreeBSD Porter's Handbook. I think I should read that first. Thanks again, Antonio [1] Excerpt from top -P while running make... CPU 0: 75.3% user, 0.0% nice, 12.0% system, 0.0% interrupt, 12.7% idle CPU 1: 77.9% user, 0.0% nice, 9.4% system, 0.0% interrupt, 12.7% idle CPU 2: 85.0% user, 0.0% nice, 10.5% system, 0.0% interrupt, 4.5% idle CPU 3: 93.6% user, 0.0% nice, 4.9% system, 0.0% interrupt, 1.5% idle I just love that! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
threads and malloc/free on freebsd 8.0
Greetings. I have a thread socket application that seems to be behaving strangely In a worker thread, I have the following. CODE--- LogMessage(DEBUG_0, allocated %ld, malloc_usable_size(inst)); free(inst); LogMessage(DEBUG_0, after free allocated %ld, malloc_usable_size(inst)); free(inst); return 0; ---/CODE output allocated 2304 output after free allocated 2304 from playing around, this should have segfaulted but it didn't: if I try this from a non threaded, non socket code: CODE-- char *z; z = (char*)malloc(1000); printf(malloc is %ld\n, malloc_usable_size(z)); free(z); printf(after malloc is %ld\n, malloc_usable_size(z)); --/CODE Output malloc is 1024 Output Segmentation fault (core dumped) Can anyone enlighten me ? why did the 2nd free not cause a segmentation fault ? If im not clear, please forgive me. Please note: This email and its content are subject to the disclaimer as displayed at the following link http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. Should you not have Web access, send a mail to disclaim...@is.co.za and a copy will be emailed to you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Midphase Hosting
On Fri, 11 Jun 2010 09:04:21 +0200, Jonathan McKeown j.mcke...@ru.ac.za said: J I looked up VERP last night to check that I was right about the extra J load, and came across a reference to VERP being the idea of DJB, and J being acceptable to qmail users because there's no penalty load - qmail J never batches up messages for the same domain, always sending each one J individually. Is that true? It seems an odd design decision to me. That decision has been the subject of countless arguments. Here's the rationale, according to The Qmail Handbook. You have these basic choices when sending a message to three users on the same host: 1. Open an SMTP connection to the server, send a copy to user1, another copy to user2, the last to user3, close the connection. 2. Start three processes. Each one opens an SMTP connection, sends a copy to one user, and closes. 3. Open an SMTP connection to the server, send one copy addressed to all three recipients, close the connection. (1) is the worst; if the message is small, it takes at least as much time as (3). If the message is huge, it takes a lot longer and wastes bandwidth. (3) is most efficient in terms of network bandwidth. (2) is what qmail uses. It wastes bandwidth but allows SMTP round-trip delays to occur in parallel, so it's usually faster than (3). It's simpler than (3) so the MTA code is easier to write and verify. Finally, you can use VERP because each user gets their own copy. There are pathological cases where it's slower than (3), but VERP allows bad bounces to be handled automatically, and this plus the code simplicity was considered more important. The bandwidth difference was often exaggerated because: a. most messages have multiple recipients *on separate hosts*, so (3) would not be possible in the first place, and b. SMTP usually takes up a small fraction of the bandwidth on a given host compared to (say) HTTP. If SMTP takes 10% of your bandwidth and you can save 25% of that by using method (3), now it will take 7.5%. -- Karl Vogel I don't speak for the USAF or my company Freedom is the right to tell people what they don't want to hear. --George Orwell ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Anyone aware of dahdi port not working?
It does not compile in FBSD 7 either. I had to to settle for Asterisk 1.4 On Thu, Jun 10, 2010 at 3:08 PM, jay west jw...@ezwind.net wrote: I emailed the maintainer but got no response. Fresh install of FreeBSD 8.0-Release and a port collection from around 6/5/10. Did a make on the dahdi-2.3.0rc2 port, but it fails. I can provide details, but was wondering if it was something on my machine or if others have noticed this and are aware of it? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: threads and malloc/free on freebsd 8.0
In the last episode (Jun 11), Vikash Badal said: I have a thread socket application that seems to be behaving strangely In a worker thread, I have the following. CODE--- LogMessage(DEBUG_0, allocated %ld, malloc_usable_size(inst)); free(inst); LogMessage(DEBUG_0, after free allocated %ld, malloc_usable_size(inst)); free(inst); return 0; ---/CODE output allocated 2304 output after free allocated 2304 from playing around, this should have segfaulted but it didn't: if I try this from a non threaded, non socket code: CODE-- char *z; z = (char*)malloc(1000); printf(malloc is %ld\n, malloc_usable_size(z)); free(z); printf(after malloc is %ld\n, malloc_usable_size(z)); --/CODE Output malloc is 1024 Output Segmentation fault (core dumped) Can anyone enlighten me ? why did the 2nd free not cause a segmentation fault ? You asked this same question on May 24: http://lists.freebsd.org/pipermail/freebsd-questions/2010-May/216652.html The answer is still the same: You're invoking undefined behaviour here by calling malloc_usable_size on a free'd pointer. The function is free to crash, return useful data, or return useless data, at its discretion :) The fix is to remove your second call to malloc_usable_size(z)). Then neither version will crash. Also, a useful habit to start is to explicitly zero the pointer you just free'd, to prevent it from being used accidentally later. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: threads and malloc/free on freebsd 8.0
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- questi...@freebsd.org] On Behalf Of Dan Nelson Sent: 11 June 2010 09:56 PM To: Vikash Badal Cc: freebsd-questions@freebsd.org Subject: Re: threads and malloc/free on freebsd 8.0 The fix is to remove your second call to malloc_usable_size(z)). Then neither version will crash. Also, a useful habit to start is to explicitly zero the pointer you just free'd, to prevent it from being used accidentally later. Made this change: CODE--- LogMessage(DEBUG_0, allocated %ld, malloc_usable_size(inst)); free(inst); free(inst); return 0; ---/CODE Still no seg fault. The reason im am doing this is that from top I can see the memory grow as I connect to this app. When I disconnect, the memory used ( as displayed from top ) does not decrease. I tried: CODE- char *chunk; chunk = (char*) malloc(120); sleep(30); free(chunk) sleep(30); free(inst); free(inst); --/CODE Top show the memory for the chunk section increase and then decrease when freed However, the when I leave the worker thread ( close the connection ), the memory usage does not decrease. The more connections I open and close, the faster the memory grows. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions- unsubscr...@freebsd.org Please note: This email and its content are subject to the disclaimer as displayed at the following link http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. Should you not have Web access, send a mail to disclaim...@is.co.za and a copy will be emailed to you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: lang/cmucl broken on amd64?
Michel Talon wrote on Fri, Jun 11, 2010 at 11:34:33AM +0200: Martin Cracauer wrote: Right now I think there's a general lack of people building CMUCL binaries, BTW. There are recent cmucl binaries built here: http://common-lisp.net/project/cmucl/downloads/snapshots/2009/01/ for freebsd 7 and freebsd 8. I think this is for x86, not x86-64 but they should work, it is not clear for me if cmucl makes use of 64 bits anyways (maxima doesn't). There has never been a 64 bit port of CMUCL. There is a partial port for amd64 by Ed Wang, but it never got finished. Unfortunately there are not more recent snapshots for freebsd 8 and no freebsd snapshots at all since 2010. In january 2010 there is the comment: The FreeBSD binaries I had uploaded for the snapshot were flawed: I just discovered that I accidentally built them without Unicode support. To avoid confusion, these binaries have been removed. -- Alex Goncharov, 2010-03-30 Alex has retired from making CMUCL for FreeBSD snapshots. I volunteered to take over but real life got in the way. I don't have any 32 bit FreeBSD installations left in my home farm. So to build the 32 bit binaries for various FreeBSD versions I probably need to install a bunch of chroots, which then need the usual enter-chroot customization blues. I didn't do that yet. Being a maxima user i am very attached to cmucl which works very well with maxima (faster than sbcl), and i have in the past compiled cmucl using older cmucl versions, which works quite easily. Here i am afraid that Alex Goncharov has encountered some problem, and also that Darwin, Linux and NetBSD support were considered more important ... I'll see whether I can get my behind in gear and get this going this weekend. Interesting you have lower performance in SBCL. Are you comparing a 64 bit SBCL with a 32 bit CMUCL? Is your SBCL binary (whichever bitcount) compiled with thread support? Martin -- %%% Martin Cracauer craca...@cons.org http://www.cons.org/cracauer/ FreeBSD - where you want to go, today. http://www.freebsd.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: threads and malloc/free on freebsd 8.0
In the last episode (Jun 11), Vikash Badal said: -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- The fix is to remove your second call to malloc_usable_size(z)). Then neither version will crash. Also, a useful habit to start is to explicitly zero the pointer you just free'd, to prevent it from being used accidentally later. Made this change: CODE--- LogMessage(DEBUG_0, allocated %ld, malloc_usable_size(inst)); free(inst); free(inst); return 0; ---/CODE Still no seg fault. The reason im am doing this is that from top I can see the memory grow as I connect to this app. When I disconnect, the memory used ( as displayed from top ) does not decrease. For performance reasons, the malloc library may not immediately release free memory back to the OS. Also, depending on the position of the memory block being freed, it may not be releasable back to the OS (if malloc used sbrk for allocations, it can only free memory at the far end of the address space, for example). Setting the environment variable MALLOC_OPTIONS to dM10f might help (disable use of sbrk(), enable use of mmap(), don't cache any free pages), but you still may not see any change according to top. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: error with linux-f10-flashplugin10
Giorgos Tsiapaliokas terie...@gmail.com writes: while i am trying to install the port flashplugin i came up with this error. fetch: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz: size mismatch: expected 4050435, actual 4760657 fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/flashplugin/10.0r45/install_flash_player_10_linux.tar.gz: File unavailable (e.g., file not found, no access) Looks like they re-rolled the tarball but kept the same name. The port will need to be updated. In the meantime, you can try downloading the new tarball and using that with the port. You will need to update the size and checksums in the makefile (make makesum will do that, if I recall correctly, but you can check in man ports to be sure). i have tryed to install it as a package but it failed too. Right. There are no packages of it; we're not allowed to distribute it. Which also explains why the file isn't available from our own master ftp site, either. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: lang/cmucl broken on amd64?
Martin Cracauer wrote: Interesting you have lower performance in SBCL. Are you comparing a 64 bit SBCL with a 32 bit CMUCL? Is your SBCL binary (whichever bitcount) compiled with thread support? I have a 32 bits machine, and i was using the FreeBSD sbcl port without changing any compiling option. It is sufficient to run a number of maxima examples (*) to see that they run frequently faster with cmucl (gcl was also similarly speedy) than with sbcl (sometimes considerably faster). I think having seen similar assertions in maxima mailing list. (*) for example this computation is appropriate http://maxima.sourceforge.net/docs/manual/en/maxima_54.html#SEC233 batch(grobner.demo) Another thing to consider is that the cmucl compiler is now able to emit sse2 instructions, and this gives a quite substantial gain in numeric computations under maxima, an example being eigens_by_jacobi on a large matrix, which gets a considerable speed boost. -- Michel TALON ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
mpcustomer.com issue
All, My name is Marc Bollinger, Director of Development of UK2 Group. I've recently got word of an annoying problem where our CRM (mpcustomer.com) is sending out auto-responders to this list. I subscribed to this list so I can reproduce the problem and help me track it down. Terribly sorry for the problems with this, I can appreciate how annoying it is. We'll get this knocked out as soon as possible. Best, Marc ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: resize freebsd slice
On Fri, Jun 11, 2010 at 08:17:14PM +0300, Giorgos Tsiapaliokas wrote: ok,but if i delete this 2 slices then i will delete my entire system.. That is why some of the other respondents said you must first create a good dump(8) of those two slices (or at least the one with stuff in it).You don't have to touch the two other slices. There is nothing that will expand a live slice that I know of. I know there is in the MS world, but it is a different situation. then should i have to install it from the beggining,but i don't want to do that. Although I would advise taking a dump(8) of everything with data before starting, since those two slices appear to be adjacent, you should be able to do the operation without affecting the other two slices. But, the two you work on will definitely be affected. You will need to dump and then reload the data.. jerry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: mpcustomer.com issue
On Fri, Jun 11, 2010 at 5:05 PM, Marc Bollinger m...@vps.net wrote: All, My name is Marc Bollinger, Director of Development of UK2 Group. I've recently got word of an annoying problem where our CRM (mpcustomer.com) is sending out auto-responders to this list. I subscribed to this list so I can reproduce the problem and help me track it down. Terribly sorry for the problems with this, I can appreciate how annoying it is. We'll get this knocked out as soon as possible. Best, Marc THANKS! It is really annoying!!! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE:resize freebsd slice
i read the manuals about dump,but they say that if i take a back up of my / then dump will not make a backup for /home and /usr. my /home directory is empty but i need the /usr directory. what should i do? can you help me with the syntax of the dump command? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE:error with linux-f10-flashplugin10
thanks for helping me..:) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: mpcustomer.com issue
Marc == Marc Bollinger m...@vps.net writes: Marc We'll get this knocked out as soon as possible. I suspect you *already* have your evidence, thanks to the fact that you posted here just now. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: resize freebsd slice
On Sat, 12 Jun 2010 01:00:57 +0300, Giorgos Tsiapaliokas terie...@gmail.com wrote: i read the manuals about dump,but they say that if i take a back up of my / then dump will not make a backup for /home and /usr. my /home directory is empty but i need the /usr directory. what should i do? can you help me with the syntax of the dump command? The dump command operates partition-wise. The common method of using it is # dump -0Lauf dumpfile partition The dumpfile can be on a removable media or on a network drive, it can also be a tape. In order to find out what to dump, see the output of mount. It shows the partitions you can dump, and in most cases, you will dump all of them except the swap partition (which doesn't show up in mount output anyway. So, for example, you can do: # dump -0Lauf /mnt/ /dev/ad0s1a # dump -0Lauf /mnt/ /dev/ad0s1d where your dump media is mounted in /mnt. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: resize freebsd slice
On Sat, Jun 12, 2010 at 01:00:57AM +0300, Giorgos Tsiapaliokas wrote: i read the manuals about dump,but they say that if i take a back up of my / then dump will not make a backup for /home and /usr. my /home directory is empty but i need the /usr directory. what should i do? dump works on file systems, not individual files or directories. if home is something mounted separately, then you run a dump for that. Same for /usr. If /usr is just a directory under root (/) and not a separate file system, then taking a dump of / will get /usr. I don't have a list of your mounted filesystems. jerry can you help me with the syntax of the dump command? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Areca RAID Failure?
This isn't specifically freebsd related but I'm fishing to see if anyone has observered similar behavior from and Areca raid controller before. We're already in touch with their support... Last night a disk failed on a 7 disk raid-6 array on a ARC-1220 with 1TB WD REmumble disks. This is certainly normal enough, except that rather than taking the normal ~30 hours to rebuild array after a failure it appears to have added the spare disk directly into the array and started servicing reads from it without rebuilding it from parity! This obviously seriously scrambled the filesystem on it and sorta defeats the whole point of H/W raid in the first place. XFS recovered well enough, but most files are large enough to span a stripe and are corrupted for it. It's currently running a check and is finding lots of errors, I am optomistic that it's check routine might rebuild the data from parity but am glad this occured on a log archiving volume so it isn't a great loss and we don't have to restore from backups anyway. Anyone else seen such amazing examples of FAIL from Areca's? We've got 50 or so 3wares in production and in the past 8 years have only seen one 3ware tank - it destroyed the filesystem on it's way but also complained on the way out and wouldn't initialize since it failed its internal diags. Performance issues or not, at least they do their job. -K ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
messed up ports index
Hello, I have a messed up ports index that I cannot clean. I want to uninstall lang/php5 but it does not seem to uninstall. The same thing goes for security/php5-hash. I was uninstalling php5 ports in an effort to return to the php52 ports. So that is how this happened. I ran the pkgdb -F but it looks like I chose some unfortunate choices that left me where I am now. How can I dig myself out of this? ~Doug corvus-root@/usr/ports: pkg_version -vo archivers/9e= up-to-date with port ..snip.. databases/pgtune= up-to-date with port security/php5-hash needs updating (port has 5.3.2_1) lang/php5 needs updating (port has 5.3.2_1) lang/php52 = up-to-date with port math/php52-bcmath = up-to-date with port archivers/php52-bz2 = up-to-date with port textproc/php52-ctype= up-to-date with port ftp/php52-curl = up-to-date with port databases/php52-dba = up-to-date with port textproc/php52-dom = up-to-date with port graphics/php52-exif = up-to-date with port security/php52-filter = up-to-date with port ftp/php52-ftp = up-to-date with port graphics/php52-gd = up-to-date with port devel/php52-gettext = up-to-date with port security/php52-hash = up-to-date with port converters/php52-iconv = up-to-date with port devel/php52-json= up-to-date with port ..snip.. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: mpcustomer.com issue
I believe I've located the culprit - as long as the mailing list took my unsubscribe request. :) Please feel free to notify me if you still get it.. Sorry again, Marc On Jun 11, 2010, at 4:00 PM, Alejandro Imass wrote: On Fri, Jun 11, 2010 at 5:05 PM, Marc Bollinger m...@vps.net wrote: All, My name is Marc Bollinger, Director of Development of UK2 Group. I've recently got word of an annoying problem where our CRM (mpcustomer.com) is sending out auto-responders to this list. I subscribed to this list so I can reproduce the problem and help me track it down. Terribly sorry for the problems with this, I can appreciate how annoying it is. We'll get this knocked out as soon as possible. Best, Marc THANKS! It is really annoying!!! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE:resize freebsd slice
only /home is in a diferent partition,but i don't care because i don't have any file in it (only .xinitrc,but this is not a prob) i give as a root the command dump -0Lauf /mnt/hd/FBSD/ /dev/ad0s3a but i receive the following error: DUMP: Date of this level 0 dump: Sat Jun 12 01:39:31 2010 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping snapshot of /dev/ad0s3a (/) to /mnt/hd/FBSD/ DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 6843871 tape blocks. DUMP: Cannot open output /mnt/hd/FBSD/. DUMP: Do you want to retry the open?: (yes or no) i tried to reopen the output but it had no effect. P.S.:ad0s3a is my root directory (/) s3b is /home and s3d is my swap space ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: messed up ports index
Hello, I have a messed up ports index that I cannot clean. I want to uninstall lang/php5 but it does not seem to uninstall. The same thing goes for security/php5-hash. I was uninstalling php5 ports in an effort to return to the php52 ports. So that is how this happened. I ran the pkgdb -F but it looks like I chose some unfortunate choices that left me where I am now. How can I dig myself out of this? ~Doug corvus-root@/usr/ports: pkg_version -vo archivers/9e= up-to-date with port ..snip.. databases/pgtune= up-to-date with port security/php5-hash needs updating (port has 5.3.2_1) lang/php5 needs updating (port has 5.3.2_1) lang/php52 = up-to-date with port math/php52-bcmath = up-to-date with port archivers/php52-bz2 = up-to-date with port textproc/php52-ctype= up-to-date with port ftp/php52-curl = up-to-date with port databases/php52-dba = up-to-date with port textproc/php52-dom = up-to-date with port graphics/php52-exif = up-to-date with port security/php52-filter = up-to-date with port ftp/php52-ftp = up-to-date with port graphics/php52-gd = up-to-date with port devel/php52-gettext = up-to-date with port security/php52-hash = up-to-date with port converters/php52-iconv = up-to-date with port devel/php52-json= up-to-date with port ..snip.. After I googled around some more, I found and ran this: portmaster -o lang/php52 lang/php5 Now I am left with only one item as follows: php5-mhash-5.2.12_2 needs updating (port has 5.3.2_1) There is *no* lang/php5-mhash. Only lang/php52-mhash. Should I deinstall and install? ~Doug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: messed up ports index
Hi-- On Jun 11, 2010, at 3:48 PM, Doug Sampson wrote: portmaster -o lang/php52 lang/php5 Now I am left with only one item as follows: php5-mhash-5.2.12_2 needs updating (port has 5.3.2_1) There is *no* lang/php5-mhash. Only lang/php52-mhash. Should I deinstall and install? If I recall right, mhash is now built-in or emulated in php-5.3; I think you can simply deinstall it. Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: messed up ports index
I have a messed up ports index that I cannot clean. I want to uninstall lang/php5 but it does not seem to uninstall. The same thing goes for security/php5-hash. I was uninstalling php5 ports in an effort to return to the php52 ports. So that is how this happened. I ran the pkgdb -F but it looks like I chose some unfortunate choices that left me where I am now. How can I dig myself out of this? ~Doug corvus-root@/usr/ports: pkg_version -vo archivers/9e= up-to-date with port ..snip.. databases/pgtune= up-to-date with port security/php5-hash needs updating (port has 5.3.2_1) lang/php5 needs updating (port has 5.3.2_1) lang/php52 = up-to-date with port math/php52-bcmath = up-to-date with port archivers/php52-bz2 = up-to-date with port textproc/php52-ctype= up-to-date with port ftp/php52-curl = up-to-date with port databases/php52-dba = up-to-date with port textproc/php52-dom = up-to-date with port graphics/php52-exif = up-to-date with port security/php52-filter = up-to-date with port ftp/php52-ftp = up-to-date with port graphics/php52-gd = up-to-date with port devel/php52-gettext = up-to-date with port security/php52-hash = up-to-date with port converters/php52-iconv = up-to-date with port devel/php52-json= up-to-date with port ..snip.. After I googled around some more, I found and ran this: portmaster -o lang/php52 lang/php5 Now I am left with only one item as follows: php5-mhash-5.2.12_2 needs updating (port has 5.3.2_1) There is *no* lang/php5-mhash. Only lang/php52-mhash. Should I deinstall and install? Ooops. I meant to say security/php5-mhash and security/php52-mhash. Again, there is no security/php5-mhash. How can I remove this safely? ~Doug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: messed up ports index
On Jun 11, 2010, at 3:48 PM, Doug Sampson wrote: portmaster -o lang/php52 lang/php5 Now I am left with only one item as follows: php5-mhash-5.2.12_2 needs updating (port has 5.3.2_1) There is *no* lang/php5-mhash. Only lang/php52-mhash. Should I deinstall and install? If I recall right, mhash is now built-in or emulated in php-5.3; I think you can simply deinstall it. Right. My issue is, there isn't a path of /usr/ports/security/php5-mhash -- only /usr/ports/security/php52-mhash. How can I remove the security/php5-mhash with a missing directory? I am unable to deinstall. How does one remove? ~Doug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: messed up ports index
On Jun 11, 2010, at 3:53 PM, Doug Sampson wrote: I meant to say security/php5-mhash and security/php52-mhash. Again, there is no security/php5-mhash. How can I remove this safely? pkg_delete -f php5-mhash-5.2.12_2 Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: messed up ports index
On 6/11/10 6:56 PM, Doug Sampson wrote: Right. My issue is, there isn't a path of /usr/ports/security/php5-mhash -- only /usr/ports/security/php52-mhash. How can I remove the security/php5-mhash with a missing directory? I am unable to deinstall. How does one remove? pkg_del php5-mhash-* Best, --Glenn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: messed up ports index
there is no security/php5-mhash. How can I remove this safely? pkg_delete -f php5-mhash-5.2.12_2 corvus-root@/usr/ports/security/php52-mhash: pkg_delete -f php5-mhash-5.2.12_2 pkg_delete: file '/usr/local/lib/php/20060613/mhash.so' doesn't exist pkg_delete: file '/usr/local/include/php/ext/mhash/config.h' doesn't exist pkg_delete: file '/usr/local/include/php/ext/mhash/php_mhash.h' doesn't exist pkg_delete: file '/usr/local/include/php/ext/mhash' doesn't exist pkg_delete: unable to completely remove directory '/usr/local/include/php/ext/mhash' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) corvus-root@/usr/ports/security/php52-mhash: portversion -v ..snip.. pgtune-0.9.0= up-to-date with port php52-5.2.13_1 = up-to-date with port php52-bcmath-5.2.13_1 = up-to-date with port ..snip.. Finally, it's gone. Thank you! ~Doug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE:resize freebsd slice
On Sat, 12 Jun 2010, Giorgos Tsiapaliokas wrote: only /home is in a diferent partition,but i don't care because i don't have any file in it (only .xinitrc,but this is not a prob) i give as a root the command dump -0Lauf /mnt/hd/FBSD/ /dev/ad0s3a but i receive the following error: DUMP: Date of this level 0 dump: Sat Jun 12 01:39:31 2010 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping snapshot of /dev/ad0s3a (/) to /mnt/hd/FBSD/ DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 6843871 tape blocks. DUMP: Cannot open output /mnt/hd/FBSD/. DUMP: Do you want to retry the open?: (yes or no) i tried to reopen the output but it had no effect. Is there a filesystem at /mnt/hd/FBSD/? Please show us the output of the df command. -- Chris Hill ch...@monochrome.org ** [ Busy Expunging | ] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: messed up ports index
On Jun 11, 2010, at 4:00 PM, Doug Sampson wrote: Finally, it's gone. Thank you! You're most welcome -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE:resize freebsd slice
Is there a filesystem at /mnt/hd/FBSD/? what do u mean? the output of the command df -h /dev/ad0s3a 19G6.5G 11G37%/ devfs 1.0K1.0K 0B 100%/dev /dev/ad0s3d2.5G186M2.1G 8%/home /dev/da0s1 149G 62G 87G42%/mnt/hd ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: resize freebsd slice
On Sat, Jun 12, 2010 at 01:46:57AM +0300, Giorgos Tsiapaliokas wrote: only /home is in a diferent partition,but i don't care because i don't have any file in it (only .xinitrc,but this is not a prob) i give as a root the command dump -0Lauf /mnt/hd/FBSD/ /dev/ad0s3a but i receive the following error: DUMP: Date of this level 0 dump: Sat Jun 12 01:39:31 2010 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping snapshot of /dev/ad0s3a (/) to /mnt/hd/FBSD/ DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 6843871 tape blocks. DUMP: Cannot open output /mnt/hd/FBSD/. DUMP: Do you want to retry the open?: (yes or no) i tried to reopen the output but it had no effect. Well, it looks like something is wrong with where you are trying to write the dump. What is mounted on /mnt/hd/FBSD? Is anything? Is there a filesystem built on it or is it some serial access media such as tape (in naming convention I have never seen). Or is FBSD a directory? If so, you have to name a file within it eg: /mnt/hd/FBSD/root.dump I don't specifically see any problem with your dump command. It is the media where you are writing that is causing your problem. It hasn't had a filesystem built or mounted on it or something like that. By the way, you don't have to specify the /dev/name in a dump. dump -0Lauf /mnt/hd/FBSD / would be sufficient and more clear to human read. dump -0Lauf /mnt/hd/FBSD/home.dump /home would be good for /home It is hard to guess beyond this what is happening. P.S.:ad0s3a is my root directory (/) s3b is /home and s3d is my swap space Don't dump swap. jerry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: resize freebsd slice
On Sat, 12 Jun 2010 01:46:57 +0300, Giorgos Tsiapaliokas terie...@gmail.com wrote: only /home is in a diferent partition,but i don't care because i don't have any file in it (only .xinitrc,but this is not a prob) i give as a root the command dump -0Lauf /mnt/hd/FBSD/ /dev/ad0s3a but i receive the following error: DUMP: Date of this level 0 dump: Sat Jun 12 01:39:31 2010 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping snapshot of /dev/ad0s3a (/) to /mnt/hd/FBSD/ DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 6843871 tape blocks. DUMP: Cannot open output /mnt/hd/FBSD/. DUMP: Do you want to retry the open?: (yes or no) i tried to reopen the output but it had no effect. The answer is right here: DUMP: Cannot open output /mnt/hd/FBSD/. You need to specify a file, not a directory. For example, you can use this command: # dump -0Lauf /mnt/hd/FBSD/ad0s3a.dump /dev/ad0s3a You just have to make sure that there's enough space for the dump file on the device mounted as /mnt/hd. P.S.:ad0s3a is my root directory (/) Then you have all subtrees on your / partition (like /var, /usr). Correctly, this is what you want to dump. s3b is /home and If you don't need it, don't dump it. :-) Anyway, if its nearly empty, you won't need much space for the dumpfile. s3d is my swap space Partition d is the swap? It's usually b, but... possible. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: resize freebsd slice
On Sat, 12 Jun 2010 02:04:06 +0300, Giorgos Tsiapaliokas terie...@gmail.com wrote: the output of the command df -h /dev/ad0s3a 19G6.5G 11G37%/ devfs 1.0K1.0K 0B 100%/dev /dev/ad0s3d2.5G186M2.1G 8%/home /dev/da0s1 149G 62G 87G42%/mnt/hd From the device name da0s1, I conclude that /mnt/hd does not connect to a UFS file system, right? In case it is a FAT file system, make sure you can actually write a file of 6.5 GB to it - not that you end up with a truncated dump file. Check mount -v /dev/da0s1 for the correct mount options. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE:resize freebsd slice
/mnt/hd/ is the directory of my external hard disk and /mnt/hd/FBSD is the directory of FBSD folder within the hard disk. i created the file root.dump in /mnt/hd/FBSD and i gave the command dump -0Lauf /mnt/hd/FBSD/root.dump / the result is: DUMP: Date of this level 0 dump: Sat Jun 12 02:05:36 2010 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping snapshot of /dev/ad0s3a (/) to /mnt/hd/FBSD/root.dump DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 6859984 tape blocks. DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] DUMP: write error 4194320 blocks into volume 1 DUMP: Do you want to restart?: (yes or no) is it ok? P.S.:my hard disk is a FAT file system not a UFS. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: resize freebsd slice
On Sat, 12 Jun 2010 02:17:17 +0300, Giorgos Tsiapaliokas terie...@gmail.com wrote: /mnt/hd/ is the directory of my external hard disk and /mnt/hd/FBSD is the directory of FBSD folder within the hard disk. Please try to use the correct terminology (yes, I know, I'm picky about that): FreeBSD has directories, not folders. I assume you don't call files sheets of paper. :-) i created the file root.dump in /mnt/hd/FBSD and i gave the command dump -0Lauf /mnt/hd/FBSD/root.dump / You don't need to create a file - dump will do that. the result is: DUMP: Date of this level 0 dump: Sat Jun 12 02:05:36 2010 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping snapshot of /dev/ad0s3a (/) to /mnt/hd/FBSD/root.dump DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 6859984 tape blocks. DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] DUMP: write error 4194320 blocks into volume 1 DUMP: Do you want to restart?: (yes or no) is it ok? Doesn't look that way. write error 4194320 blocks into volume 1 seems to indicate that the file counldn't successfully be written. and the retry request suggests that something went wrong. P.S.:my hard disk is a FAT file system not a UFS. I guessed right. :-) Make sure you can acutally write a 6.5 GB file on it. FAT usually has problems with big files. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE:resize freebsd slice
i used the restart option but still i had the same error. if i make my hard disk a UFS file system then the error it may be fixed. how can i do it? P.S.:i have 138 gb free space on my hard disk.:) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: resize freebsd slice
On Sat, 12 Jun 2010 02:30:13 +0300, Giorgos Tsiapaliokas terie...@gmail.com wrote: i used the restart option but still i had the same error. Have you previously deleted the created file from the external hard disk? Can you provide mount -v /dev/da0s1? if i make my hard disk a UFS file system then the error it may be fixed. how can i do it? Can you use the WHOLE disk for your backup files? In case you've got nothing to lose on that disk, it's quite easy, but pay attention: The disk will be EMPTY then. Make sure it's unmonted before creating a FreeBSD file system on it. # newfs -U /dev/da0 # mount /dev/da0 /mnt This does omit the slice part, it's often called dedicated. Sometimes it's called dangerously dedicated because Windows can't read it anymore (as if it could by default...). Oh, and did I already mention sade? It's a nice tool for dealing with disks, slices, partitions and filesystems, it works like sysinstall's corresponding subfunctions. You can use it to 1. delete the da0s1 slice 2. create a FreeBSD slice, spanning the whole disk 3. create an UFS partition, covering the whole slice 4. format the UFS partition, maybe using soft updates. This will give you /dev/da0s1c, which you can mount to /mnt. To keep in mind: The c partition always means the whole disk or the whole slice, root partitions usually are a, swap spaces b, and other partitions start at e (they can also start at d, but I think that d was reserved for something in the past, not sure if it's still the case). P.S.:i have 138 gb free space on my hard disk.:) In case you have data on that disk that you NEED - get them off the disk first. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE:resize freebsd slice
ok,the dump files where created succesfully.. now i will make the formats.. after the formats how i will restore my system? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: resize freebsd slice
On Sat, 12 Jun 2010 03:12:57 +0300, Giorgos Tsiapaliokas terie...@gmail.com wrote: after the formats how i will restore my system? With restore. :-) First of all, after you've created a new slice, and within the slice partitions as desired (you can easily do this from the FreeBSD live system CD or DVD, or any other FreeBSD based live system, e. g. FreeSBIE), you will need one restore operation per dumped partition. In this example, I'll assume that ad0s3 is your new FreeBSD slice, and within it, the partitions ad0s3a (root file system), ad0s3b (swap) and ad0s3e (home) have been successfully created (e. g. via sysinstall's functionality, sade, or fdisk + bsdlabel). If you are in a multiboot environment, pay attention to the implications (e. g. FreeBSD boot manager). Then, when in the live system: # mkdir /backup # mount -o ro /dev/da0 /backup # newfs ad0s3a # newfs -U ad0s3e # mount /dev/newfs ad0s3a /mnt # cd /mnt # restore -rf /backup/root.dump # cd /mnt/home # restore -rf /backup/home.dump # cd / # umount /mnt # umount /backup # sync # reboot See man restore for details. Basically, using restore, you go # cd target # restore -rf dumpfile It's quite easy as soon as you've understood this logic. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE:resize freebsd slice
i have a problem while i am trying to restore the dump files.. i followed your instructions but when i give restore -rf /backup/root.dump i receive the following error: expected next file 188417,got 4 and the output of ls in the /mnt directory is: .snap restoresymtable terietor what is going on? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
freebsd - for the win
I'm working on a project for my client, and I spent the better part of two days trying to get my laptop running OSX to have the right combination of BerkeleyDB and Perl modules to build what I wanted. Turns out my Perl 5.10.1 install was incompatible with BerkeleyDB on OSX, but the macports version 5.8.9 was also in the wrong path, ugh. Finally, I said hey, freebsd would do better here. Within a half day, I had a freebsd VMWare image up and running, executing precisely the code I wanted, and I was able to take my development to the next round. FreeBSD. The Ports Just Work. Nothing else like it. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org