Why system gcc that is 4.2.1 produces different code than gcc-4.2.1 compiled from sources?

2010-04-25 Thread Yuri

I ran this simple example:

#include stdlib.h
#include stdio.h

int fib(int AnArg) {
 if (AnArg = 2) return (1);
 return (fib(AnArg-1)+fib(AnArg-2));
}

int main(int argc, char* argv[]) {
 int n = atoi(argv[1]);
 printf(fib(%i)=%i\n, n, fib(n));
}

through system gcc and gcc built from sources. Both are 4.2.1. Options: -O3.

Average runtime with the argument 45 is quite different: system gcc is 
3.650s and gcc-4.2.1 from sources is 3.740.

CPU: Intel(R) Core(TM) i7 CPU   @ 9200 @ 2.67GHz

Yuri
___
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


Wpoison?????

2010-04-25 Thread Aiza
Looking for comments on this small apache web application that fools web 
harvest programs into harvesting bogus email address from web page.

http://www.monkeys.com/wpoison

Anybody try this?
Is this a self-inflicted Trojan?
Since I don't have web server was thinking of creating jail for apache 
that only runs this wpoision perl script?
My firewall been blocking inbound port 80 and gets hit 100's of times a 
day. Just script kiddies rolling through a block of ip address hunting.

Play with them a little bit in return.

Comments please?
___
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: Advice for finding a leaky Apache (probably PHP) process

2010-04-25 Thread Joe Auty
Adam Vande More wrote:
 On Sat, Apr 24, 2010 at 8:02 PM, Joe Auty j...@netmusician.org
 mailto:j...@netmusician.org wrote:

 Hello,

 I'm wondering if you guys have any general tips on how to find the
 Apache process/app that is gobbling up my RAM randomly until my
 machine
 crashes and I'm forced to reboot? I'm tired of staring at top and
 working with flimsy hacks such as 10 minute Apache restart cronjobs.

 This seems to start (or worsen) after updating to PHP 5.3, but this is
 not happening on my test machine where PHP 5.3 is also installed
 and the
 same apps are used (although not publicly).

 General tips and suggestions are welcome here!

 THanks in advance...


 Have you tried working with php's mem limit abilities?  The base
 system provides procstat for tracking invidual process info.  You
 could try something like appending ps aux  file every minute or so to
 track growth etc.  Can you provide more info about the php app?

 -- 
 Adam Vande More

Well, I'm fishing. It is also possible that I'm seeing a denial of
service attack or something, but the result is my Apache processes
ballooning and CPU usage for some of my httpd processes going up to
around 100%. There are several PHP apps running on the server, so it is
very hard to pinpoint things to one app, which is part of the problem.

I can actually see the memory growth, I can sit and watch top and see my
memory consumption balloon until the machine swaps and then just grinds
to a halt. Sometimes it gets so bad that I'm forced to killall -9 httpd
just to bring the machine back to life.

What are some good techniques for trying to ascertain whether a
particular web app is being exploited for some sort of attack? Since I
had to recompile PHP and all of my PHP extensions is there a possibility
that a particular extension is causing memory consumption to balloon? A
long time ago I had an attack on a very old version of WordPress. I
found this via my Apache server-status page, but it was sort of a pure
fluke that I did find this. Surely there has to be better ways to
connect httpd processes to pages that are being served?

I wish that the machine was a little more responsive when I get to this
point so that I can ktrace the processes...

Thanks for your help!



-- 
Joe Auty, NetMusician
NetMusician helps musicians, bands and artists create beautiful,
professional, custom designed, career-essential websites that are easy
to maintain and to integrate with popular social networks.
www.netmusician.org http://www.netmusician.org
j...@netmusician.org mailto:j...@netmusician.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: Installing from FTP: unable to transfer the GENERIC distribution

2010-04-25 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 24/04/2010 22:41:13, Антон Клесс wrote:
  Suspect hardware on the second system?  Try escaping to the shell
 (Alt-F4) after pulling down some of the distribution sets and see if
 'netstat -i' shows interface errors.


 I tried to, but  (Alt-F4) does nothing.
 Should it work in Standard installation method or Custom?

 
 
 
 This time I lucky: Base distribution set get right, and when Generic
 started downloading, I reached the console you mean.
 
 netstat -i says there are no errors.
 
 second console says following:
 
 /stand/cpio: invalid header: checksum error
 /stand/cpio: warning: skipped number bytes of junk
 /stand/cpio:  : No such file or directory
 
 
 While downloading, such messages run out very fast.
 Then, sysinstall says:
 
 User confirmation requested
 Unable to transfer the GENERIC distribution from ftp://ftp10.freebsd.org.
 Do you want to try to retrieve it again?

Hmmm... well, the best theory I can see that fits the observed symptoms
is that you are getting packet loss while trying to download the
distribution sets for your second system.  Packet loss usually means
dodgy hardware.  I think you'ld have to be seeing quite substantial
packet loss -- more than about 5% -- or the normal TCP retransmission
stuff would fix things at the cost of a rather lower than normal
download speed.

It's pretty hard to diagnose such problems from the installer -- try
booting the machine from a livecd and using a more capable environment
to work out what's going wrong.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvT7fAACgkQ8Mjk52CukIy9bACePj/qXPxD+FRX7XPc5+KAQxqK
FAUAnjNSDDvEFMhudlzmboD0TPfHj5OR
=TGTL
-END PGP SIGNATURE-
___
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: Installing from FTP: unable to transfer the GENERIC distribution

2010-04-25 Thread Антон Клесс
If I just ping FTP server from installer's shell for minutes, it will show
me packets loss if some, right?


2010/4/25 Matthew Seaman m.sea...@infracaninophile.co.uk

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 24/04/2010 22:41:13, Антон Клесс wrote:
   Suspect hardware on the second system?  Try escaping to the shell
  (Alt-F4) after pulling down some of the distribution sets and see if
  'netstat -i' shows interface errors.
 
 
  I tried to, but  (Alt-F4) does nothing.
  Should it work in Standard installation method or Custom?
 
 
 
 
  This time I lucky: Base distribution set get right, and when Generic
  started downloading, I reached the console you mean.
 
  netstat -i says there are no errors.
 
  second console says following:
 
  /stand/cpio: invalid header: checksum error
  /stand/cpio: warning: skipped number bytes of junk
  /stand/cpio:  : No such file or directory
 
 
  While downloading, such messages run out very fast.
  Then, sysinstall says:
 
  User confirmation requested
  Unable to transfer the GENERIC distribution from ftp://ftp10.freebsd.org
 .
  Do you want to try to retrieve it again?

 Hmmm... well, the best theory I can see that fits the observed symptoms
 is that you are getting packet loss while trying to download the
 distribution sets for your second system.  Packet loss usually means
 dodgy hardware.  I think you'ld have to be seeing quite substantial
 packet loss -- more than about 5% -- or the normal TCP retransmission
 stuff would fix things at the cost of a rather lower than normal
 download speed.

 It's pretty hard to diagnose such problems from the installer -- try
 booting the machine from a livecd and using a more capable environment
 to work out what's going wrong.

Cheers,

Matthew

 - --
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkvT7fAACgkQ8Mjk52CukIy9bACePj/qXPxD+FRX7XPc5+KAQxqK
 FAUAnjNSDDvEFMhudlzmboD0TPfHj5OR
 =TGTL
 -END PGP SIGNATURE-




-- 
С уважением,
Антон Клесс,
http://kless.spb.ru/
___
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: Installing from FTP: unable to transfer the GENERIC distribution

2010-04-25 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 25/04/2010 09:13:07, Антон Клесс wrote:
 If I just ping FTP server from installer's shell for minutes, it will show
 me packets loss if some, right?

Probably.  Packet loss can be a tricky thing, and depend on any one of a
number of parameters. You may well need to tell ping to use bigger
packets -- your FTP session will be maxing out the MTU, so try 1500 byte
packets as well as the default size.

In fact (and now I come to mention it), MTU problems are a pretty good
fit to what you're seeing. Except in that case, I doubt you'ld have had
any success at downloading at all.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvT+4oACgkQ8Mjk52CukIwP9wCfUijlReVsBwM+qHbbyuFfvPgc
2TAAn3mYH9tClr/3YmKVtkiSE4beZjpP
=5Hew
-END PGP SIGNATURE-
___
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: Advice for finding a leaky Apache (probably PHP) process

2010-04-25 Thread Adam Vande More
On Sun, Apr 25, 2010 at 2:10 AM, Joe Auty j...@netmusician.org wrote:

  Well, I'm fishing. It is also possible that I'm seeing a denial of service
 attack or something, but the result is my Apache processes ballooning and
 CPU usage for some of my httpd processes going up to around 100%. There are
 several PHP apps running on the server, so it is very hard to pinpoint
 things to one app, which is part of the problem.

 I can actually see the memory growth, I can sit and watch top and see my
 memory consumption balloon until the machine swaps and then just grinds to a
 halt. Sometimes it gets so bad that I'm forced to killall -9 httpd just to
 bring the machine back to life.

 What are some good techniques for trying to ascertain whether a particular
 web app is being exploited for some sort of attack? Since I had to recompile
 PHP and all of my PHP extensions is there a possibility that a particular
 extension is causing memory consumption to balloon? A long time ago I had an
 attack on a very old version of WordPress. I found this via my Apache
 server-status page, but it was sort of a pure fluke that I did find this.
 Surely there has to be better ways to connect httpd processes to pages that
 are being served?

 I wish that the machine was a little more responsive when I get to this
 point so that I can ktrace the processes...


well if you're just looking for some general advice, I'll tell you what I do
and you take what you like.

-  I don't use Apache anymore for several reasons.  Speed and configuration
are just two of them.  A couple of the more popular http server alternative
are lighttpd and nginx.  I prefer nginx.  Both very small and very fast
compared to apache.  I didn't believe the difference others claimed until I
ran the benchmarks myself.  Not only where they much faster and lighter than
apache, they were also more reliable especially under load.

-  jails are a lightweight method of isolating insecure apps.  Get to know
them and use them extensively.  PHP apps are well known for this type of
thing, and if you're going to run them it's very wise to make sure you're
safe while doing so.  I like to use sysutils/ezjail to create full jails for
each php app each with it's own install of an http server and php.  The root
host would run a reverse proxy of your choosing and direct http requests to
the appropriate jail.  jails can be assigned cpu sets as well eg if your cpu
has 4 cores, a jail can be bound to 1 or more of them.  jails also have
their own process list so top is not so difficult to decipher(your
unresponsive system could be helped by this and you can also be stricter in
your php.ini mem limits per jail).  This method will use a little more
memory, but easily it's the best time-wise from an administration approach
that I've found if you have a lot of different types of clients.

-  use ports-mgmt/portaudit regularly.

-  for debugging php, if truss and ktrace aren't helping, use valgrind.


-- 
Adam Vande More
___
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


apache Perl CGI programs

2010-04-25 Thread Fbsd1
I have Perl and apache installed on my system. Do I have to do anything 
additional to get apache to run Perl CGI programs?
Is putting the perl script in the cgi-bin directory at 
/usr/local/www/data all it takes to make things work?


___
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: Advice for finding a leaky Apache (probably PHP) process

2010-04-25 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 25/04/2010 02:02:52, Joe Auty wrote:

 I'm wondering if you guys have any general tips on how to find the
 Apache process/app that is gobbling up my RAM randomly until my machine
 crashes and I'm forced to reboot? I'm tired of staring at top and
 working with flimsy hacks such as 10 minute Apache restart cronjobs.
 
 This seems to start (or worsen) after updating to PHP 5.3, but this is
 not happening on my test machine where PHP 5.3 is also installed and the
 same apps are used (although not publicly).
 
 General tips and suggestions are welcome here!

You need to divide and conquer.  Basically, you've got all of your PHP
applications running in one PHP interpreter instance per apache child
and you won't be able to tell which is the problem app until you can
separate them out.

One way of doing that is the simple and obvious method of commenting out
each application in turn from the apache config, leaving it running for
a while and seeing what happens to memory usage.  This is OK only if
you're happy to turn off chunks of site functionality while testing.

Alternatively, you can set up several different instances of apache,
each configured to run one of the php applications and each binding to a
different port on the loopback interface.  Then use another apache with
a bit of mod_proxy or mod_rewrite glue to redirect the queries
internally.  Or you could replace the front facing apache instance with
something like varnish.

Finally, it has been suggested else-thread that you contemplate
switching to an alternative HTTP daemon like nginx -- in that case,
you'ld want to be running your PHP apps under fCGI rather than embedded
in the HTTP daemon.  Running each different PHP app in a separate fCGI
process shouldn't be too hard to set up.  While this is a valid
alternative configuration for your site, the Scientist in me complains
that as an attempt to find out why your PHP apps are misbehaving, there
are too many uncontrolled changes for it to be a good diagnostic.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvUAgMACgkQ8Mjk52CukIyCJwCfW+UWZkYxNtTCtEg1NhCkRmTR
Mg8AoIYO4qRSswo/3gMWhVqrQAkzv7PX
=vFG3
-END PGP SIGNATURE-
___
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: apache Perl CGI programs

2010-04-25 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 25/04/2010 09:38:38, Fbsd1 wrote:
 I have Perl and apache installed on my system. Do I have to do anything
 additional to get apache to run Perl CGI programs?
 Is putting the perl script in the cgi-bin directory at
 /usr/local/www/data all it takes to make things work?

Pretty much.  Look at the apache documentation for 'ScriptAlias' and
'Options ExecCGI' and 'Add-Handler cgiscript .cgi' for details, but
these should be set up already for the cgi-bin directory.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvUAwYACgkQ8Mjk52CukIzvfACfdEYDqJRFtyg+6IoLq1J0YTpK
SEcAn0Z4+038CYWpkwz2etoHHWJJNPPL
=sM0o
-END PGP SIGNATURE-
___
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


Gnome 2.30

2010-04-25 Thread Andrew Hill
Hi does anybody know if Gnome 2.30 will be out soon in the FreeBSD ports?

Thanks
Andrew Hill
___
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: Gnome 2.30

2010-04-25 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 25/04/2010 07:59:44, Andrew Hill wrote:
 Hi does anybody know if Gnome 2.30 will be out soon in the FreeBSD ports?

I suspect the freebsd-gnome project might have an inkling.  Try here:

http://wiki.freebsd.org/Gnome

and the mailing list here:

http://lists.freebsd.org/mailman/listinfo/freebsd-gnome

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvUK9gACgkQ8Mjk52CukIxPDQCfVc6fOh6BD95VLFH3ygdSlQoo
GjYAnRhg3gZ8Zr7osrj20x3PJvRh/6Es
=uaug
-END PGP SIGNATURE-
___
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


ZFS scheduling

2010-04-25 Thread Anselm Strauss
Hi,

I noticed that my system gets very slow when I'm doing some simple but
intense ZFS operations. For example, I move about 20 Gigabytes of data
from one data set to another on the same pool, which is a RAIDZ of 3 500
GB SATA disks. The operations itself runs fast, but meanwhile other
things get really slow. E.g. opening a application takes 5 times as long
as before. Also simple operations like 'ls' stall for some seconds which
they did never before. It already changed a lot when I switched from
RAIDZ to a mirror with only 2 disks. Memory and CPU don't seem to be the
issue, I have a quad-core CPU and 8 GB RAM.

I can't get rid of the idea that this has something to do with
scheduling. The system is absolutely stable and fast. Somehow small I/O
operations on ZFS seem to have it very difficult to make it through when
other bigger ones are running. Maybe this has something to do with tuning?

I know my system information is very incomplete, and there could be a
lot of causes. But anybody knows if this could be an issue with ZFS itself?

Thanks,
Anselm
___
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. Multi Boot

2010-04-25 Thread Da Rock
On Sun, 2010-04-18 at 11:10 -0500, Jorge Biquez wrote:
 Hello all.
 I hope this question does not sound so stupid. I have read archives 
 and do gogled searches but would like , if possible, to hear comments 
 based on experience.
 
 I have a machine, pentium D 2.4mhz 2gb RAM, 160DD HD XP Pro. As I 
 mentuioned in other post I installed FreeBSD 7.3 under a virtual 
 machine using vmware. It works fine but seems it is too much for the 
 machine since when I am running it the machine is very slow. I have 
 that FB installation running without graphical interface since that's 
 why I need then.
 
 Now I would like to have a graphical interface running to learn to 
 use eclipse and continue with my PHP/Mysql development learning. I 
 know that if I continue under VMware the windows machine will be even 
 more slow so I decided that I would have this machine running with a 
 multi boot schema and choose when to boot under FreeBSd, Windows and 
 later with Linux (looking for a job and in some companies asked me to 
 have the basics of any distribution). The most important is that I 
 need to be able to continue having that actual windows partition 
 without loosing anything or changing anything.
 
 What do you think, based on experince, is the safest way to accomplish this?

Not quite the exact answer you may be looking for, but why don't you
flip the tables a bit and run Window$ as the virtual machine on the
FreeBSD as a host?

From my experience it actually works much faster, and Window$ doesn't
see any penalties at all. I haven't done it in quite some time, but that
did work a treat at the time- no reason it should have changed.

___
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: Why system gcc that is 4.2.1 produces different code than gcc-4.2.1 compiled from sources?

2010-04-25 Thread Leonidas Tsampros
Yuri y...@rawbw.com writes:

 I ran this simple example:

 #include stdlib.h
 #include stdio.h

 int fib(int AnArg) {
  if (AnArg = 2) return (1);
  return (fib(AnArg-1)+fib(AnArg-2));
 }

 int main(int argc, char* argv[]) {
  int n = atoi(argv[1]);
  printf(fib(%i)=%i\n, n, fib(n));
 }

 through system gcc and gcc built from sources. Both are 4.2.1. Options: -O3.

 Average runtime with the argument 45 is quite different: system gcc is
 3.650s and gcc-4.2.1 from sources is 3.740.
 CPU: Intel(R) Core(TM) i7 CPU   @ 9200 @ 2.67GHz


Hi,

I'm pretty sure that a small difference in execution time does not mean
that the produced code is different. In order to check the code gcc
produced, you need to do something like this:

objdump -d executable

or even use gdb's disassemble command.

Regards,
Leonidas

 Yuri

___
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: Wireless networking question

2010-04-25 Thread Chip Camden
On Apr 24 2010 23:51, S Roberts wrote:
 
 I believe its been bundled into the  libpciaccess port:
 http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/libpciaccess/
 

Doesn't seem to be there, and google isn't being helpful.  A search of
freshports.org didn't turn up anything either.  Searching freebsd.org
only shows our conversation.

-- 
Sterling (Chip) Camden | camdensoftware.com | chipstips.com | chipsquips.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: Why system gcc that is 4.2.1 produces different code than gcc-4.2.1 compiled from sources?

2010-04-25 Thread Michaël Grünewald

Leonidas Tsampros wrote:

I'm pretty sure that a small difference in execution time does not mean
that the produced code is different.


Actually, execution time of a process is very sensitive to the 
environment of this process. See for instance:


http://www-plan.cs.colorado.edu/diwan/asplos09.pdf
  We see that something external and orthogonal to the program,
   i.e., changing the size (in bytes) of an unused environment variable,
   can dramatically (frequently by about 33% and once by almost 300%)
   change the performance of our program.

(The quotation is taken out of the article.)

I learned about this in a message from Xavier Leroy to the OCaml mailing 
list:


http://caml.inria.fr/pub/ml-archives/caml-list/2009/12/e261eeb95bec6c5a2791335c84234a05.en.html

Cheers,
Michaël
___
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: Wireless networking question

2010-04-25 Thread Kevin Kinsey

Chip Camden wrote:

On Apr 24 2010 23:51, S Roberts wrote:

I believe its been bundled into the  libpciaccess port:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/libpciaccess/



Doesn't seem to be there, and google isn't being helpful.  A search of
freshports.org didn't turn up anything either.  Searching freebsd.org
only shows our conversation.



Likely your ports tree is rather out-of-date?  The port directory
is at /usr/ports/devel/libpciacess, and the import date on the Makefile
is May 2008.

Or, perhaps ports aren't installed?  Try:

$pkg_add -r \ 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/Packages-8-stable/devel/libpciaccess-0.10.6_1.tbz


Kevin Kinsey
___
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: Wireless networking question

2010-04-25 Thread S Roberts
Hello Chip,

On Sun, 25 Apr 2010 12:10:40 -0700
Chip Camden sterl...@camdensoftware.com wrote:

 On Apr 24 2010 23:51, S Roberts wrote:
  
  I believe its been bundled into the  libpciaccess port:
  http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/libpciaccess/
  
 
 Doesn't seem to be there, and google isn't being helpful.  A search of
 freshports.org didn't turn up anything either.  Searching freebsd.org
 only shows our conversation.
 

Hmmm.., you sure your ports system is installed / up-to-date there?

Do you have any of the docs that would have shipped with the notebook?
If not, I searched ASUS, and found a link to the English version manual
here:
http://support.asus.com/download/download.aspx?SLanguage=en-usproduct=3model=K72Ftype=mapf_type=19

I've not downloaded it, so please see if there's anything that can
assist. There **are** other resources at the ASUS site - you just have
to use the menu on the right to select your particular model and review
the list of resources that gets returned..,

Hope this helps..,

Regards,

S Roberts
___
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: Advice for finding a leaky Apache (probably PHP) process

2010-04-25 Thread Joe Auty
Not to blow off any of the fine suggestions that have been made, but I
may have solved my problem, sort of... I need help with one other
question though, see below (please and thanks!):

I'm not sure what the connection is here between the PHP upgrade,
perhaps nothing, but I did notice my individual httpd processes taking
up a crapload of RAM - they'd balloon to 600M and beyond, according to
top. According to this Apache directive:

http://httpd.apache.org/docs/2.0/mod/core.html#rlimitmem

 RLimitMEM Directive

 Description:Limits the memory consumption of processes launched by
 Apache children
 Syntax:RLimitMEM bytes|max [bytes|max]
 Default:Unset; uses operating system defaults

The OS defaults are applying here. I believe that the kernel option that
is tunable in /boot/loader.conf is kern.maxdsiz which is 34359738368
bytes, or 32 gigabytes. This machine is actually a VM guest that has
only been assigned 1 gig, so basically it seemed like there was nothing
to control how far these processes will balloon.

Obviously the better solution is to stop them from ballooning somehow,
but when I restart Apache each process takes under 200 MB, so I set the
RLimitMEM to 250 MB and made sure that I have enough child processes
running. I'll play around with a kern.maxdsiz limit once I can reboot
the machine.

Here's my question...

From the Apache performance tuning guide:
http://httpd.apache.org/docs/2.2/misc/perf-tuning.html
 The single biggest hardware issue affecting webserver performance is
 RAM. A webserver should never ever have to swap, as swapping increases
 the latency of each request beyond a point that users consider fast
 enough. This causes users to hit stop and reload, further increasing
 the load. You can, and should, control the MaxClients setting so that
 your server does not spawn so many children it starts swapping. This
 procedure for doing this is simple: determine the size of your average
 Apache process, by looking at your process list via a tool such as
 top, and divide this into your total available memory, leaving some
 room for other processes.

I'm not exactly sure how to best calculate this? Right now top is
showing 260M of active RAM. The total of the size or res columns for
all of my httpd processes definitely exceeds this. How can I determine
how much RAM a httpd process is *actively* using, as opposed to how much
size it is claiming so that I can best come up with a maxclients setting?



Matthew Seaman wrote:
 On 25/04/2010 02:02:52, Joe Auty wrote:

  I'm wondering if you guys have any general tips on how to find the
  Apache process/app that is gobbling up my RAM randomly until my machine
  crashes and I'm forced to reboot? I'm tired of staring at top and
  working with flimsy hacks such as 10 minute Apache restart cronjobs.

  This seems to start (or worsen) after updating to PHP 5.3, but this is
  not happening on my test machine where PHP 5.3 is also installed and the
  same apps are used (although not publicly).

  General tips and suggestions are welcome here!

 You need to divide and conquer.  Basically, you've got all of your PHP
 applications running in one PHP interpreter instance per apache child
 and you won't be able to tell which is the problem app until you can
 separate them out.

 One way of doing that is the simple and obvious method of commenting out
 each application in turn from the apache config, leaving it running for
 a while and seeing what happens to memory usage.  This is OK only if
 you're happy to turn off chunks of site functionality while testing.

 Alternatively, you can set up several different instances of apache,
 each configured to run one of the php applications and each binding to a
 different port on the loopback interface.  Then use another apache with
 a bit of mod_proxy or mod_rewrite glue to redirect the queries
 internally.  Or you could replace the front facing apache instance with
 something like varnish.

 Finally, it has been suggested else-thread that you contemplate
 switching to an alternative HTTP daemon like nginx -- in that case,
 you'ld want to be running your PHP apps under fCGI rather than embedded
 in the HTTP daemon.  Running each different PHP app in a separate fCGI
 process shouldn't be too hard to set up.  While this is a valid
 alternative configuration for your site, the Scientist in me complains
 that as an attempt to find out why your PHP apps are misbehaving, there
 are too many uncontrolled changes for it to be a good diagnostic.

 Cheers,

 Matthew

___
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

-- 
Joe Auty, NetMusician
NetMusician helps musicians, bands and artists create beautiful,
professional, custom designed, career-essential websites that are easy
to maintain and to integrate with popular social networks.

RE: ZFS scheduling

2010-04-25 Thread Dan Naumov
Hi,

I noticed that my system gets very slow when I'm doing some simple but
intense ZFS operations. For example, I move about 20 Gigabytes of data
from one data set to another on the same pool, which is a RAIDZ of 3 500
GB SATA disks. The operations itself runs fast, but meanwhile other
things get really slow. E.g. opening a application takes 5 times as long
as before. Also simple operations like 'ls' stall for some seconds which
they did never before. It already changed a lot when I switched from
RAIDZ to a mirror with only 2 disks. Memory and CPU don't seem to be the
issue, I have a quad-core CPU and 8 GB RAM.

I can't get rid of the idea that this has something to do with
scheduling. The system is absolutely stable and fast. Somehow small I/O
operations on ZFS seem to have it very difficult to make it through when
other bigger ones are running. Maybe this has something to do with tuning?

I know my system information is very incomplete, and there could be a
lot of causes. But anybody knows if this could be an issue with ZFS itself?

Hello

As you do mention, your system information is indeed very incomplete,
making your problem rather hard to diagnose :)

Scheduling, in the traditional sense, is unlikely to be the cause of
your problems, but here's a few things you could look into:

First one is obviously the pool layout, heavy-duty writing on a pool,
consisting of a single raidz vdev is slow (slower than writing to a
mirror, as you already discovered), period. such is the nature of
raidz. Additionally, your problem is magnified by the fact that your
have reads competing with writes since you are reading (I assume) from
the same pool. One approach to alleviating the problem would be to
utilize a pool consisting of 2 or more raidz vdevs in a stripe, like
this:

pool
  raidz
disc1
disc2
disc3
  raidz
disc4
disc5
disc6

The second potential cause of your issues is the system wrongly
guesstimating your optimal TXG commit size. ZFS works in such a
fashion, that it commits data to disk in chunks. How big chunks it
writes at a time it tries to optimize by evaluating your pool IO
bandwidth over time and available RAM. The TXG commits happen with an
interval of 5-30 seconds. The worst case scenario is such, that if the
system misguesses the optimal TXG size, then under heavy write load,
it continues to defer the commit for up to the 30 second timeout and
when it hits the caps, it frantically commits it ALL at once. This can
and most likely will completely starve your read IO on the pool for as
long as the drives choke while committing the TXG.

If you are on 8.0-RELEASE, you could try playing with the
vfs.zfs.txg.timeout= variable in /boot/loader.conf, generally sane
values are 5-30, with 30 being the default. You could also try
adjusting vfs.zfs.vdev.max_pending= down from the default of 35 to a
lower value and see if that helps. AFAIK, 8-STABLE and -HEAD have a
systctl variable which directly allow you to manually set the
preferred TXG size and I've pretty sure I've seen some patches on the
mailing lists to add this functionality to 8.0.

Hope this helps.


- Sincerely,
Dan Naumov
___
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


USB keyboard: mode switch / numlock freezes

2010-04-25 Thread Anselm Strauss
Hi,

I have a Roccat Arvo keyboard that has a number block with integrated
positioning keys (arrows, del, end, ...), but no extra keys for them. There
is a mode switch button that switches between the two layouts, like the
numlock key, but I'm not sure if this really is numlock. For some reason the
switch stops to work after exactly 4 presses. This only happens during boot,
or when the FreeBSD kernel is loaded. It does not happen when I boot into
Windows or Linux. I also tried other computers, getting the same result.

Could it be a numlock issue? Any idea how to address this?

Thanks,
Anselm
___
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: Wireless networking question

2010-04-25 Thread Chip Camden
On Apr 25 2010 21:26, S Roberts wrote:
 
 Hmmm.., you sure your ports system is installed / up-to-date there?
 
 Do you have any of the docs that would have shipped with the notebook?
 If not, I searched ASUS, and found a link to the English version manual
 here:
 http://support.asus.com/download/download.aspx?SLanguage=en-usproduct=3model=K72Ftype=mapf_type=19
 
 I've not downloaded it, so please see if there's anything that can
 assist. There **are** other resources at the ASUS site - you just have
 to use the menu on the right to select your particular model and review
 the list of resources that gets returned..,
 
 Hope this helps..,
 
 Regards,
 
 S Roberts

Thanks for the attempt to help, but ports are up-to-date.  I'm on
8.0-RELEASE amd64 -- maybe scanpci isn't available on amd64?

The download for the manual is exactly the same as the paper manual that
came with the notebook.  It gives very little technical information.  On
the web site, all I could find is that it's 802.11n capable, which I
already knew from the sales pamphlet.

-- 
Sterling (Chip) Camden | camdensoftware.com | chipstips.com | chipsquips.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


diablo-jdk not installing correctly

2010-04-25 Thread herbey zepeda
Hi,

I want to install java and tomcat. After some time trying I could not
install the JDK, I first tried to install diablo jdk 1.6.
I go to /usr/ports/java/diablo-jdk1.6, turns out that I have to go through
further step due to licensing,
I do that step and go to
http://www.freebsdfoundation.org/downloads/java.shtml
and choose:

Diablo Caffe JDK 1.6.0-7 FreeBSD 7.x/i386 End-User 61M
diablo-jdk-freebsd7.i386.1.6.0.07.02.tbz

I read and accept the licensing terms,

then I do pkg_add Diablo Caffe JDK 1.6.0-7 FreeBSD 7.x/i386 End-User 61M
diablo-jdk-freebsd7.i386.1.6.0.07.02.tbz
and the problem starts,

it's requiring me to install javavmwrapper
In install the respoective port
then try again
pkg_add Diablo Caffe JDK 1.6.0-7 FreeBSD 7.x/i386 End-User 61M
diablo-jdk-freebsd7.i386.1.6.0.07.02.tbz
and it turns out that I also need a different version of x libraries,
for example, I'm required to install:
xtrans-1.0.4

I go to sysinstall and I realize that because my version of FreeBSD is 7.3,
but it already includes the newer versions of  xtrans,

I am currently downloading a previous version of FreeBSD (7.1) to see if it
has the required previous version of xtrans,

I am concerned because according to the literature diablo is supposed to
be the maintained jdk for FreeBSD. And I realize that I am having to
download version 7.1 when we are already on version 8.0 of FreeBSD to make
java work

My question is: is Java in FreeBSD an experimental/academic package? Should
I rather go with the linux compatibility way?

Am I doing things incorrectly?


thank you

herbey
___
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: Wireless networking question

2010-04-25 Thread Chip Camden
On Apr 25 2010 16:18, Chip Camden wrote:
 On Apr 25 2010 21:26, S Roberts wrote:
  
  Hmmm.., you sure your ports system is installed / up-to-date there?
  
  Do you have any of the docs that would have shipped with the notebook?
  If not, I searched ASUS, and found a link to the English version manual
  here:
  http://support.asus.com/download/download.aspx?SLanguage=en-usproduct=3model=K72Ftype=mapf_type=19
  
  I've not downloaded it, so please see if there's anything that can
  assist. There **are** other resources at the ASUS site - you just have
  to use the menu on the right to select your particular model and review
  the list of resources that gets returned..,
  
  Hope this helps..,
  
  Regards,
  
  S Roberts
 
 Thanks for the attempt to help, but ports are up-to-date.  I'm on
 8.0-RELEASE amd64 -- maybe scanpci isn't available on amd64?
 
 The download for the manual is exactly the same as the paper manual that
 came with the notebook.  It gives very little technical information.  On
 the web site, all I could find is that it's 802.11n capable, which I
 already knew from the sales pamphlet.
 

OK -- searching the ASUS site for Windows 7 64bit docs (that's what came
on it), I find three possibilities for the wireless device:

1. Intel 1000
2. Intel 6200
3. Azurewave

Looks like both of the first two are addressed by driver iwn on OpenBSD,
but not on FreeBSD.  The third one I don't see anywhere.  Looking here:

http://en.wikipedia.org/wiki/Comparison_of_open_source_wireless_drivers#FreeBSD

Looks like that page was last updated for FreeBSD on April 25.
In any case, I tried iwn, and that doesn't work.

-- 
Sterling (Chip) Camden | camdensoftware.com | chipstips.com | chipsquips.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


ezjail and dmsg -a command

2010-04-25 Thread Fbsd1
I have a directory tree type of ezjail up and running. When in jail 
console I enter dmesg -a and i get the hosts last boot messages not the 
jails. Why is this dmesg command issued from within the jail have access 
to the host world? Something wrong here!

___
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: diablo-jdk not installing correctly

2010-04-25 Thread Jonathan Chen
On Sun, Apr 25, 2010 at 07:34:19PM -0400, herbey zepeda wrote:

[...]
 I am concerned because according to the literature diablo is supposed to
 be the maintained jdk for FreeBSD. And I realize that I am having to
 download version 7.1 when we are already on version 8.0 of FreeBSD to make
 java work
 
 My question is: is Java in FreeBSD an experimental/academic package? Should
 I rather go with the linux compatibility way?

There has been no movement with the diablo-jdk for ages; java/openjdk6
is better maintained and would be a better choice.

Cheers.
-- 
Jonathan Chen j...@chen.org.nz

We laugh in the face of danger, we drop icecubes down the vest of fear
 - Edmond Blackadder III
___
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


installing gnome

2010-04-25 Thread Michael Glaz
I installed FreeBSD 8.0.   Then I followed the directions on installing Gnome2. 
 I typed pkg_add -r gnome2.  Then I added the line

gnome_enable=YES to /etc/rc.conf.  But to no avail.  Gnome doesn't boot.  
Only the terminal boots up.  I also get this error during boot: 
gdm-binary[1285]: WARNING: GdmLocalDisplayFactory: maximum number of X display 
failures reached: check X server log for errors

mike



  
___
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: diablo-jdk not installing correctly

2010-04-25 Thread Charlie Kester

On Sun 25 Apr 2010 at 17:57:27 PDT Jonathan Chen wrote:

On Sun, Apr 25, 2010 at 07:34:19PM -0400, herbey zepeda wrote:

[...]

I am concerned because according to the literature diablo is supposed to
be the maintained jdk for FreeBSD. And I realize that I am having to
download version 7.1 when we are already on version 8.0 of FreeBSD to make
java work

My question is: is Java in FreeBSD an experimental/academic package? Should
I rather go with the linux compatibility way?


There has been no movement with the diablo-jdk for ages; java/openjdk6
is better maintained and would be a better choice.


Maybe so, but it seems some ports are calling out diablo-jdk as a
dependency.  I know I didn't explicitly choose to install it.

I should probably rtfm, but is there a way to force ports to use openjdk
instead?

___
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: Wireless networking question

2010-04-25 Thread Kevin Kinsey

Chip Camden wrote:

On Apr 25 2010 16:18, Chip Camden wrote:

On Apr 25 2010 21:26, S Roberts wrote:

Hmmm.., you sure your ports system is installed / up-to-date there?

Do you have any of the docs that would have shipped with the notebook?
If not, I searched ASUS, and found a link to the English version manual
here:
http://support.asus.com/download/download.aspx?SLanguage=en-usproduct=3model=K72Ftype=mapf_type=19

I've not downloaded it, so please see if there's anything that can
assist. There **are** other resources at the ASUS site - you just have
to use the menu on the right to select your particular model and review
the list of resources that gets returned..,


Thanks for the attempt to help, but ports are up-to-date.  I'm on
8.0-RELEASE amd64 -- maybe scanpci isn't available on amd64?


Let me preface my commentary with I'm way out of my league, so #include
disclaimer.h and all that ...

For starters, in re: above, didn't someone suggest libpciaccess as the
source for scanpci?  I can't tell if you are misunderstanding what S
Roberts suggested, or I am misunderstanding what you are responding.

I'm pretty sure there's some misunderstanding here, though.


The download for the manual is exactly the same as the paper manual that
came with the notebook.  It gives very little technical information.  On
the web site, all I could find is that it's 802.11n capable, which I
already knew from the sales pamphlet.


OK -- searching the ASUS site for Windows 7 64bit docs (that's what came
on it), I find three possibilities for the wireless device:

1. Intel 1000
2. Intel 6200
3. Azurewave

Looks like both of the first two are addressed by driver iwn on OpenBSD,
but not on FreeBSD.  The third one I don't see anywhere.  Looking here:

http://en.wikipedia.org/wiki/Comparison_of_open_source_wireless_drivers#FreeBSD

Looks like that page was last updated for FreeBSD on April 25.
In any case, I tried iwn, and that doesn't work.


I thought we had pciconf output that stated it was an Atheros chipset?
In that case, it would be the Azurewave, right?  I'd suspect it might
be supported under ath(4), but you'd wanna read the manpage and possibly
even the source for any kind of confirmation on that; the manpage does
specifically say that adapters based on the AR5005VL aren't supported.
However, the manpage might be slightly out-of-date, also.

The other thing I recall seeing is that a new variant of a supported
chipset comes out, and the driver code doesn't recognize it even though
it might work well.  Used to be something like a VENDOR_ID string in
the source files; I don't know if it's still the case, but if it was,
some people have been able to hack their own device support in rare
cases simply by adding the new info to the driver file and recompiling
it, but you'd want someone with a lot more $OS_foo than I have to help
out with that (or tell you if it's even possible).  This is open-source
stuff; you might even get sam@ 's attention and get help from the writer
himself if you're wearing your lucky sneakers.

Kevin Kinsey
___
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


HP Proliant ML 150 G5

2010-04-25 Thread William E. Moreno A.
I tried to install FreeBSD 8.0 AMD64 on an HP Proliant ML 150 G5 Intel Xeon 
quad core but fails. With CentOS 5.4 the installation was Ready.
 
I would like to know is this product ML 150 G5 is incompatibility with FreeBSD 
8.0
 
I tested FreeBSD with an ML 115 G5 and the installation was ready.

Thanks
 
William Moreno

P.D.: El presente correo no contiene tildes para evitarle al receptor
inconvenientes en su lectura.



___
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: installing gnome

2010-04-25 Thread Lokadamus

Am 26.04.2010 03:22, schrieb Michael Glaz:

I installed FreeBSD 8.0.   Then I followed the directions on installing Gnome2. 
 I typed pkg_add -r gnome2.  Then I added the line

gnome_enable=YES to /etc/rc.conf.  But to no avail.  Gnome doesn't boot.  
Only the terminal boots up.  I also get this error during boot:
gdm-binary[1285]: WARNING: GdmLocalDisplayFactory: maximum number of X display 
failures reached: check X server log for errors

mike




___
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

   

Have you installed xorg server?
pkg_add -r xorg should it install.



Cheers
___
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: diablo-jdk not installing correctly

2010-04-25 Thread Sergio Tam
2010/4/25 herbey zepeda zepedaher...@gmail.com:
 Hi,

 I want to install java and tomcat. After some time trying I could not
 install the JDK, I first tried to install diablo jdk 1.6.
 I go to /usr/ports/java/diablo-jdk1.6, turns out that I have to go through
 further step due to licensing,
 I do that step and go to
 http://www.freebsdfoundation.org/downloads/java.shtml
 and choose:

 Diablo Caffe JDK 1.6.0-7 FreeBSD 7.x/i386 End-User 61M
 diablo-jdk-freebsd7.i386.1.6.0.07.02.tbz

 I read and accept the licensing terms,

 then I do pkg_add Diablo Caffe JDK 1.6.0-7 FreeBSD 7.x/i386 End-User 61M
 diablo-jdk-freebsd7.i386.1.6.0.07.02.tbz
 and the problem starts,

 it's requiring me to install javavmwrapper
 In install the respoective port
 then try again
 pkg_add Diablo Caffe JDK 1.6.0-7 FreeBSD 7.x/i386 End-User 61M
 diablo-jdk-freebsd7.i386.1.6.0.07.02.tbz
 and it turns out that I also need a different version of x libraries,
 for example, I'm required to install:
 xtrans-1.0.4

 I go to sysinstall and I realize that because my version of FreeBSD is 7.3,
 but it already includes the newer versions of  xtrans,

 I am currently downloading a previous version of FreeBSD (7.1) to see if it
 has the required previous version of xtrans,

 I am concerned because according to the literature diablo is supposed to
 be the maintained jdk for FreeBSD. And I realize that I am having to
 download version 7.1 when we are already on version 8.0 of FreeBSD to make
 java work

 My question is: is Java in FreeBSD an experimental/academic package? Should
 I rather go with the linux compatibility way?

 Am I doing things incorrectly?



Hi

http://www.freebsd.org/cgi/cvsweb.cgi/ports/java/diablo-jdk16/


cd /usr/ports/java/diablo-jdk16
make install

2.Download the package manually from the links provided by Ports. This
is due to licensing issues.
3.Copy the downloaded file into /usr/ports/distfiles.
4.Launch the installation again
5.Maybe you need repeat step 2 and download another package.



Note: Please note that due to the current Sun licensing policy the
resulting binaries can not be distributed and you are only permitted
to use/hack it personally. Due to the same reasons you have to
manually fetch the source code and patchset for FreeBSD.

If you should have trouble, you can see the FreeBSD Handbook section
on installing applications for help.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html


this port Requires: inputproto-1.5.0, javavmwrapper-2.3.4,
kbproto-1.0.3, libICE-1.0.4_1,1, libSM-1.1.0_1,1, libX11-1.2.1_1,1,
libXau-1.0.4, libXdmcp-1.0.2_1, libXext-1.0.5,1, libXi-1.2.1,1,
libXp-1.0.0,1, libXt-1.0.5_1, libXtst-1.0.3_1, libpthread-stubs-0.3_3,
libxcb-1.5, pkg-config-0.23_1, printproto-1.0.4, recordproto-1.13.2,
xextproto-7.0.5, xproto-7.0.15


javavmwrapper-2.3.4 this port  does not Requires another

http://www.freebsd.org/cgi/cvsweb.cgi/ports/java/javavmwrapper/


Your problem its with xtrans (diablo-jdk16 and javavmwrapper does not
Requires xtrans)

Maybe you need upgrade your ports

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html

Regards.
___
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