RE: Still looking for a calendar server...

2008-02-18 Thread Da Rock



 Date: Mon, 18 Feb 2008 15:52:58 +1300
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 CC: freebsd-questions@freebsd.org
 Subject: Re: Still looking for a calendar server...
 
 On Mon, Feb 18, 2008 at 02:21:44AM +, Da Rock wrote:
 
 I've brought this up before, I know, but I need a caldav server that will 
 work with evolution. I've checked out Darwin Calendar Server, but they are 
 not going to solve an issue (as of 2006) that means evolution can't use it, 
 and evolution won't budge either- so a mexican stand-off and I'm caught in 
 the middle (probably with others).
 
 
 You could try Bedework http://www.bedework.org/ and see if that fits
 with what you want. However, it requires Java Web container to live
 in.
 
 Cheers.
 -- 
 Jonathan Chen 
 --
  In mathematics you don't understand things.
You just get used to them.
  - Johann von Neumann
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

It looks almost perfect, but once again I have been stumbled. I need to setup 
tomcat to get it working, and tomcat is now installed, but the apache connector 
is the tough point again- I'm trying to install mod_webapp as per instructions 
here (http://www.osnews.com/story/3558), but the port breaks with missing 
includes.

It appears FreeBSD just doesn't want to be a calendar server! I am chasing 
either the developer or another poor soul trying to get the mod_dav_acl (which 
is required by mod_caldav) to work on anything other than linux. Once this 
hurdle is worked out then the caldav module might work very well.

As for bedework I'll keep on that track- I have to get somewhere eventually! 
One way or the other

At the end I'll post the result, and maybe I'll work on a port or something.
_
New music from the Rogue Traders - listen now!
http://ninemsn.com.au/share/redir/adTrack.asp?mode=clickclientID=832referral=hotmailtaglineOct07URL=http://music.ninemsn.com.au/roguetraders___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Mounting a read-only md FS as read-only

2008-02-18 Thread Wojciech Puchar

want to change the image, just examine it, I specified -o readonly
to mdconfig and the equivalent to mount.  Is there some reason why
this should not work?  The backing file, and the mountpoint, do
exist.


does mount_ext2fs support readonly at all?

try -o readonly before -f filename in mdconfig but i don't know if it does 
matter.






# ls -ld [filename]
-rw-r--r--  1 perryh  perryh  104857600 Mar 16  2007 [filename]
# mdconfig -a -t vnode -f [filename] -o readonly
md0
# ls -ld /dev/md0 /[mountpoint]
crw-r-  1 root  operator1,  15 Nov 24 21:17 /dev/md0
drwxr-xr-x  2 perryh  perryh512 Feb 17 21:57 /[mountpoint]
# mount -r -o noexec -t ext2fs /dev/md0 /[mountpoint]
mount_ext2fs: /dev/md0: Read-only file system
# mount -o ro,noexec -t ext2fs /dev/md0 /[mountpoint]
mount_ext2fs: /dev/md0: Read-only file system
# /sbin/mount_ext2fs -o ro,noexec /dev/md0 /[mountpoint]
mount_ext2fs: /dev/md0: Read-only file system
# mdconfig -l -u 0
md0 vnode 100M  /[mountpoint]
# uname -a
FreeBSD fbsd61 6.1-RELEASE FreeBSD 6.1-RELEASE #30: Mon Jan  1 23:01:34 PST 
2007 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/GENERIC  i386
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


question and a comment.....

2008-02-18 Thread Gary Kline

People,

When I discovered that KDE was missing OpenOffice, I built it,
and voila! it showed up in the menu.   Then I decided to add all
of Gnome tools becase I like both.Question: how do I get my
new Gnome suite to show up in my KDE menus?  I'm happy that the
two managers are inter-operable, but there could be even more
integration.

gary

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fdisk from fixit CD: geom not found

2008-02-18 Thread Jonathan McKeown
On Sunday 17 February 2008 23:55, Wojciech Puchar wrote:

  I'd still rather there wasn't an ``error'' message at all unless there's
  a genuine error: I'm planning for the case of an operator with limited
  skills doing a ``monkey see, monkey do'' restore (not trying to be rude,
  but

 monkey can do ifconfig, route and /etc/rc.d/sshd start

 then you do the rest

Except this is a disaster recovery plan: it must not rely on me being 
available. I'm looking at a scenario in which the survivors of the disaster 
have bought replacement hardware, hired someone who's done a bit of Linux, 
and handed them a set of offsite backup tapes and a ring-binder. (I can get 
most sites tapes offsite by 60+km on a daily basis: if a disaster 
simultaneously takes out, for example, the city of Durban - at sea level, 
population 3.5 million - and Pietermaritzburg, 80km inland and 750 metres 
above sea level, I'm not sure restoring our backups is going to be the 
biggest worry.)

Jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: question and a comment.....

2008-02-18 Thread Wojciech Puchar

please ask on KDE or Gnome mailing lists.

while FreeBSD ports install files for openoffice needed by kde (as 
you've said, icon showed up), but KDE and Gnome it's completely not

FreeBSD specific.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


named executables not found in my box ; (Copied it from another machine)ut few Questions :

2008-02-18 Thread kkchn sms
People:   please excuse me , but I tried another attempt to fix the issue


(I have installed the OS from the ISO image from which I installed
another box there named is running fine , but unfortunately in this
box its not running ), I can't trace it what went wrong ?

 Named is not starting , named forcestart I tried but no use ,

later I found that  ther is no executables  as /usr/sbin/named

 /usr/sbin/rndc   rndc-confgen  also not found  in this server box

whats went wrong with this box ?all named dirs  files there execpt
/usr/sbin/namedrndc  executables :


So how can I rebuild/reinstall this named services in this FreeBSd6.2 box   ,

Expecting your valuable comments to fix this issue :



 Your Kind attention to the following section : most important  (
After a few days effort to fix this issue , I became desperate and
done an attempt as follows )


 : I made an attempt(Foolish ?I dont know if so please tell me :) ) to
make named running in this  box : what I did was   I copied the
/usr/sbin/named executables from my freeBSD-6.2 Desktop-PC to this
slave DNS
 server machines's  /usr/sbin dir

and done the following


[EMAIL PROTECTED] /home/dhanesh]# /etc/rc.d/named forcestart
rndc-confgen: not found   / (HERE it  compalined about   r n d c   :
I haven't copied rndc  rndc-confgen  from my Desktop -PC ;what they will
do  ? I mean  both  rndc  rndc-confgen?   is rndc  rndc-confgen  necessary
for a DNS server ? then I can copy these two files also)  //
Starting named.
[EMAIL PROTECTED] /home/dhanesh]# sockstat -4p 53   ///  here after copying 
named
exe  and doing named forcestart  I found its started working  output as
follows )  /
USER COMMANDPID   FD PROTO  LOCAL ADDRESS FOREIGN ADDRESS
bind named  71340 20 udp4   2xx.xxx.xxx.xxx:53*:*
bind named  71340 21 tcp4   2xx.xxx.xxx.xxx:53*:*
bind named  71340 22 udp4   127.0.0.1:53  *:*
bind named  71340 23 tcp4   127.0.0.1:53  *:*


[EMAIL PROTECTED] /home/dhanesh]# cd /etc/namedb  /// here this machine I 
configued
as a slave DNS and found that its pulled out the zone file form master zone
file from my primary DNS server ) ///
[EMAIL PROTECTED] /etc/namedb]# ls
PROTO.localhost-v6.rev  make-localhost  named.root
PROTO.localhost.rev master  slave
dynamic named.conf
[EMAIL PROTECTED] /etc/namedb]# cd slave/
[EMAIL PROTECTED] /etc/namedb/slave]# ls
db-kL66bE3v mysite.net.slave //here I found a new
file(db-kL66bE3v)  created !!! what this new file ? it is an emty file too
:)

and
[EMAIL PROTECTED] /etc/namedb/slave]#vi my.net.slave

 //shows me that my primary zone file automatically pulled here , I think
now this machine is working as a slave DNS   Server : ///


A Few Questions  I have to clarify  : Let me ask them to you

But my questiona are  the follows

Q no : Did you think this setup will work well as a slave DNS  Server
without any issues  ( I havn't copied rndc  rndc-confgen)   ?

Q no. 2  :The step  I followed (copying /usr/sbin/named )  from another
machine to this server box , is it a right way ? will it make any issues in
future ?

Q no: 3  : I havn't copied  /usr/sbin/rndc   /usr/sbin/rndc-confgen from
the other machine to this slave DNS server machine ? what the siginificance
og rndc and rndc-confgen ? I f I am not copying these 2 files will make any
issues in the working of this server as a slave DNS ?

Q no:4 :   Whats your advice copy the rndc  rndc executables also to this
machine and restart named service ?


OR

what I did was absolutely wrong , so remove  what I have done so far , go
for a port installation of bind9 and try again?

thanks in advance
Dhanesh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


network not performing - where to start?

2008-02-18 Thread Boldra

Hi

I'm running 6.2 as a fileserver and sambaPDC on a home network, and I'm 
having problems with network performance.


The machine is an old laptop with a pcmcia 10/100 network card but it 
seems that I'm not getting better than a 10Mbit connection.  This number 
is based largely on observations copying large files to and from 
windows, I'm sure there's a better way to test this from BSD. 

I believe I've eliminated everything outside the network card by doing 
some tests with a crossover cable and checking the switch and cable. I 
believe I've eliminated problems inside the machine with various time 
dd if= of= tests.


I think ifconfig -a is saying that the os thinks the card is 100Mbit:

ed1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   inet 192.168.1.5 netmask 0xff00 broadcast 192.168.1.255
   ether 00:a0:0c:40:32:a3
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active


So my questions are:
How do I check the network performance from within freebsd?
What other tools can I use to check for network problems?
How can I check the network card is configured and working correctly?

Thanks for any help!

Paul Boldra


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: network not performing - where to start?

2008-02-18 Thread Erik Norgaard

Boldra wrote:


I think ifconfig -a is saying that the os thinks the card is 100Mbit:

ed1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   inet 192.168.1.5 netmask 0xff00 broadcast 192.168.1.255
   ether 00:a0:0c:40:32:a3
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active


So my questions are:
How do I check the network performance from within freebsd?
What other tools can I use to check for network problems?
How can I check the network card is configured and working correctly?


It is not irrelevant which protocol you use to copy large files. Some 
protocols has less overhead. Also, you may experience better performance 
between bsd stations, if you can try set up two bsd stations to test 
performance on different protocols, ftp, http, tftp, whatever.


I think the best I have had on a 10Mbit/s was 1Mbyte/s - that is about 
80% is actually effective payload. Another thing you can do to get more 
correct numbers is to use the packet filtering statistics.


Cheers, Erik
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Get the empty space on a file system

2008-02-18 Thread Olivier Nicole
Hi,

I am writing a C application that would store files in a directory.

Before it starts storing files, I would like the application to check
is there is enough space in the file system.

How to:

1) knowing the name of the directory, how toknow the file system it
   belongs to (not considering symbolic links, I can decide that the
   directory is always a real path);

2) knowing the file system from 1), how to check the remaining space
   in the file system?

Thanks in advance,

olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Get the empty space on a file system

2008-02-18 Thread Heiko Wundram (Beenic)
Am Montag, 18. Februar 2008 11:25:39 schrieb Olivier Nicole:
 How to:

 1) knowing the name of the directory, how toknow the file system it
belongs to (not considering symbolic links, I can decide that the
directory is always a real path);

 2) knowing the file system from 1), how to check the remaining space
in the file system?

man 2 statfs
man 2 statvfs

The former is freebsd-specific, though (AFAIK); the latter is portable (i.e., 
POSIX), but might return garbage (which is also indicated in the man-page for 
it).

-- 
Heiko Wundram
Product  Application Development
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Get the empty space on a file system

2008-02-18 Thread Dominic Fandrey

Olivier Nicole wrote:

Hi,

I am writing a C application that would store files in a directory.

Before it starts storing files, I would like the application to check
is there is enough space in the file system.

How to:

1) knowing the name of the directory, how toknow the file system it
   belongs to (not considering symbolic links, I can decide that the
   directory is always a real path);

2) knowing the file system from 1), how to check the remaining space
   in the file system?

Thanks in advance,

olivier


You normally just start writing and deal with the errors that come from full 
file systems when they show up. The C functions set errno accordingly.


The reason is that the system lies about the remainig space. Weather there 
is any space left you may use, depends on the user you're running your 
program as. It would be kinda stupid if your program didn't work because the 
disk was full, even when you're running as root and are permitted to use the 
remaining safety space (8% by default).

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


rc.diskless2 on FreeBSD 6.2

2008-02-18 Thread Andrew Von Cid
Hey,

I'm currently setting up a system that runs off a compact flash disk.
I'd like to have memory filesystems for /var, /tmp  /dev to minimise
the amount of writes to the cf.

I read an article[1] that recommends the use of /etc/rc.diskless2,
however I don't have /etc/rc.diskless2 on 6.3 nor on 5.4, 6.1, 6.2 or
7.0.  I guess it must have been removed somewhere around 5.x

Is there an alternative script in newer versions of FreeBSD?

I can create the mfs partitions in fstab and write a simple script that
will populate them with the necessary files on boot.  However this seems
like more work than using something standard like rc.diskless2.  

Many thanks,


Andrew.

[1]http://www.feebsd.org/doc/en_US.ISO8859-1/articles/solid-state/ro-fs.html
-- 
accidents happen... 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


rmuser error - shared memory

2008-02-18 Thread Lubomir Matousek
Thanks very much Bill and James. Hana vs hanka is only typo at this mail
(hana is correct, as it is in my box).
I apologize for this incorrect information.


Bill, you are right, the kernel was build without shared memory support.
Option SYSVSHM is not included in the kernel.

As I cannot recompile the kernel on this production server now, can be there
any impact on instability of my system with missing SYSVSHM option?



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bill Moran
Sent: Saturday, February 16, 2008 6:04 PM
To: [EMAIL PROTECTED]
Cc: Lubomir Matousek; freebsd-questions@freebsd.org
Subject: Re: (no subject)

James [EMAIL PROTECTED] wrote:

 
 On Sat, 2008-02-16 at 09:11 +0100, Lubomir Matousek wrote:
  Dear list, 
  
   
  
  I have the following problem when using rmuser (freebsd 6.2)
  
   
  
  --
  
  rmuser -v hana
  
  Matching password entry:
  
   
  
  hana:*:1091:1092::0:0:/usr/home/hana:/usr/sbin/nologin
  
   
  
  Is this the entry you wish to remove? yes Remove user's home directory
  (/usr/home/hanka)? yes Removing crontab for (hana):.
  
  Removing at(1) jobs owned by (hana): 0 removed.
  
  Removing IPC mechanismsipcs: sysctlbyname: kern.ipc.shmmax: No such file
or
  directory
  
  ipcs: sysctlbyname: kern.ipc.shmmax: No such file or directory
  
  ipcs: sysctlbyname: kern.ipc.shmmax: No such file or directory .
  
  Terminating all processes owned by (hana): -KILL signal sent to 0
processes.
  
  Removing files owned by (hana) in /tmp: 0 removed.
  
  Removing files owned by (hana) in /var/tmp: 0 removed.
  
  Removing mail spool(s) for (hana): /var/mail/hana.
  
  Removing user (hana) (including home directory) from the system: Done.
  
  ---
  
   
  
  The problem started, when I accidentaly deleted /usr/home directory and
I
  had to create a new one. I checked /etc/password file and the direcory
  existed before using rmuser. Can anybody help please?
  
   
  
  
  
  Lubos
 
 
 Looks like the problem is that somewhere within there it's expected that
 the home directory isn't /usr/home/hana, it's /usr/home/hanka
 
 Have you checked /etc/master.passwd to make sure that there's no
 mis-entry in there? Or just try creating /usr/home/hanka and see if it
 works itself out.

Personally, I'm unsure where the problem is.  The only suspicious thing
I see is the inability to remove shared memory segments, which is a bit
strange but not wholly unexpected.  Did you build a kernel without shared
memory?

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Default named issues in FreeBSD-6.2:Any hints most welcome

2008-02-18 Thread Bogdan Ćulibrk

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

dhaneshk k wrote:
|
| People: i have a strange issue with named services in my
freeBSD-6.2-Release Box
|
|
| (I have installed the OS from the ISO image from which I installed
another box there named is running fine , but unfortunately in this box
its not running ), I can't trace it what went wrong ?
|
|  Named is not starting , named forcestart I tried but no use ,
|
| later I found that  ther is no executables  as /usr/sbin/named
|
|  rndc also not found
|
| whats went wrong with this box ?all named dirs  files there  but  no
/usr/sbin/named executables :
|
|
| So how can I rebuild/reinstall this named services in this FreeBSd6.2
box   ,
|
| Expecting your valuable comments to fix this issue :
|
|
| thanks in advance
| Dhanesh
|
|
| The following informations may be useful for you to judge whats wrong
with my installation
|
|
| [EMAIL PROTECTED] /usr/sbin]# find / -name named
[...]
| /usr/sbin/named.reconfig
| /usr/sbin/named.reload

Hi there,

I'm not sure what kind of third party software of administrator you have
there, but seems to me that your named binary is missing.

However you can reinstall your binary from source tree located in:
/usr/src/usr.sbin/named


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAke5dxoACgkQo6C4vAhYtCCWfgCfQv4VWZYw1rySGIwcI1Uis1xA
cL4AniojXemkoPH8Ylz1QC+n3nFlePhi
=StWc
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PHP cli segfaults

2008-02-18 Thread Drew Sanford

Bogdan Ćulibrk wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Drew Sanford wrote:
| Command line programs for php seem to segfault on a 7.0RC1 box (yes, I
| know, I should update to RC2) - for example:
|
| [EMAIL PROTECTED](~/bin)$ php -v
| PHP 5.2.5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb  9 2008 13:03:20)
| Copyright (c) 1997-2007 The PHP Group
| Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
| zsh: segmentation fault (core dumped)  php -v
|
| Any pointers? Just update and see if that fixes it? Thanks in advance.
|
|
| uname output:
| FreeBSD colossus.cotharyus.net 7.0-RC1 FreeBSD 7.0-RC1 #0: Sat Feb  9
| 11:43:37 CST 2008

Hi,
do you use precompiled port or you built your own?


Built from ports, as opposed to using a binary package, if that's what 
you're asking.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: network not performing - where to start?

2008-02-18 Thread Erik Norgaard

Boldra wrote:

Can you point me to a man page or something for your suggestion use 
packet filtering statistics ?  Where do I start?


If you have a firewall enabled this usually creates statistics on the 
packets sent and received. If not, you can create a simple filter that 
just passes everything. With packet filter something like


pass on ed1 all

should do, where ed1 is the name of you interface.

It can show you just how much data is actually sent when you transfer 
that 100Mbyte file.


I'm a bit outdated on the current situation, it's been a long time since 
I've had anything but FreeBSD to worry about - that is, I don't care 
about optimal performance for those who choose to use windows :)


You will always loose something due to overhead in protocols on 
different levels, for example tcp send back ACK packets, using scp your 
system will also do encryption and decryption, etc.


I recall once also experiencing performance issues when transfering data 
between linux and freebsd - that was more than 5 years ago, but I would 
always assume performance to be best between to equivalent systems.


I don't know your brand of interface, but while the interface may 
formally support 100Mbit/s, in reality other things also affect 
performance, particularly cheap NICs perform bad in peak load, although 
they do communicate at 100Mbit. Don't ask me about details, but 
buffering is one of the issues AFAIK.


Also, check MTU on the windows machines, that can be a killer if it 
forces fragmentation. I recall once that some set the MTU to 1492 or 
some other value. It can have significant impact on performance if MTUs 
differ and packets are fragmented.


There is the MTU ping test:

DOS ping ip.n.u.m -f -l 1492

see http://help.expedient.com/broadband/mtu_ping_test.shtml

Cheers, Erik
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: what happened to linuxflashplugin?

2008-02-18 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Jonathan
 McKeown
 Sent: Wednesday, February 13, 2008 11:19 PM
 To: freebsd-questions@freebsd.org
 Subject: Re: what happened to linuxflashplugin?


 On Thursday 14 February 2008 00:14, Erik Osterholm wrote:
   IMHO, for an individual to state that Flash is not a relevant issue
   simply because they choose not to employ it, is similar to patient
   claiming that cancer research is a waste of time simply because they
   are not afflicted with the condition.
 
  Bad analogies are like a leaky screwdriver.
 
  All throughout this thread, there have been people mixing up issues.
  It's true that Flash is used on many, many websites, but one of the
  earliest complaints I saw regarded Flash-only sites--sites which
  require Flash in order to navigate.  These sites seem fairly rare.  It
  is manipulative and misleading to argue that because so many sites
  /make use of Flash/, then /Flash has become an integral part of the
  web/.  I browse with Flash disabled all of the time, only enabling it
  specifically when I need it to use the web site.  It certainly
  happens--but it's not a constant thing.  I'm aware that Flash content
  exists on the pages I view, but most of the time it's supplemental,
  and the page degrades quite nicely without it.

 This is the best summary of the issues I've seen in this thread.

 One last time, because we're going round in circles:

 I don't have a problem with people putting in the effort to get
 Flash working:
 I'd be even happier if Adobe would do it themselves; but there's not much
 that Flash is essential for, and to claim that ``half the entire Web'' is
 unusable without Flash, seems somewhat overstated. There are many
 sites which
 degrade, more or less gracefully, in the absence of Flash, but,
 like Erik, I
 don't come across many that are completely unusable.


I agree.  My experience is that most of the advertising sites
use Flash.  My guess is with the sourceforge thing that what is
requiring it is not Sourceforge itself, but rather some 3rd party
advertising site that their page is liked to.  I see this quite
a lot on cnn.com and so on.  Not being able to see those sites
is no loss, in my opinion.

I don't, however, put any credibility into the conspiracy theories
that Flash has code to disable it on BSD.  MacOS X runs flash just
fine and MacOS X is just as BSD as FreeBSD is.

The thing is that you can easily run Remote Desktop on your
FreeBSD system and remote-term into a headless Windows XP system
you have kicked under your desk, so I don't see that even if
Flash was Windows-Only it would be a great problem.  Or, you can
SSH into a convenient MacOS X system and run Firefox as a client
on the MacOS X system and display it's output on your FreeBSD
desktop.  So please explain to me how exactly FreeBSD not being
able to run Flash is a huge problem?


 I still haven't seen any comeback on the accessibility issue: is
 it really the
 case that banks in the USA (for example) have websites that are not
 accessible to a section of the population, and that this isn't
 covered by the
 ADA? (I'm not trying to score points here: I'm genuinely interested).


There is a court case right now that's wending it's way though the
US courts that addresses this.  If you google around for it you
can come up with it.  As I recall some blind person sued a
public website because of this.  My guess however is that it
won't pan out.  In the US the law allows for alternative access for
disabled.  For example, if you build a building with a big impressive
staircase leading up to the front entrance for architectural asthetic
reasons, you don't have to make it wheelchair accessible if you have
a ramp to a door around the side that leads to the same interior entrance.

The fact is in building construction, most of what disabled people
want (lack of stairs, wide doors, etc.) actually reduce your liability
with normal people from tripping and such, which is why with new
construction it's usually stupid to not design it ADA-compliant,
aside from the building code requirements which require it anyway.

With websites, if an organization's only portal to the public is
the web, I think they probably are going to have to make their
site readable by blind people.  Which means flash isn't going to
be compatible.  But an organization could sidestep this by publishing
an 800 number going to some call center in India, and most banks have
pretty extensive telephone banking whereby you call the bank's 800
number and use a touch-tone phone to key in your account number and
such to do your banking.  As a matter of fact I routinely use the
800 number voice response unit of my bank to check bank balances
rather than logging into the website - it's faster.

Ted

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, 

Re: network not performing - where to start?

2008-02-18 Thread Boldra
Thanks for your suggestions Erik, I had only been speed testing with 
smb.  I just did a quick test with wget under cygwin and I'm still 
getting around 1.5MB/second, which is about the same as I get with smb.


scp peaked at around 900KB/second, which also seems to suggest the 
hardware is only working at 10% capacity.


Can you point me to a man page or something for your suggestion use 
packet filtering statistics ?  Where do I start?


Paul Boldra



Erik Norgaard wrote:

Boldra wrote:


I think ifconfig -a is saying that the os thinks the card is 100Mbit:

ed1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   inet 192.168.1.5 netmask 0xff00 broadcast 192.168.1.255
   ether 00:a0:0c:40:32:a3
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active


So my questions are:
How do I check the network performance from within freebsd?
What other tools can I use to check for network problems?
How can I check the network card is configured and working correctly?


It is not irrelevant which protocol you use to copy large files. Some 
protocols has less overhead. Also, you may experience better 
performance between bsd stations, if you can try set up two bsd 
stations to test performance on different protocols, ftp, http, tftp, 
whatever.


I think the best I have had on a 10Mbit/s was 1Mbyte/s - that is about 
80% is actually effective payload. Another thing you can do to get 
more correct numbers is to use the packet filtering statistics.


Cheers, Erik
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


lagg driver at 6.3-R ?

2008-02-18 Thread Frank Bonnet

Hello

I plan to migrate my mailhub to 6.3-R soon, the machine ( IBM X3650) has 
two giga-ethernet interfaces and I really would like to use the LAGG 
driver as the machine is connected to a Cisco 3750 switch.


Is this driver OK for an email production environement ?

Thanks a lot





___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PHP cli segfaults

2008-02-18 Thread Bogdan Ćulibrk

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Drew Sanford wrote:

| Hi,
| do you use precompiled port or you built your own?
|
| Built from ports, as opposed to using a binary package, if that's what
| you're asking.

Hi,

same thing happened to me couple of times and caused by:

1. Userland and kernel was out of sync
2. Dependencies that PHP relies on were cause of segfaults. Recursive
portupgrade helps.
3. Messing with libmap.conf or CFLAGS, don't use -pthread nor high
optimization flags.


It's really hard to tell out of the bloom what might be causing it, but
that's the price you need to pay if you are tracking unstable branch.


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAke5i1UACgkQo6C4vAhYtCAu7ACffvs4sxfGnewYFfOmEqQW4+AW
7fgAnjJt3lWZio6e+J5t+39bIbf653En
=GIYe
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Unable to mount partition with ntfs-3g

2008-02-18 Thread Dominic Fandrey

Kevin Oberman wrote:

Date: Fri, 08 Feb 2008 23:11:37 +0100
From: Dominic Fandrey [EMAIL PROTECTED]

Kevin Oberman wrote:

I would love to be able to mount my NTFS partition R/W, but the FreeBSD
NTFS support is read-only (or almost read-only), so I installed
fusefs-ntfs which I thought would allow this.

After installation (which also pulled in fusefs-kmod, fusefs-libs, and
libublio), I added fusefs_enable=yes to my rc.conf. Then, after
starting fusefs (which means loading the fuse kernel module), I tried:
# mount -t ntfs-3g /dev/ad0s1 /C
mount: /dev/ad0 : Operation not supported by device

I got the same message for a USB drive on /dev/da0.

Documentation on ntfs-3g is pretty limited. Did I miss something? I
really rather not convert my new USB disk to FAT32 if I don't have to.
mount only calls a couple of file systems in the old fashioned way. One of 
them is ntfs. What I did to be able to mount NTFS systems with mount -t 
(obligatory if you want to use fstab to mount), I did the following:


# mv /sbin/mount_ntfs /sbin/mount_ntfs.bak
# ln -s /usr/sbin/mount_ntfs-3g /sbin/mount_ntfs

This is one of my /etc/fstab entries
/dev/ntfs/2vault  /mnt/vault  ntfs  rw,late,gid=5,umask=113,dmask=002  0  0



Cool! This is exactly what I was looking for. Since mount_ntfs-3g was
installed, I assumed that it would work with nmount, but I guess not.

Thanks very much! I think that this will solve all of my ntfs issues for
a while.


I have a fix now that I like better: 
http://www.freebsd.org/cgi/query-pr.cgi?pr=120784


You can apply it in the following way:

# cd /usr/src
# fetch -o mount.patch \
'http://www.freebsd.org/cgi/query-pr.cgi?prp=120784-1-diffn=/patch-1.diff'
# patch  mount.patch
# cd sbin/mount
# make all install clean
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: make not working gmake works

2008-02-18 Thread Schiz0
On Feb 18, 2008 10:02 AM, navneet Upadhyay [EMAIL PROTECTED] wrote:
 Hi,
  I have a Makefile . It works well with Linux versions when i use make
 command.The make command fails on FreeBSD but gmake works fine.

 Any clues on this behavior?

 Thanks,
 Navneet

The FreeBSD make is different than linux's make.
Linux uses GNU's make. BSD has it's own version.
gmake is the command of GNU make for bsd.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: make not working gmake works

2008-02-18 Thread Heiko Wundram (Beenic)
Am Montag, 18. Februar 2008 16:02:34 schrieb navneet Upadhyay:
  I have a Makefile . It works well with Linux versions when i use make
 command.The make command fails on FreeBSD but gmake works fine.

 Any clues on this behavior?

make != gmake on *BSD. BSD-make (i.e., make) is a completely different beast 
from GNU-make (i.e., gmake). Generally, Makefiles written for one (except for 
very simple ones) won't run under the other, and vice-versa.

man make

should get you started on the BSD-make syntax and its featureset.

-- 
Heiko Wundram
Product  Application Development
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


32 bit and 64 bit freebsd binary compatiblty

2008-02-18 Thread navneet Upadhyay
Hi ,
For our product we generally compile the binaries on 32 bit systems
and use them for both 32 and 64 bit systems. like we have same binaries for
32 bit and 64 bit RHEL.

We are porting the product to FreeBSD and when we tried the same,
i.erunning binaries compiled on 32 bit FreeBSD
6.2 on 64 bit FreeBSD system they produce *core dump.*


Any known reasons, do we have to compile binaries on 64 bit machine.

Thanks,
Navneet
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


make not working gmake works

2008-02-18 Thread navneet Upadhyay
Hi,
 I have a Makefile . It works well with Linux versions when i use make
command.The make command fails on FreeBSD but gmake works fine.

Any clues on this behavior?

Thanks,
Navneet
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: make not working gmake works

2008-02-18 Thread Dominic Fandrey

navneet Upadhyay wrote:

Hi,
 I have a Makefile . It works well with Linux versions when i use make
command.The make command fails on FreeBSD but gmake works fine.

Any clues on this behavior?

Thanks,
Navneet


Linux Distributions normally have GNU-Make installed as make. GNU-Make ist 
what you're running if you run gmake under FreeBSD. If you run make on 
FreeBSD you're running a variant of pmake, which has an entirely different 
syntax from GNU-Make.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 32 bit and 64 bit freebsd binary compatiblty

2008-02-18 Thread Norman Maurer

Am Montag, den 18.02.2008, 20:42 +0530 schrieb navneet Upadhyay:
 it and 64 bit RHEL.
 
 We are porting the product to FreeBSD and when we tried the same,
 i.erunning binaries compiled on 32 bit FreeBSD
 6.2 on 64 bit FreeBSD system they produce *core dump.*
 
 
 Any known reasons, do we have to compile binaries on 64 bit machine.
 
 Thanks,

Do you have the lib32's installed ?

bye
Norman


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 32 bit and 64 bit freebsd binary compatiblty

2008-02-18 Thread Dominic Fandrey

navneet Upadhyay wrote:

Hi ,
For our product we generally compile the binaries on 32 bit systems
and use them for both 32 and 64 bit systems. like we have same binaries for
32 bit and 64 bit RHEL.

We are porting the product to FreeBSD and when we tried the same,
i.erunning binaries compiled on 32 bit FreeBSD
6.2 on 64 bit FreeBSD system they produce *core dump.*


Any known reasons, do we have to compile binaries on 64 bit machine.


This should not happen. I would blindly guess at a linking problem. Are you 
using any shared libraries that do not belong to the base system?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 32 bit and 64 bit freebsd binary compatiblty

2008-02-18 Thread navneet Upadhyay
I checked in usr/local/ and didnt find the lib32 folder, so i guess they are
nt installed .

Why do i need them ? can u put some light on it ?


On 2/18/08, Norman Maurer [EMAIL PROTECTED] wrote:


 Am Montag, den 18.02.2008, 20:42 +0530 schrieb navneet Upadhyay:
  it and 64 bit RHEL.
 
  We are porting the product to FreeBSD and when we tried the same,
  i.erunning binaries compiled on 32 bit FreeBSD
  6.2 on 64 bit FreeBSD system they produce *core dump.*
 
 
  Any known reasons, do we have to compile binaries on 64 bit machine.
 
  Thanks,

 Do you have the lib32's installed ?

 bye
 Norman



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


My Rebuild Problem

2008-02-18 Thread tonylabarbara
Hi:
I wrote earlier, got one response. It was way off course, so I´m rewriting. No, 
I can rebuild X11 if I can solve the following problem:

Strange problem here. /usr/local got wiped for no reason I can think of. 
Everything. Nothing there at all. I can´t 
even change the pw. Nothing on this build anyway. But went to rebuild (6.2) and 
got caught in a loop -- note, that´s a loop -- in these steps:
-- Select Drive

-- FDISK Partition Editor (Q)

-- Install Boot Manager

I would prefer to rebuild (note: rebuild) because I want to add X Windows 
(that´s ADD X) and I´d rather not 
have to rebuild the kernel. How can I wipe the drive? If I cannot rebuild, can 
I 
just add the ports? What about changing pw?
TIA,
Tony


More new features than ever.  Check out the new AOL Mail ! - 
http://webmail.aol.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 32 bit and 64 bit freebsd binary compatiblty

2008-02-18 Thread navneet Upadhyay
Yes i am using few libs not built on FreeBSD but they work fine on 32 bit
freeBSD , so in principle they shud have the same behavior on 64 one.

On 2/18/08, Dominic Fandrey [EMAIL PROTECTED] wrote:

 navneet Upadhyay wrote:
  Hi ,
  For our product we generally compile the binaries on 32 bit
 systems
  and use them for both 32 and 64 bit systems. like we have same binaries
 for
  32 bit and 64 bit RHEL.
 
  We are porting the product to FreeBSD and when we tried the same,
  i.erunning binaries compiled on 32 bit FreeBSD
  6.2 on 64 bit FreeBSD system they produce *core dump.*
 
 
  Any known reasons, do we have to compile binaries on 64 bit machine.

 This should not happen. I would blindly guess at a linking problem. Are
 you
 using any shared libraries that do not belong to the base system?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 32 bit and 64 bit freebsd binary compatiblty

2008-02-18 Thread Bill Moran
In response to navneet Upadhyay [EMAIL PROTECTED]:

 I checked in usr/local/ and didnt find the lib32 folder, so i guess they are
 nt installed .
 
 Why do i need them ? can u put some light on it ?

I'm not sure of the details why you need them, but no ia32 program that
I've seen runs properly on amd64 without.

If you're running a release version, you can run sysinstall, then go to
configuration - distributions and select to install.

You can also build/install world and this should grab them by default.

 
 
 On 2/18/08, Norman Maurer [EMAIL PROTECTED] wrote:
 
 
  Am Montag, den 18.02.2008, 20:42 +0530 schrieb navneet Upadhyay:
   it and 64 bit RHEL.
  
   We are porting the product to FreeBSD and when we tried the same,
   i.erunning binaries compiled on 32 bit FreeBSD
   6.2 on 64 bit FreeBSD system they produce *core dump.*
  
  
   Any known reasons, do we have to compile binaries on 64 bit machine.
  
   Thanks,
 
  Do you have the lib32's installed ?
 
  bye
  Norman
 
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]


-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 32 bit and 64 bit freebsd binary compatiblty

2008-02-18 Thread Wojciech Puchar

and use them for both 32 and 64 bit systems. like we have same binaries for
32 bit and 64 bit RHEL.

We are porting the product to FreeBSD and when we tried the same,
i.erunning binaries compiled on 32 bit FreeBSD
6.2 on 64 bit FreeBSD system they produce *core dump.*


no idea. i use it but rarely, having no problems.

consider adding extra logs (printfs, etc.) to get know when it crashes and
fill a problem report




Any known reasons, do we have to compile binaries on 64 bit machine.


you should, as is it not a problem but performance is much better.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: My Rebuild Problem

2008-02-18 Thread Erik Norgaard

[EMAIL PROTECTED] wrote:

Hi:
I wrote earlier, got one response. It was way off course, so I´m rewriting. No, 
I can rebuild X11 if I can solve the following problem:

Strange problem here. /usr/local got wiped for no reason I can think of. Everything. Nothing there at all. I can´t 
even change the pw. Nothing on this build anyway. But went to rebuild (6.2) and 
got caught in a loop -- note, that´s a loop -- in these steps:

-- Select Drive

-- FDISK Partition Editor (Q)

-- Install Boot Manager

I would prefer to rebuild (note: rebuild) because I want to add X Windows (that´s ADD X) and I´d rather not 
have to rebuild the kernel. How can I wipe the drive? If I cannot rebuild, can I 
just add the ports? What about changing pw?


1) I'm not sure what you mean about rebuild - I wouldn't ever need 
fdisk or install boot manager for that - are you reinstalling? Are you 
using sysinstall for recovery?


2) Are you having an error that gets you into single user or similar? 
Maybe you can't change the password because your root partition is 
mounted read only.


Post the output of this command:

# mount

For example, when my root partition is read-only, I get
/dev/ad0s1a on / (ufs, local, read-only)

and also post output from,

# df

Cheers, Erik
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 32 bit and 64 bit freebsd binary compatiblty

2008-02-18 Thread Dominic Fandrey

navneet Upadhyay wrote:
  On 2/18/08, Dominic Fandrey [EMAIL PROTECTED] wrote:

navneet Upadhyay wrote:

Hi ,
For our product we generally compile the binaries on 32 bit

systems

and use them for both 32 and 64 bit systems. like we have same binaries

for

32 bit and 64 bit RHEL.

We are porting the product to FreeBSD and when we tried the same,
i.erunning binaries compiled on 32 bit FreeBSD
6.2 on 64 bit FreeBSD system they produce *core dump.*


Any known reasons, do we have to compile binaries on 64 bit machine.

This should not happen. I would blindly guess at a linking problem. Are
you
using any shared libraries that do not belong to the base system?




 Yes i am using few libs not built on FreeBSD but they work fine on 32 bit
 freeBSD , so in principle they shud have the same behavior on 64 one.

I suppose you are aware that they have to be 32-Bit libraries as well, for 
your 32-Bit application to work?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 7RC2 and VMware tools

2008-02-18 Thread Dimitri Yioulos
On Mon, 18 Feb 2008 13:29:28 -0500, John Nielsen wrote
 On Monday 18 February 2008 12:31:37 pm Dimitri Yioulos wrote:
  On Sun, 17 Feb 2008 22:44:17 -0500, John Nielsen wrote
 
   On Sunday 17 February 2008 01:06:28 pm Dimitri Yioulos wrote:
I'm not sure whether to have posted this here or on a VMware list;
apologies if I'm in the wrong place.
   
The other day, I did a fresh install of v. 7RC2 from the minimal CD
on a CentOS 5.1 box running VMware server 1.0.4.  I had previously
successfully installed v. 6.2, and upgraded to 6.3 on the same box.
All has gone well, except for the installation of VMware Tools.
Getting the Tools tarball and extracting the requisite files was
trivial. However, when I try to run Vmware-Config-Tools.pl, I get a
message saying that the program must be run on a virtual machine.
Well, it is.  Is there a needed FBSD package I'm missing (the Tools
install program doesn't complain about it).  A known issue, or bug,
maybe?  Or is VMware support not yet enabled?  Help would be
greatly appreciated.
  
   I just went through almost the same thing, installing FreeBSD 7 under
   VMware Workstation on Windows. The config-tools script has a
   hard-coded version check which looks for libc.so.6 under /lib only.
   Rather than mess with the script, I just hard-linked the library
   from /usr/local/lib/compat (where it was installed by the compat6x
   port). Seemed to work fine after that. You'll need to be careful not
   to erase it if you ever run make delete-old-libs, though.
 
  Thanks for the response!
 
  A symlink won't do for the above?
 
 Try it and see! I think I decided on a hard link since the script uses 
 something like if [ -f /lib/libc.so.6 ] so it's looking only for a 
 regular file and not a symlink.
 
 JN
 
 -- 


Hmm, when I try to hard-link (ln /usr/compat/linux/lib/libc.so.6 libc.so.6), 
I get
ln: ./libc.so.6: Cross-device link.  But, when I do a symlink, which takes, I 
get
/usr/libexec/ld-elf.so.1: Shared object ld-linux.so.2 not found, required by
libc.so.6 when i run vmware-config-tools.pl.  So, I symlink ld-linux.so.2, 
and run
tools.  Then, I get /usr/libexec/ld-elf.so.1: Undefined symbol __stdoutp 
referenced
from COPY relocation in /usr/local/sbin/vmware-checkvm.  Arrgh.  Any other 
ideas?

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


NDIS and wifi doesnt work

2008-02-18 Thread DSA - JCR
Hi all

Freebsd 6.3 RC2 (DesktopBSD 1.6)
Laptop: Samsung Q35
WIFI: Intel(R) PRO/Wireless 3945ABG
ADSL with WIFI working


In order to use the wifi included in this laptop i use NDIS with the MS
Windows drivers and produced the file w39n51_sys.ko. The MS driver has
one INF and one SYS files and also one DLL files. I have used only the INF
and SYS files. must I use the DLL file also?

I copied to /boot/modules and in /boot/loader.conf put the line

w39n51_sys_load=YES

as the handbook says, but this does not work, my laptop hungs at boot time.

Then I tried to load manually the module

kldload w39n51_sys.ko

then ifconfig shows the ndis0 with NO carrier, and my laptop works fine.
But I can not detect any WIFI with ifconfig ndis0 scan

Maybe I am doing something wrong, what?

Is there a driver for this wireless device? where?



thanks in advance

Juan Coruña
Desarrollo de Software Atlantico




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


UPS / USB / system reboot

2008-02-18 Thread Zbigniew Szalbot
Hello,

I am running apcupsd. Toady we had several power failures. One of them
lasted longer than the UPS was able to sustain. So:

Mon Feb 18 15:21:06 CET 2008  Power failure.
Mon Feb 18 15:21:12 CET 2008  Running on UPS batteries.
Mon Feb 18 16:40:19 CET 2008  Battery power exhausted.
Mon Feb 18 16:40:19 CET 2008  Initiating system shutdown!
Mon Feb 18 16:40:19 CET 2008  User logins prohibited
Mon Feb 18 16:40:19 CET 2008  Attempting to kill the UPS power!
Mon Feb 18 16:40:25 CET 2008  UPS will power off after 180 seconds ...
Mon Feb 18 16:40:25 CET 2008  Please power off your UPS before
rebooting your computer ...
Mon Feb 18 16:40:57 CET 2008  apcupsd exiting, signal 15
Mon Feb 18 16:40:57 CET 2008  apcupsd shutdown succeeded

First of all, I am not really sure why it says to power off UPS before
reboot. It often happens that with power failuers there's no one
around.

Secondly, the system was unable to reboot, not sure but the culprit
seems to be this entry in fstab:

/dev/ad3s1d/backup ufs rw  2   2

ad3s1d is a USB hard drive. It is normally unmounted and I think it
was unmounted while power failure occured. Why would it cause problem
while system is resuming operation?

Feb 18 16:40:25 lists apcupsd[493]: Please power off your UPS before
rebooting your computer ...
Feb 18 16:40:25 lists shutdown: halt by root: apcupsd initiated shutdown
Feb 18 16:40:57 lists rc.shutdown: 30 second watchdog timeout expired.
Shutdown terminated.
Feb 18 16:40:57 lists init: /bin/sh on /etc/rc.shutdown terminated
abnormally, going to single user mode
Feb 18 16:40:57 lists syslogd: exiting on signal 15

The result was I had to come to the site and fsck, then comment out
the /backup line in fstab. Only then the system was able to start.
Otherwise it complained about not being able to find /backup or the
like but I cannot now find the precise message in logs.

Your advice is greatly appreciated!

-- 
Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UPS / USB / system reboot

2008-02-18 Thread Wojciech Puchar


/dev/ad3s1d/backup ufs rw  2   2

ad3s1d is a USB hard drive. It is normally unmounted and I think it


so add noauto after rw
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UPS / USB / system reboot

2008-02-18 Thread Zbigniew Szalbot
Hello,

2008/2/18, Wojciech Puchar [EMAIL PROTECTED]:
 
  /dev/ad3s1d/backup ufs rw  2   2
 
  ad3s1d is a USB hard drive. It is normally unmounted and I think it

 so add noauto after rw

Thanks! A lot!

-- 
Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: freebsd dead after attempt on upgrade from 6.2 to 6.3

2008-02-18 Thread Deian Popov
No strange IDE settings, it has been that way for years.

Regards,

Deian

On Feb 18, 2008 12:12 AM, Brian A. Seklecki (Mobile) 
[EMAIL PROTECTED] wrote:


 On Sun, 2008-02-17 at 23:45 +0200, Deian Popov wrote:
  I will most definitely do, but this would happen after few days (don't
  have time to fix the system before that). The output of 6.3 and 7 is
  the same, so I will provide one from 6.3. Should I use
  http://www.freebsd.org/send-pr.html to file the report ?
 

 Be sure to include the output of:

 $ sudo pciconf -lv

 You checked your BIOS for strange IDE settings, rights?

 ~BAS


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD 6.3 as guest: vmware-config.pl problem

2008-02-18 Thread Olivier Robert
Hi,

I try to install FreeBSD 6.3 64 bits in a Fedora VMware Workstation 6.0..2.
I have done the install by choosing ALL + no extra packages (but bash).

Xorg is 1.4.0
I can have a working X with vesa drivers.

When running ./vmware-config-tools.pl, I get the following:

-
Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:  done
   Guest memory manager:   done


Detected X.org version 0.0.0.


No drivers for X.org version: 0.0.0.


Do you want to change the display size that X starts with? (yes/no) [no]
Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:   done
   Guest memory manager:   done
   Guest operating system daemon:  done

The configuration of VMware Tools 6.0.2 build-59824 for FreeBSD for this
running kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking the following command:
/usr/local/bin/vmware-toolbox during an X server session.

Enjoy,

--the VMware team

-

It replaced the vesa driver in xorg.conf as it should do, but X wouldn't
start anymore because the vmware module does not exist.
I was expecting to see some compilation going on here to build the necessary
stuff, but as it doesn't detect Xorg, it doesn't build the appropriate
module (I guess)

Anyone encountered this problem?
Any help greatly appreciated.

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 6.3 as guest: vmware-config.pl problem

2008-02-18 Thread John Nielsen
On Monday 18 February 2008 03:07:48 pm Olivier Robert wrote:
 I try to install FreeBSD 6.3 64 bits in a Fedora VMware Workstation
 6.0..2. I have done the install by choosing ALL + no extra packages
 (but bash).

 Xorg is 1.4.0
 I can have a working X with vesa drivers.

 When running ./vmware-config-tools.pl, I get the following:

 -
 Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: 
 done Guest memory manager: 
  done


 Detected X.org version 0.0.0.


 No drivers for X.org version: 0.0.0.

 It replaced the vesa driver in xorg.conf as it should do, but X
 wouldn't start anymore because the vmware module does not exist.
 I was expecting to see some compilation going on here to build the
 necessary stuff, but as it doesn't detect Xorg, it doesn't build the
 appropriate module (I guess)

 Anyone encountered this problem?
 Any help greatly appreciated.

The script is too old to know what to do with a modular X.org so the 
version detection breaks. Fortunately, X.org ships with the vmware 
(video) and vmmouse (input) drivers these days. If they are not installed 
in your VM then you can install them by hand from 
ports/x11-drivers/xf86-video-vmware and 
ports/x11-drivers/xf86-input-vmmouse respectively. Alternatively you can 
do something like cd /usr/ports/x11-drivers-xorg-drivers  make 
config, select the vm drivers from the list, and then upgrade the 
xorg-drivers port (portupgrade -f xorg-drivers if you use portupgrade).

You can install and use these drivers without ever installing the VMware 
tools, although the guestd and memctl components of the tools are useful.

JN
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Support for Asus P4S800D-E

2008-02-18 Thread Jaco le Roux
Hi,

I'm trying to install FreeBSD 6.3 on a system with a Asus P4S800D-E
motherboard. I believe it uses the SiS 955TX chipset to control the hard
disks. When I enter the sysinstall utility to do a Standard Install,
sysinstall does not recognise my hard disk. This is because the SATA hard
drive runs off its SATA controller and is not normally seen by OS's unless
3rd party software/drivers is loaded. There is no FreeBSD support on the SiS
website, however I found another thread:

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2004-06/2737.html

in which the guy clearly states he got the same motherboard working in
FreeBSD. 

Does anyone have any suggestions? I'll appreciate any help, thanks.

PS: I'm using MS outlook to write this message, and tried to format
everything as plain text. If it still comes out whack on UNIX systems,
please advise me and I'll try something better next time.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 7RC2 and VMware tools

2008-02-18 Thread John Nielsen
On Monday 18 February 2008 01:47:14 pm Dimitri Yioulos wrote:
 On Mon, 18 Feb 2008 13:29:28 -0500, John Nielsen wrote

  On Monday 18 February 2008 12:31:37 pm Dimitri Yioulos wrote:
   On Sun, 17 Feb 2008 22:44:17 -0500, John Nielsen wrote
  
On Sunday 17 February 2008 01:06:28 pm Dimitri Yioulos wrote:
 I'm not sure whether to have posted this here or on a VMware
 list; apologies if I'm in the wrong place.

 The other day, I did a fresh install of v. 7RC2 from the
 minimal CD on a CentOS 5.1 box running VMware server 1.0.4.  I
 had previously successfully installed v. 6.2, and upgraded to
 6.3 on the same box. All has gone well, except for the
 installation of VMware Tools. Getting the Tools tarball and
 extracting the requisite files was trivial. However, when I try
 to run Vmware-Config-Tools.pl, I get a message saying that the
 program must be run on a virtual machine. Well, it is.  Is
 there a needed FBSD package I'm missing (the Tools install
 program doesn't complain about it).  A known issue, or bug,
 maybe?  Or is VMware support not yet enabled?  Help would be
 greatly appreciated.
   
I just went through almost the same thing, installing FreeBSD 7
under VMware Workstation on Windows. The config-tools script has
a hard-coded version check which looks for libc.so.6 under /lib
only. Rather than mess with the script, I just hard-linked the
library from /usr/local/lib/compat (where it was installed by the
compat6x port). Seemed to work fine after that. You'll need to be
careful not to erase it if you ever run make delete-old-libs,
though.
  
   Thanks for the response!
  
   A symlink won't do for the above?
 
  Try it and see! I think I decided on a hard link since the script
  uses something like if [ -f /lib/libc.so.6 ] so it's looking only
  for a regular file and not a symlink.

 Hmm, when I try to hard-link (ln /usr/compat/linux/lib/libc.so.6
 libc.so.6), I get ln: ./libc.so.6: Cross-device link.  But, when I
 do a symlink, which takes, I get /usr/libexec/ld-elf.so.1: Shared
 object ld-linux.so.2 not found, required by libc.so.6 when i run
 vmware-config-tools.pl.  So, I symlink ld-linux.so.2, and run tools. 
 Then, I get /usr/libexec/ld-elf.so.1: Undefined symbol __stdoutp
 referenced from COPY relocation in /usr/local/sbin/vmware-checkvm. 
 Arrgh.  Any other ideas?

You have /usr on a different partition than / in your VM, so you can't do 
a hard link. I would just copy the file back to /lib and not worry about 
it. Linking in other random libraries will cause problems, as you've 
observed.

JN
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


compiling 32 bit port on amd64

2008-02-18 Thread Mark Moellering
Is there a way I can specify a port to be compiled in 32 bit mode on an amd64 
installation?  I have compat_ia32 in kernel.

Thanks

Mark Moellering
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


compiling 32 bit port on amd64 - Rephrase

2008-02-18 Thread Mark Moellering
Is there a way to compile the 32 bit version (i386) of a port on an amd64 
installation?  I am running FreeBSD 7.0 RC2 amd64

Thanks

Mark Moellering
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NDIS and wifi doesnt work

2008-02-18 Thread Kemian Dang
I can not get response from ifconfig ndis0 up scan, neither.

But as I know my wireless network's ssid, I just ifconfig ndis0 ssid
xxx, which make the status change to associate and dhclient ndis0
can get IP from dhcp.

Kemian

On 18/02/2008, DSA - JCR [EMAIL PROTECTED] wrote:
 Hi all

 Freebsd 6.3 RC2 (DesktopBSD 1.6)
 Laptop: Samsung Q35
 WIFI: Intel(R) PRO/Wireless 3945ABG
 ADSL with WIFI working


 In order to use the wifi included in this laptop i use NDIS with the MS
 Windows drivers and produced the file w39n51_sys.ko. The MS driver has
 one INF and one SYS files and also one DLL files. I have used only the INF
 and SYS files. must I use the DLL file also?

 I copied to /boot/modules and in /boot/loader.conf put the line

 w39n51_sys_load=YES

 as the handbook says, but this does not work, my laptop hungs at boot time.

 Then I tried to load manually the module

 kldload w39n51_sys.ko

 then ifconfig shows the ndis0 with NO carrier, and my laptop works fine.
 But I can not detect any WIFI with ifconfig ndis0 scan

 Maybe I am doing something wrong, what?

 Is there a driver for this wireless device? where?



 thanks in advance

 Juan Coruña
 Desarrollo de Software Atlantico




 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 7RC2 and VMware tools

2008-02-18 Thread Dimitri Yioulos
On Mon, 18 Feb 2008 15:58:26 -0500, John Nielsen wrote
 On Monday 18 February 2008 01:47:14 pm Dimitri Yioulos wrote:
  On Mon, 18 Feb 2008 13:29:28 -0500, John Nielsen wrote
 
   On Monday 18 February 2008 12:31:37 pm Dimitri Yioulos wrote:
On Sun, 17 Feb 2008 22:44:17 -0500, John Nielsen wrote
   
 On Sunday 17 February 2008 01:06:28 pm Dimitri Yioulos wrote:
  I'm not sure whether to have posted this here or on a VMware
  list; apologies if I'm in the wrong place.
 
  The other day, I did a fresh install of v. 7RC2 from the
  minimal CD on a CentOS 5.1 box running VMware server 1.0.4.  I
  had previously successfully installed v. 6.2, and upgraded to
  6.3 on the same box. All has gone well, except for the
  installation of VMware Tools. Getting the Tools tarball and
  extracting the requisite files was trivial. However, when I try
  to run Vmware-Config-Tools.pl, I get a message saying that the
  program must be run on a virtual machine. Well, it is.  Is
  there a needed FBSD package I'm missing (the Tools install
  program doesn't complain about it).  A known issue, or bug,
  maybe?  Or is VMware support not yet enabled?  Help would be
  greatly appreciated.

 I just went through almost the same thing, installing FreeBSD 7
 under VMware Workstation on Windows. The config-tools script has
 a hard-coded version check which looks for libc.so.6 under /lib
 only. Rather than mess with the script, I just hard-linked the
 library from /usr/local/lib/compat (where it was installed by the
 compat6x port). Seemed to work fine after that. You'll need to be
 careful not to erase it if you ever run make delete-old-libs,
 though.
   
Thanks for the response!
   
A symlink won't do for the above?
  
   Try it and see! I think I decided on a hard link since the script
   uses something like if [ -f /lib/libc.so.6 ] so it's looking only
   for a regular file and not a symlink.
 
  Hmm, when I try to hard-link (ln /usr/compat/linux/lib/libc.so.6
  libc.so.6), I get ln: ./libc.so.6: Cross-device link.  But, when I
  do a symlink, which takes, I get /usr/libexec/ld-elf.so.1: Shared
  object ld-linux.so.2 not found, required by libc.so.6 when i run
  vmware-config-tools.pl.  So, I symlink ld-linux.so.2, and run tools. 
  Then, I get /usr/libexec/ld-elf.so.1: Undefined symbol __stdoutp
  referenced from COPY relocation in /usr/local/sbin/vmware-checkvm. 
  Arrgh.  Any other ideas?
 
 You have /usr on a different partition than / in your VM, so you can't do 
 a hard link. I would just copy the file back to /lib and not worry about 
 it. Linking in other random libraries will cause problems, as you've 
 observed.
 
 JN


If I copy libc.so.6 to /lib, then tools complains about ld-linux.so.2.  If I 
copy
ld-linux.so.2, it then complains about /usr/libexec/ld-elf.so.1: Undefined 
symbol
__stdoutp referenced from COPY relocation in /usr/local/sbin/vmware-checkvm. 
 This is
pretty much the same as if I symlink the two files.  Even though I'm a glass 
half-full
guy, this is beginning to look dire (but it's the worst thing to happen to me, 
I'm sure
I'll live).  Still, it would be nice to get this working.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling 32 bit port on amd64 - Rephrase

2008-02-18 Thread Pieter de Goeje
On Monday 18 February 2008, Mark Moellering wrote:
 Is there a way to compile the 32 bit version (i386) of a port on an amd64
 installation?  I am running FreeBSD 7.0 RC2 amd64

 Thanks

 Mark Moellering

The only way I know of is to create a 32bit jail/chroot and compile the port 
from withing the jail. To create such a jail or chroot follow the 
instructions from the jail(8) manpage, but add TARGET_ARCH=i386 to make's 
command line.

-- 
Pieter de Goeje

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling 32 bit port on amd64 - Rephrase

2008-02-18 Thread Wojciech Puchar

Is there a way to compile the 32 bit version (i386) of a port on an amd64
installation?  I am running FreeBSD 7.0 RC2 amd64


very stupid (i don't know better) way but will work.

unpack all freebsd disto to say /i386, use install.sh from installation CD
this way

DESTDIR=/i386 ./install.sh

in every dir (exclude sys and sources).

unpack port directories in /i386/usr/ports

(if you use portsnap, portsnap -d /i386/usr/ports extract)

make empty /i386/etc/fstab
cp /etc/resolv.conf /i386/etc/resolv.conf


mount_devfs devfs /i386/dev

cd /i386
chroot . bin/your_favourite_shell
cd /usr/ports

compile as usual.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


is there an easier way?

2008-02-18 Thread Gary Kline

To my fellow C nerds,

It's been a  great manny years since I wrote this appended
snippet.  Now I can't remember why (of if ) I need all the
strcpy() calls.   Is there a simpler, more logical way of 
printing a bunch of string by snipping off the left-most?

In short,, can anyone 'splain why strtok needs all this?

tia,

gary


-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org

#include stdio.h
#include string.h

main()
{
  char *bp, buf[512], *tok, tstr[512];
  static char *delim= , s1[256]=abc def ghi jkl mno.;

  bp = strcpy(buf, tstr);  
  strcpy(bp, s1); /* bp filled with writable mem works like this, too */
  while ((tok = strtok(bp, delim)) != NULL)
  {
bp = NULL; 
printf(tok = [%s]\n, tok);
  }
}


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: is there an easier way?

2008-02-18 Thread Joe Marcus Clarke

On Mon, 2008-02-18 at 15:03 -0800, Gary Kline wrote:
   To my fellow C nerds,
 
   It's been a  great manny years since I wrote this appended
   snippet.  Now I can't remember why (of if ) I need all the
   strcpy() calls.   Is there a simpler, more logical way of 
   printing a bunch of string by snipping off the left-most?
 
   In short,, can anyone 'splain why strtok needs all this?

Here are two examples, one with dynamically allocated memory, and one
with static memory.  You need the copy so that you allocate writable
space for strtok() to fill in the NUL bytes.  I imagine there are even
better/easier ways, but both of these work okay.

Joe

-- 
PGP Key : http://www.marcuscom.com/pgp.asc


signature.asc
Description: This is a digitally signed message part


Re: is there an easier way?

2008-02-18 Thread Tim Daneliuk

Tim Daneliuk wrote:

Gary Kline wrote:

To my fellow C nerds,

It's been a  great manny years since I wrote this appended
snippet.  Now I can't remember why (of if ) I need all the
strcpy() calls.   Is there a simpler, more logical way of 
printing a bunch of string by snipping off the left-most?


In short,, can anyone 'splain why strtok needs all this?

tia,

gary




I don't think you need the copies.  This works just as well:

#include stdio.h
#include string.h

main()
{
  char *bp, *tok;
  char *delim= , s1[256]=abc def ghi jkl mno.;

  bp = s1;   /* Now both point to the literal string to be tokenized */

  while ((tok = strtok(bp, delim)) != NULL)
  {
bp = NULL;
printf(tok = [%s]\n, tok);
  }
}




Ooops ... wasn't paying attention.  While the printed output is the same, doing
it this way is destructive to the original s1 string - which may matter (or 
not)...



--

Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: is there an easier way?

2008-02-18 Thread Tim Daneliuk

Tim Daneliuk wrote:

Tim Daneliuk wrote:

Gary Kline wrote:

To my fellow C nerds,

It's been a  great manny years since I wrote this appended
snippet.  Now I can't remember why (of if ) I need all the
strcpy() calls.   Is there a simpler, more logical way of 
printing a bunch of string by snipping off the left-most?


In short,, can anyone 'splain why strtok needs all this?

tia,

gary




I don't think you need the copies.  This works just as well:

#include stdio.h
#include string.h

main()
{
  char *bp, *tok;
  char *delim= , s1[256]=abc def ghi jkl mno.;

  bp = s1;   /* Now both point to the literal string to be tokenized */

  while ((tok = strtok(bp, delim)) != NULL)
  {
bp = NULL;
printf(tok = [%s]\n, tok);
  }
}




Ooops ... wasn't paying attention.  While the printed output is the 
same, doing
it this way is destructive to the original s1 string - which may matter 
(or not)...


So, to protect the original string, you do have to copy the original
string to a new buffer:


#include stdio.h
#include string.h

main()
{
  char *bp, *tok, buf[256];
  const char *delim= , s1[256]=abc def ghi jkl mno.;

  bp = strcpy(buf, s1);

  while ((tok = strtok(bp, delim)) != NULL)
  {
bp = NULL;
printf(tok = [%s]\n, tok);
  }
}


So, at least we eliminated the first strcpy in your code:

  char *bp, buf[512], *tok, tstr[512];
  static char *delim= , s1[256]=abc def ghi jkl mno.;

  bp = strcpy(buf, tstr);

This accomplishes nothing and may not even be safe - strcpy() copies
until it hits \0.  I do not recall if the declaration of tstr[512]
intializes it to \0.  If not, then the strcpy() is going to keep
running until it finds one, overwriting the end of buf[] and probably
causing core dumps or other evil...
--

Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: is there an easier way?

2008-02-18 Thread Tim Daneliuk

Gary Kline wrote:

To my fellow C nerds,

It's been a  great manny years since I wrote this appended
snippet.  Now I can't remember why (of if ) I need all the
	strcpy() calls.   Is there a simpler, more logical way of 
	printing a bunch of string by snipping off the left-most?


In short,, can anyone 'splain why strtok needs all this?

tia,

gary




I don't think you need the copies.  This works just as well:

#include stdio.h
#include string.h

main()
{
  char *bp, *tok;
  char *delim= , s1[256]=abc def ghi jkl mno.;

  bp = s1;   /* Now both point to the literal string to be tokenized */

  while ((tok = strtok(bp, delim)) != NULL)
  {
bp = NULL;
printf(tok = [%s]\n, tok);
  }
}



--

Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: is there an easier way?

2008-02-18 Thread Joe Marcus Clarke

On Mon, 2008-02-18 at 18:19 -0500, Joe Marcus Clarke wrote:
 On Mon, 2008-02-18 at 15:03 -0800, Gary Kline wrote:
  To my fellow C nerds,
  
  It's been a  great manny years since I wrote this appended
  snippet.  Now I can't remember why (of if ) I need all the
  strcpy() calls.   Is there a simpler, more logical way of 
  printing a bunch of string by snipping off the left-most?
  
  In short,, can anyone 'splain why strtok needs all this?
 
 Here are two examples, one with dynamically allocated memory, and one
 with static memory.  You need the copy so that you allocate writable
 space for strtok() to fill in the NUL bytes.  I imagine there are even
 better/easier ways, but both of these work okay.

Posted to http://www.marcuscom.com/downloads/strtokeg.c as the
attachment didn't make it.

Joe

-- 
PGP Key : http://www.marcuscom.com/pgp.asc


signature.asc
Description: This is a digitally signed message part


Building Xorg as 32 Bit binaries on 64 Bit system?

2008-02-18 Thread Christian Walther
Hi,

I'm running FreeBSD 7 on an Athlon64 based machine with a 64 bit
kernel. The machine is supposed to be a server (at home) so there's
basically no Xorg involved.
Now I want to monitor what the system is doing and I decided to
install sysutils/conky from ports. The problem is that conky crashes
with a BadDrawable error.
I searched the net for some time and found evidence that conky might
not work in 64 bit mode. I tried to recompile it - the entire Xorg
packages - but every time I end up having 64 bit binaries.
I have CPUTYPE and CFLAGS commented out in /etc/make.conf, but the
problem seems to arise from the configure scripts used by Xorg. For
example during make install clean on xproto configure states:

checking build system type... amd64-portbld-freebsd7.0
checking host system type... amd64-portbld-freebsd7.0
checking for style of include used by make... GNU
checking for amd64-portbld-freebsd7.0-gcc... cc

I wonder if it's possible to somehow override the build system type information?

Christian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Computers that us FreeBSD. HELP!!!!!!!

2008-02-18 Thread Ryan Jenkins
Hello,
 
I currently have a Computer System that is based off the FreeBSD Operating
System and I am trying to find a new supplier of hardware.  Right now I am
having a hard time finding a Computer Manufacture that can make a system
that uses FreeBSD.  I currently have found a product from MPC or
Micron/Gateway that creates systems with no Operating System, but my
programmers are having a hard time with getting the software loaded on the
system.  Can you please help me find a supplier that builds Desktop or
All-in-One computers that will operate FreeBSD.
 
 

  Ryan Jenkins
  
  P.O. Box 21138
  P:  406 896-9900
  F:  406 896-0045
  C:  406 208-8193
  Email:
[EMAIL PROTECTED]

 

Confidentiality Statement:
This e-mail contains confidential information which also may be privileged.
Unless you are the addressee (or authorized to receive for the addressee),
you may not copy, use, disclose, or distribute the e-mail message or any
information contained in the message.  If you have received this e-mail
message in error, please advise the sender by replying to this message or by
telephone and then promptly delete it.

 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Mounting a read-only md FS as read-only

2008-02-18 Thread perryh
 does mount_ext2fs support readonly at all?

The manpage implies that it does:

  The options are as follows:

  -o  Options are specified with a -o flag followed by a comma sepa-
  rated string of options.  See the mount(8) man page for possible
  options and their meanings.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Still looking for a calendar server...

2008-02-18 Thread Jan-Hendrik Zab
On Mon, 18 Feb 2008 02:21:44 +
Da Rock [EMAIL PROTECTED] wrote:

Hey,
 I've brought this up before, I know, but I need a caldav server that
 will work with evolution. I've checked out Darwin Calendar Server,
 but they are not going to solve an issue (as of 2006) that means
 evolution can't use it, and evolution won't budge either- so a
 mexican stand-off and I'm caught in the middle (probably with others).

I'm currently looking for a caldav/calendar server myself. There are
actually quite a few, but I guess a lot won't met your specific
requirements. To name a few:

caldav:
 - bedework
 - davical
 - zimbra
 - cosmo

webdav:
 - horde
 - phpcalendar

Bedework seems to be a nice choice, I haven't found a way to integrate
tomcat into LDAP yet. But I'm not familiar with tomcat, so that's to be
expected. Davical doesn't seem to care about the access rights I
configured in the web interface, a bug I guess.

 So that brings me back to the Apache module under construction
 (mod_caldav), but nothing seems to be happening with it. I've
 requested support on the forum their at sourceforge, but I have had
 no response for over a week, and no responses have been issued since
 april 2006.

I didn't know that such a module existed, I'll look into it! :)

Jan-Hendrik Zab
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Freebsd-update questions

2008-02-18 Thread yar

1. The network on which my servers reside does not have direct internet
connectivity. Is it possible to use freebsd-update through a http proxy on a
Linux box that does have the connectivity?


2. My servers have their kernels compiled with the SMP Kernel and Polling
support only. Can I use freebsd-update with these systems or are they too
far removed from GENERIC kernel. Will using freebsd-update in such a case
trash system, leave it unaffected or update it, but to a GENERIC version of
the errata branch selected?

Thanks. 



-- 
View this message in context: 
http://www.nabble.com/Freebsd-update-questions-tp15550810p15550810.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: is there an easier way?

2008-02-18 Thread Giorgos Keramidas
On 2008-02-18 17:41, Tim Daneliuk [EMAIL PROTECTED] wrote:
 Tim Daneliuk wrote:
 Ooops ... wasn't paying attention.  While the printed output is the
 same, doing it this way is destructive to the original s1 string -
 which may matter (or not)...
 
 So, to protect the original string, you do have to copy the original
 string to a new buffer:

... or use strcspn() and strspn() which are non-destructive
(see my other post in the same thread about an example).

I tend to prefer avoiding strtok() if possible, precisely because
of its destructive behavior.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Computers that us FreeBSD. HELP!!!!!!!

2008-02-18 Thread Erich Dollansky

Hi,

Acer, Dell, Fujitsu, HP, IBM, Lenovo, Toshiba plus all the PC built 
around standard components will do.


If you would be a bit more specific about price, speed and function of 
the machine, we could help you better.


You might will have problems getting certain machines without operating 
system.


Erich

Ryan Jenkins wrote:

Hello,
 
I currently have a Computer System that is based off the FreeBSD Operating

System and I am trying to find a new supplier of hardware.  Right now I am
having a hard time finding a Computer Manufacture that can make a system
that uses FreeBSD.  I currently have found a product from MPC or
Micron/Gateway that creates systems with no Operating System, but my
programmers are having a hard time with getting the software loaded on the
system.  Can you please help me find a supplier that builds Desktop or
All-in-One computers that will operate FreeBSD.
 
 


  Ryan Jenkins
  
  P.O. Box 21138

  P:  406 896-9900
  F:  406 896-0045
  C:  406 208-8193
  Email:
[EMAIL PROTECTED]

 


Confidentiality Statement:
This e-mail contains confidential information which also may be privileged.
Unless you are the addressee (or authorized to receive for the addressee),
you may not copy, use, disclose, or distribute the e-mail message or any
information contained in the message.  If you have received this e-mail
message in error, please advise the sender by replying to this message or by
telephone and then promptly delete it.

 






___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Still looking for a calendar server...

2008-02-18 Thread Da Rock

On Tue, 2008-02-19 at 00:26 +0100, Jan-Hendrik Zab wrote:
 On Mon, 18 Feb 2008 02:21:44 +
 Da Rock [EMAIL PROTECTED] wrote:
 
 Hey,
  I've brought this up before, I know, but I need a caldav server that
  will work with evolution. I've checked out Darwin Calendar Server,
  but they are not going to solve an issue (as of 2006) that means
  evolution can't use it, and evolution won't budge either- so a
  mexican stand-off and I'm caught in the middle (probably with others).
 
 I'm currently looking for a caldav/calendar server myself. There are
 actually quite a few, but I guess a lot won't met your specific
 requirements. To name a few:
 
 caldav:
  - bedework
  - davical
  - zimbra
  - cosmo
 
 webdav:
  - horde
  - phpcalendar
 
 Bedework seems to be a nice choice, I haven't found a way to integrate
 tomcat into LDAP yet. But I'm not familiar with tomcat, so that's to be
 expected. Davical doesn't seem to care about the access rights I
 configured in the web interface, a bug I guess.
 
  So that brings me back to the Apache module under construction
  (mod_caldav), but nothing seems to be happening with it. I've
  requested support on the forum their at sourceforge, but I have had
  no response for over a week, and no responses have been issued since
  april 2006.
 
 I didn't know that such a module existed, I'll look into it! :)
 
   Jan-Hendrik Zab

I'm currently looking into bedework now- it seems ideal, but getting
tomcat to work with apache is becoming a challenge. I'm using mod_jk but
it doesn't appear to be cooperating yet.

What is your experience in building apache modules? The problem is
mainly in the mod_dav_acl module which needs xattr.h. I'm wondering if
we can borrow the headers from another source.

I haven't checked zimbra or cosmo properly yet, but at first glance it
appeared they didn't quite have what I wanted.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Configuring mod_jk for Apache and Tomcat

2008-02-18 Thread Da Rock
I'm trying to setup a tomcat server using Apache as the frontend. As
usual, I'm having trouble (which is why I haven't bothered before, and
given Tomcat apps a wide berth). Can someone let me know where I'm going
wrong? I have setup inclusions in the httpd.conf file to use similar
settings to other modules, etc. Therefore my worker.properties and
mod_jk.conf is under /extras.

I know something works because they are reflected when I navigate
to /webapps on the Apache server.

mod_jk.conf:
# Replace jsp-hostname with the hostname of your JSP server, as
# specified in workers.properties.
#
IfModule mod_jk.c
JkWorkersFile etc/apache22/extra/workers.properties
JkLogFile  /var/log/jk.log
JkShmFile  /var/log/jk-runtime-status
JkLogLevel error

# Sample JkMounts.  Replace these with the paths you would
# like to mount from your JSP server.
JkMount /*.jsp localhost
JkMount /servlet/* localhost
JkMount /examples/* localhost
/IfModule

# Map encoded urls
Location *;jsessionid=
SetHandler jakarta-servlet
/Location

# Map subdirectory
Location /webapps/
SetHandler jakarta-servlet
/Location



workers.properties:
# Incredibly simple workers.properties file, intended for connecting
# to one host, via AJP13.  See the tomcat documentation for
# information on more exotic configuration options.
#
# Change jsp-hostname to the hostname of your JSP server.
#
worker.list=localhost
workers.tomcat_home=/usr/local/apache-tomcat6.0
workers.java_home=/usr/local/diablo-jdk1.5.0
worker.localhost.port=8009
worker.localhost.host=localhost
worker.localhost.type=ajp13
worker.localhost.lbfactor=1


I figured I didn't need to worry about the setenv variable as I'm only
testing currently and only need one connector atm.

Any ideas why I shouldn't be seeing the index.jsp found in the Tomcat
directories?

I also tried navigating directly using port 8009 with no result either
(And yes, Tomcat has been started- I checked the port using nmap).

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Computers that us FreeBSD. HELP!!!!

2008-02-18 Thread Jerry McAllister
On Tue, Feb 19, 2008 at 08:48:28AM +0800, Erich Dollansky wrote:

 Hi,
 
 Acer, Dell, Fujitsu, HP, IBM, Lenovo, Toshiba plus all the PC built 
 around standard components will do.
 
 If you would be a bit more specific about price, speed and function of 
 the machine, we could help you better.

Yes.  Any servers from those vendors will work.
Plus, there are a couple of companies that claim to produce systems
expecially for running FreeBSD servers.

  Some are:   http://www.freedomtc.com/
  http://www.ixsystems.com/
  http://www.ironsystems.com/index.asp

They don't limit themselves to FreeBSD, but they claim support for it.

jerry


 
 You might will have problems getting certain machines without operating 
 system.
 
 Erich
 
 Ryan Jenkins wrote:
 Hello,
  
 I currently have a Computer System that is based off the FreeBSD Operating
 System and I am trying to find a new supplier of hardware.  Right now I am
 having a hard time finding a Computer Manufacture that can make a system
 that uses FreeBSD.  I currently have found a product from MPC or
 Micron/Gateway that creates systems with no Operating System, but my
 programmers are having a hard time with getting the software loaded on the
 system.  Can you please help me find a supplier that builds Desktop or
 All-in-One computers that will operate FreeBSD.
  
  
 
   Ryan Jenkins
   
   P.O. Box 21138
   P:  406 896-9900
   F:  406 896-0045
   C:  406 208-8193
   Email:
 [EMAIL PROTECTED]
 
  
 
 Confidentiality Statement:
 This e-mail contains confidential information which also may be privileged.
 Unless you are the addressee (or authorized to receive for the addressee),
 you may not copy, use, disclose, or distribute the e-mail message or any
 information contained in the message.  If you have received this e-mail
 message in error, please advise the sender by replying to this message or 
 by
 telephone and then promptly delete it.
 
  
 
 
 
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configuring mod_jk for Apache and Tomcat

2008-02-18 Thread James

On Tue, 2008-02-19 at 10:54 +1000, Da Rock wrote:
 I'm trying to setup a tomcat server using Apache as the frontend. As
 usual, I'm having trouble (which is why I haven't bothered before, and
 given Tomcat apps a wide berth). Can someone let me know where I'm going
 wrong? I have setup inclusions in the httpd.conf file to use similar
 settings to other modules, etc. Therefore my worker.properties and
 mod_jk.conf is under /extras.
 
 I know something works because they are reflected when I navigate
 to /webapps on the Apache server.
 
 mod_jk.conf:
 # Replace jsp-hostname with the hostname of your JSP server, as
 # specified in workers.properties.
 #
 IfModule mod_jk.c
 JkWorkersFile etc/apache22/extra/workers.properties
 JkLogFile  /var/log/jk.log
 JkShmFile  /var/log/jk-runtime-status
 JkLogLevel error
 
 # Sample JkMounts.  Replace these with the paths you would
 # like to mount from your JSP server.
 JkMount /*.jsp localhost
 JkMount /servlet/* localhost
 JkMount /examples/* localhost
 /IfModule
 
 # Map encoded urls
 Location *;jsessionid=
 SetHandler jakarta-servlet
 /Location
 
 # Map subdirectory
 Location /webapps/
 SetHandler jakarta-servlet
 /Location
 
 
 
 workers.properties:
 # Incredibly simple workers.properties file, intended for connecting
 # to one host, via AJP13.  See the tomcat documentation for
 # information on more exotic configuration options.
 #
 # Change jsp-hostname to the hostname of your JSP server.
 #
 worker.list=localhost
 workers.tomcat_home=/usr/local/apache-tomcat6.0
 workers.java_home=/usr/local/diablo-jdk1.5.0
 worker.localhost.port=8009
 worker.localhost.host=localhost
 worker.localhost.type=ajp13
 worker.localhost.lbfactor=1
 
 
 I figured I didn't need to worry about the setenv variable as I'm only
 testing currently and only need one connector atm.
 
 Any ideas why I shouldn't be seeing the index.jsp found in the Tomcat
 directories?
 
 I also tried navigating directly using port 8009 with no result either
 (And yes, Tomcat has been started- I checked the port using nmap).
 


The two things I always screw up: permissions and DNS. If
your /etc/hosts isn't set up properly, and/or hosts.conf's URL entries
aren't correct, weird weird errors can happen. If something is set to
444 instead of 755 (as appropriate), other weirdnesses occur.

Are you using a www user? Make sure they're added as appropriate for the
file. 

I know *none* of this may be helpful, but I always check those and I've
usually screwed one up. Otherwise, is there anything
in /var/log/httpd-error?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Computers that us FreeBSD. HELP!!!!!!!

2008-02-18 Thread NetOpsCenter

Ryan Jenkins wrote:

Hello,
 
I currently have a Computer System that is based off the FreeBSD Operating

System and I am trying to find a new supplier of hardware.  Right now I am
having a hard time finding a Computer Manufacture that can make a system
that uses FreeBSD.  I currently have found a product from MPC or
Micron/Gateway that creates systems with no Operating System, but my
programmers are having a hard time with getting the software loaded on the
system.  Can you please help me find a supplier that builds Desktop or
All-in-One computers that will operate FreeBSD.
 
 


  Ryan Jenkins
  
  P.O. Box 21138

  P:  406 896-9900
  F:  406 896-0045
  C:  406 208-8193
  Email:
[EMAIL PROTECTED]

 


Confidentiality Statement:
This e-mail contains confidential information which also may be privileged.
Unless you are the addressee (or authorized to receive for the addressee),
you may not copy, use, disclose, or distribute the e-mail message or any
information contained in the message.  If you have received this e-mail
message in error, please advise the sender by replying to this message or by
telephone and then promptly delete it.

 

  



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Aloha,

I have built FreeBSD on several HP models and on 2 Dell boxes in the past.

I now use Bio Star mother boards and build them from scratch into ATA 
cases.


I have also used ASUS mother boards but  2 of them have start and boot 
after power off hardware issues. Nothing to do with FreeBSD bing the OS.


--

~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
 + http://hawaiidakine.com + http://freebsdinfo.org + [EMAIL PROTECTED] +
 + http://aloha50.net   - Supporting - FreeBSD 6.* - 7.* +
All that's really worth doing is what we do for others.- Lewis Carrol


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Freebsd-update questions

2008-02-18 Thread yar

1. The network on which my servers reside does not have direct internet
connectivity. Is it possible to use freebsd-update through a http proxy on a
Linux box that does have the connectivity?


2. My servers have their kernels compiled with the SMP Kernel and Polling
support only. Can I use freebsd-update with these systems or are they too
far removed from GENERIC kernel. Will using freebsd-update in such a case
trash system, leave it unaffected or update it, but to a GENERIC version of
the errata branch selected?

Thanks. 



-- 
View this message in context: 
http://www.nabble.com/Freebsd-update-questions-tp15550808p15550808.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: is there an easier way?

2008-02-18 Thread Giorgos Keramidas
On 2008-02-18 15:03, Gary Kline [EMAIL PROTECTED] wrote:

   To my fellow C nerds,

   It's been a  great manny years since I wrote this appended
   snippet.  Now I can't remember why (of if ) I need all the
   strcpy() calls.   Is there a simpler, more logical way of
   printing a bunch of string by snipping off the left-most?

   In short,, can anyone 'splain why strtok needs all this?

 #include stdio.h
 #include string.h

 main()
 {
   char *bp, buf[512], *tok, tstr[512];
   static char *delim= , s1[256]=abc def ghi jkl mno.;

   bp = strcpy(buf, tstr);
   strcpy(bp, s1); /* bp filled with writable mem works like this, too */
   while ((tok = strtok(bp, delim)) != NULL)
   {
 bp = NULL;
 printf(tok = [%s]\n, tok);
   }
 }

I don't know about `simpler', but the hardcoded `magic' numbers above,
like 256 and 512, make me nervous.

Another point which is worth noting is that you don't need to copy the
string at all, for one thing.

If you have a string defined like this:

const char *s = hello world;

Then you can use a second pointer to point somewhere within that string
and print from that point:

const char *point = s + 7;
printf(%s\n, point);

So if you want to strip the first 'word' from a C string, you can do
this in the following steps:

  [0] Get the initial string in your s1[] buffer, i.e.:

  const char s1[] = abc def ghi jkl mno.;

  Note that if you use `s1[]' to define the string, the
  compiler is smart enough to grab enough space for it.  This
  way you don't need all the `magic' numbers, like 256 and
  512 in the original code.

  [1] Find the first whitespace character in the string, using
  strcspn() to match everything *except* a whitespace:

  const char *p;
  size_t num_chars;

  num_chars = strcspn(s1,  \t);
  p = s1 + num_chars;

  [2] If the character pointed at by the new value of `p' is the
  terminating '\0' character of the original string, you are
  done; the original string contains a single word, so you
  can skip it entirely.

  if (*p == '\0') {
  printf(\n);
  return;
  }

  [3] Now you can use strspn(), which is the *inverse* operation,
  to skip the whitespace characters you just found:

  num_chars = strspn(p,  \t);
  p += num_chars;

  [4] If the character pointed at by the new value of `p' is the
  terminating '\0' character of the original string, then you
  hit the end of the string again, so there is no `second'
  word; you can move on again:

  if (*p == '\0') {
  printf(\n);
  return;
  }

  [5] If you are still around, then `p' now points right at the
  beginning of the second word.

  printf(%s\n, p);
  return;

A sample function which returns a pointer to the second word of the
string you pass to it, could be something like this:

#include stdlib.h
#include string.h

#define SPACECHARS   \t

char *
secondword(char *s)
{
size_t num_chars;
char *p;

if (s == NULL)
return NULL;

/*
 * Skip any non-whitespace chars first.
 */
num_chars = strcspn(s, SPACECHARS);
p = s + num_chars;
if (*p == '\0')
return p;

/*
 * Then skip whitespace, until we hit the end of the
 * string, or we find the second word.
 */
num_chars = strspn(p, SPACECHARS);
p += num_chars;

/*
 * Even if we just hit '\0' or a non-space, we can
 * simply return whatever our next match character is.
 * It's either going to end up being the start of an
 * empty string, or the second word we wanted to find.
 */
return p;
}

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


java decoder?

2008-02-18 Thread Gary Kline
Guys,

I doubt this but is there anything that will take a foo.jar and turn in back 
into java?  Or at least assembler?   

gary

-- 
Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: java decoder?

2008-02-18 Thread Jim Bow

Gary Kline wrote:

I doubt this but is there anything that will take a foo.jar and turn in back 
into java?  Or at least assembler?   


This really isn't the place for such questions.

As to the question itself, Im no java man, but I think a jar is an 
archive of classes, meaning you can extract them and then use a java 
decompiler to decompile the classes to get the source.


Good luck.


JimBow
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: java decoder?

2008-02-18 Thread Paul A. Procacci

Gary Kline wrote:

Guys,

I doubt this but is there anything that will take a foo.jar and turn in back 
into java?  Or at least assembler?   


gary

  

http://java.sun.com/developer/Books/javaprogramming/JAR/basics/

I went to google and typed:  'unpack jar'.  There are many other results 
that you may be interested it.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: java decoder?

2008-02-18 Thread Giorgos Keramidas
On 2008-02-18 17:33, Gary Kline [EMAIL PROTECTED] wrote:
 Guys,
 I doubt this but is there anything that will take a foo.jar and turn in back
 into java?  Or at least assembler?

JAR files are usually ZIP archives [1], so you can extract them easily
with archivers/unzip or similar tools.

[1] But care must be taken to avoid `filename case folding', see [2]
[2] http://en.wikipedia.org/wiki/JAR_%28file_format%29

The tricky part is then to find a Java decompiler.  I've used `Mocha'
in the past with limited success, but you should probably Google for
more options.

The homepage of `Mocha' is:  http://www.brouhaha.com/~eric/software/mocha/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


md-disk as root file system,size limit!?

2008-02-18 Thread Xinyu Dong
I want use md-disk as root file system.

OS: FreeBSD 6.2-RELEASE
Environment = VMWare (Version 5) and Computer (CPU=Intel P4 2.4G,
Memory=Kingston 1G DDR400, Storage=2G CF)

create a less-than 100MB of image (image for ramdisk, mfs root)
The loader.rc {
 load kernel  // The kernel used 6.2 GENERIC
load -t mfs_root /image  // dd if=/dev/zero of=/image bs=1k
count=95k
}
above config can boot normal.


create a greater than 100MB of image (image for ramdisk, mfs root)
 The loader.rc {
load kernel  // The kernel used 6.2 GENERIC
load -t mfs_root /image  // dd if=/dev/zero of=/image bs=1k
count=128k
}
above config can't boot normal, reboot immediately.

create a equal 100MB or equal 99MB of image (image for ramdisk, mfs root)
The loader.rc {
load kernel  // The kernel used 6.2 GENERIC
load -t mfs_root /image  // dd if=/dev/zero of=/image bs=1k
count=100k (or count=99k)
}
above config can't boot normal, kernel panic.


[TEST] system up normally [GENERIC KERNEL]:

My Step:

   1. dd if=/dev/zero of=/image bs=1k count=128k
   2. mdconfig -a -t vnode -f /image -u 0
   3. bsdlabel -Bw /dev/md0 auto
   4. newfs /dev/md0a
   5. mount /dev/md0a /mnt

df -h

Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad0s1a 23G1.5G 20G 7%/
devfs  1.0K1.0K  0B   100%/dev
/dev/md0a  124M4.0K114M 0%/mnt

system not panic.

but config loader.rc, add load -t mfs_root /image or load -t md_image
/image will panic.
I tried configuring the kernel, change MD_ROOT_SIZE and
MAXDSIZ=(1024UL*1024*1024); MAXSSIZ=(512UL*1024*1024);
DFLDSIZ=(1024UL*1024*1024), panic still.

Can I use 128MB mddisk?
Who can help me~~
Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configuring mod_jk for Apache and Tomcat

2008-02-18 Thread Da Rock
On Mon, 2008-02-18 at 18:07 -0700, James wrote:
 On Tue, 2008-02-19 at 10:54 +1000, Da Rock wrote:
  I'm trying to setup a tomcat server using Apache as the frontend. As
  usual, I'm having trouble (which is why I haven't bothered before, and
  given Tomcat apps a wide berth). Can someone let me know where I'm going
  wrong? I have setup inclusions in the httpd.conf file to use similar
  settings to other modules, etc. Therefore my worker.properties and
  mod_jk.conf is under /extras.
  
  I know something works because they are reflected when I navigate
  to /webapps on the Apache server.
  
  mod_jk.conf:
  # Replace jsp-hostname with the hostname of your JSP server, as
  # specified in workers.properties.
  #
  IfModule mod_jk.c
  JkWorkersFile etc/apache22/extra/workers.properties
  JkLogFile  /var/log/jk.log
  JkShmFile  /var/log/jk-runtime-status
  JkLogLevel error
  
  # Sample JkMounts.  Replace these with the paths you would
  # like to mount from your JSP server.
  JkMount /*.jsp localhost
  JkMount /servlet/* localhost
  JkMount /examples/* localhost
  /IfModule
  
  # Map encoded urls
  Location *;jsessionid=
  SetHandler jakarta-servlet
  /Location
  
  # Map subdirectory
  Location /webapps/
  SetHandler jakarta-servlet
  /Location
  
  
  
  workers.properties:
  # Incredibly simple workers.properties file, intended for connecting
  # to one host, via AJP13.  See the tomcat documentation for
  # information on more exotic configuration options.
  #
  # Change jsp-hostname to the hostname of your JSP server.
  #
  worker.list=localhost
  workers.tomcat_home=/usr/local/apache-tomcat6.0
  workers.java_home=/usr/local/diablo-jdk1.5.0
  worker.localhost.port=8009
  worker.localhost.host=localhost
  worker.localhost.type=ajp13
  worker.localhost.lbfactor=1
  
  
  I figured I didn't need to worry about the setenv variable as I'm only
  testing currently and only need one connector atm.
  
  Any ideas why I shouldn't be seeing the index.jsp found in the Tomcat
  directories?
  
  I also tried navigating directly using port 8009 with no result either
  (And yes, Tomcat has been started- I checked the port using nmap).
  
 
 
 The two things I always screw up: permissions and DNS. If
 your /etc/hosts isn't set up properly, and/or hosts.conf's URL entries
 aren't correct, weird weird errors can happen. If something is set to
 444 instead of 755 (as appropriate), other weirdnesses occur.
 
 Are you using a www user? Make sure they're added as appropriate for the
 file. 
 
 I know *none* of this may be helpful, but I always check those and I've
 usually screwed one up. Otherwise, is there anything
 in /var/log/httpd-error?

You could be right with that, but I think its in my setup somewhere.
What shows up if I navigate to /webapps is it recognises Apache-Tomcat
but gives me a 404. I can't navigate directly to Tomcat, but I'm not
sure I've got it right. 8009 seems to be just for the connector, and
8443 does nothing.

It appears to me that I haven't got a directory on Tomcat setup but I
haven't a clue where to set it. Web.xml seems right, but then I'm not
sure...

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: is there an easier way?

2008-02-18 Thread Gary Kline
On Monday 18 February 2008 15:23:33 Tim Daneliuk wrote:
 Gary Kline wrote:
  To my fellow C nerds,
 
  It's been a  great manny years since I wrote this appended
  snippet.  Now I can't remember why (of if ) I need all the
  strcpy() calls.   Is there a simpler, more logical way of
  printing a bunch of string by snipping off the left-most?
 
  In short,, can anyone 'splain why strtok needs all this?
 
  tia,
 
  gary

 I don't think you need the copies.  This works just as well:

 #include stdio.h
 #include string.h

 main()
 {
char *bp, *tok;
char *delim= , s1[256]=abc def ghi jkl mno.;

bp = s1;   /* Now both point to the literal string to be tokenized */

while ((tok = strtok(bp, delim)) != NULL)
{
  bp = NULL;
  printf(tok = [%s]\n, tok);
}
 }

I'll try this and compare it to what Joe sent.  Also looking at publib.0.39 
that LIW started years back.  Ideally, I think it's better to malloc space 
because given my intended use, the strings could be relatively few ... or run 
into the thousands.  

Parenthetically,  I'm trying to get use to kmail, and evolution, both of which 
are hard to save the attachment-of. mutt is so much easier.  

Thanks for the feedback.  much appreciated,
-- 
Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD 6.3 Xorg issues

2008-02-18 Thread takhoos
Anyone else having issues getting Xorg working with 6.3?   I get a pcidata 
error when trying to startx.   Used to work great on 6.2.   Do I have to instal 
Xorg manually with 6.3?  --Joe 
_
Climb to the top of the charts! Play the word scramble challenge with star 
power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


libc5 on freebsd 6.3

2008-02-18 Thread lenny
after several years of relatively trouble free system ( 5  6.3 ) and port
upgrades, I started having some issues with timesieved daemon of cyrus
imap.
nothing in the software configuration has changed, but the cyrus port was
recently upgraded ( around the same time that the system was upgraded from
6.2 to 6.3 )

the only thing that looks suspicious is the fact that most ( or all )
cyrus binaries are linked to both libc5 and libc6.  in fact, after some
digging around, I discovered that many other binaries on the system seem
be linked to both libraries. I suspect that libc5 is the remnant of 5x
installation.

 What's the safest thing to do ?

 remove libc5 and link libc5 to libc6  ?

rebuild affected software ? ( couldn't find a relevant make.conf option,
so what might a flag like that look like ? WITH_LIBC_VER=6   ?

or is there something else that can be done ?

also, it would be helpful to learn how to avoid this in the future.

Thanks a lot in advance.



/usr/local/cyrus/bin/timsieved:
libsasl2.so.2 = /usr/local/lib/libsasl2.so.2 (0x8814b000)
libgssapi.so.8 = /usr/lib/libgssapi.so.8 (0x88162000)
libkrb5.so.8 = /usr/lib/libkrb5.so.8 (0x88171000)
libasn1.so.8 = /usr/lib/libasn1.so.8 (0x881ab000)
libroken.so.8 = /usr/lib/libroken.so.8 (0x881d3000)
libcrypt.so.3 = /lib/libcrypt.so.3 (0x881e)
libcom_err.so.3 = /usr/lib/libcom_err.so.3 (0x881f9000)
libdb-4.2.so.2 = /usr/local/lib/libdb-4.2.so.2 (0x881fb000)
libssl.so.4 = /usr/lib/libssl.so.4 (0x882d)
libcrypto.so.4 = /lib/libcrypto.so.4 (0x88302000)
libmd.so.3 = /lib/libmd.so.3 (0x8840f000)
libwrap.so.4 = /usr/lib/libwrap.so.4 (0x8841e000)
libc.so.6 = /lib/libc.so.6 (0x88425000)
libc.so.5 = /lib/libc.so.5 (0x8851c000)




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: accessing a jailed samba server

2008-02-18 Thread Josh

I am having dramas with samba in a 6.3 jail

Basically the part that is not working, is I cant ping/resolve the 
netbios name of the samba box from any windows machine. There is a linux 
samba box here, and I tried the same config as that, and no go.


Baiscally if I try and ping it from a windows box, I get this:

ping bytecart
Ping request could not find host bytecart. Please check the name and try 
again.


Nothing in nbtstat -c relating to the samba box.

The weird thing is that I can see the samba box in windows explorer in 
the network places. Clicking on it obvious says 'network path not found' 
or such. I can manually map the network drive by going 
\\1.2.3.4\username though.


Also, this seems odd (from netstat -an):

udp4   0  0  192.168.94.9.138*.*
udp4   0  0  192.168.94.9.137*.*
udp4   0  0  192.168.94.9.138*.*
udp4   0  0  192.168.94.9.137*.*


So yeah, any ideas?

Cheers,
Josh


Gelsema, P (Patrick) - FreeBSD wrote:

On Wed, February 13, 2008 17:44, Dave wrote:

Hello,
Has anyone got samba running in a jail? And if so, is it possible to
access that server from outside this jail? I'm implementing some items in
a
jailed environment and now have to test samba before going production.
If any workarounds are needed i'd appreciate knowing them.
Thanks.
Dave.



Running Samba within a jail on Freebsd 7-RC2 serving data from a ZFS pool.
No issues or anything special required.

Rgds,

Patrick


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 6.3 Xorg issues

2008-02-18 Thread Erich Dollansky

Hi,

[EMAIL PROTECTED] wrote:
Anyone else having issues getting Xorg working with 6.3?   I get a pcidata error when trying to startx.   Used to work great on 6.2.   Do I have to instal Xorg manually with 6.3?  --Joe 


I upgraded by accident to 6.3 and did not even notice any difference.

I started csup with the intent to patch 6.2 but upgraded the sources to 
6.3, compiled, installed and rebooted without any problems.


I know, but it happend this way.

X kept on working.

Erich

_
Climb to the top of the charts! Play the word scramble challenge with star 
power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: java decoder?

2008-02-18 Thread Joe Marcus Clarke

On Mon, 2008-02-18 at 17:33 -0800, Gary Kline wrote:
 Guys,
 
 I doubt this but is there anything that will take a foo.jar and turn in back 
 into java?  Or at least assembler?   

A jar is an archive which contains multiple Java class files.  So you
will need to extract the class files first (e.g. jar -xf foo.jar).

Once you have a class file or files you can use java/jad to decompile
the byte code back to .java source code.

Joe

-- 
PGP Key : http://www.marcuscom.com/pgp.asc


signature.asc
Description: This is a digitally signed message part


Re: Configuring mod_jk for Apache and Tomcat

2008-02-18 Thread Da Rock

On Mon, 2008-02-18 at 19:28 -0700, James wrote:
 On Tue, 2008-02-19 at 11:54 +1000, Da Rock wrote:
  On Mon, 2008-02-18 at 18:07 -0700, James wrote:
   On Tue, 2008-02-19 at 10:54 +1000, Da Rock wrote:
I'm trying to setup a tomcat server using Apache as the frontend. As
usual, I'm having trouble (which is why I haven't bothered before, and
given Tomcat apps a wide berth). Can someone let me know where I'm going
wrong? I have setup inclusions in the httpd.conf file to use similar
settings to other modules, etc. Therefore my worker.properties and
mod_jk.conf is under /extras.

I know something works because they are reflected when I navigate
to /webapps on the Apache server.

mod_jk.conf:
# Replace jsp-hostname with the hostname of your JSP server, as
# specified in workers.properties.
#
IfModule mod_jk.c
JkWorkersFile etc/apache22/extra/workers.properties
 
 Is this line right? Shouldn't it be /etc/apache22 etc, or am I just
 misthinking?
 
 
 
JkLogFile  /var/log/jk.log
JkShmFile  /var/log/jk-runtime-status
JkLogLevel error

# Sample JkMounts.  Replace these with the paths you would
# like to mount from your JSP server.
JkMount /*.jsp localhost
JkMount /servlet/* localhost
JkMount /examples/* localhost
/IfModule

# Map encoded urls
Location *;jsessionid=
SetHandler jakarta-servlet
/Location

# Map subdirectory
Location /webapps/
SetHandler jakarta-servlet
/Location



workers.properties:
# Incredibly simple workers.properties file, intended for connecting
# to one host, via AJP13.  See the tomcat documentation for
# information on more exotic configuration options.
#
# Change jsp-hostname to the hostname of your JSP server.
#
worker.list=localhost
workers.tomcat_home=/usr/local/apache-tomcat6.0
workers.java_home=/usr/local/diablo-jdk1.5.0
worker.localhost.port=8009
worker.localhost.host=localhost
worker.localhost.type=ajp13
worker.localhost.lbfactor=1


I figured I didn't need to worry about the setenv variable as I'm only
testing currently and only need one connector atm.

Any ideas why I shouldn't be seeing the index.jsp found in the Tomcat
directories?

I also tried navigating directly using port 8009 with no result either
(And yes, Tomcat has been started- I checked the port using nmap).

   
   
   The two things I always screw up: permissions and DNS. If
   your /etc/hosts isn't set up properly, and/or hosts.conf's URL entries
   aren't correct, weird weird errors can happen. If something is set to
   444 instead of 755 (as appropriate), other weirdnesses occur.
   
   Are you using a www user? Make sure they're added as appropriate for the
   file. 
   
   I know *none* of this may be helpful, but I always check those and I've
   usually screwed one up. Otherwise, is there anything
   in /var/log/httpd-error?
  
  You could be right with that, but I think its in my setup somewhere.
  What shows up if I navigate to /webapps is it recognises Apache-Tomcat
  but gives me a 404. I can't navigate directly to Tomcat, but I'm not
  sure I've got it right. 8009 seems to be just for the connector, and
  8443 does nothing.
  
  It appears to me that I haven't got a directory on Tomcat setup but I
  haven't a clue where to set it. Web.xml seems right, but then I'm not
  sure...
  
 
 

OK. Tomcat is working- I managed to find out how to get direct access to
it (had to uncomment a line in server.xml, web.xml). Still  no Apache /
Tomcat connector though. If I navigate to /webapps it says 404 -
although this says the error comes from Apache Tomcat6. Is it the
connector config I need to play with or the Tomcat? In either case, what
do I need to change?

I found through a search that older versions of Tomcat need to have a
listener line in the server.xml. Is this true for Tomcat6?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: is there an easier way?

2008-02-18 Thread Gary Kline
On Mon, Feb 18, 2008 at 05:23:33PM -0600, Tim Daneliuk wrote:
 Gary Kline wrote:
  To my fellow C nerds,
 
  It's been a  great manny years since I wrote this appended
  snippet.  Now I can't remember why (of if ) I need all the
  strcpy() calls.   Is there a simpler, more logical way of 
  printing a bunch of string by snipping off the left-most?
 
  In short,, can anyone 'splain why strtok needs all this?
 
  tia,
 
  gary
 
 
 
 I don't think you need the copies.  This works just as well:
 
 #include stdio.h
 #include string.h
 
 main()
 {
   char *bp, *tok;
   char *delim= , s1[256]=abc def ghi jkl mno.;
 
   bp = s1;   /* Now both point to the literal string to be tokenized */
 
   while ((tok = strtok(bp, delim)) != NULL)
   {
 bp = NULL;
 printf(tok = [%s]\n, tok);
   }
 }
 
 
 
 -- 
 
 Tim Daneliuk [EMAIL PROTECTED]
 PGP Key: http://www.tundraware.com/PGP/


Giving up kmail.  this works too, thanks.  But only with 
a fixed buffer --obv'ly 256 in this case.   still pondering... .
 

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 32 bit and 64 bit freebsd binary compatiblty

2008-02-18 Thread navneet Upadhyay
I didnt get what do you mean.

Do you mean :

I should install lib32 on freeBSD and then rebuild my applications in order
to make it work on 32 and 64 bit systems .

rite now I have built my app on 32 bit system (which is not having lib32
installed), it works on 32 bit freebsd but fails on 64 bit system.


On 2/18/08, Dominic Fandrey [EMAIL PROTECTED] wrote:

 navneet Upadhyay wrote:
  On 2/18/08, Dominic Fandrey [EMAIL PROTECTED] wrote:
  navneet Upadhyay wrote:
  Hi ,
  For our product we generally compile the binaries on 32 bit
  systems
  and use them for both 32 and 64 bit systems. like we have same
 binaries
  for
  32 bit and 64 bit RHEL.
 
  We are porting the product to FreeBSD and when we tried the same,
  i.erunning binaries compiled on 32 bit FreeBSD
  6.2 on 64 bit FreeBSD system they produce *core dump.*
 
 
  Any known reasons, do we have to compile binaries on 64 bit machine.
  This should not happen. I would blindly guess at a linking problem. Are
  you
  using any shared libraries that do not belong to the base system?
 
 
  Yes i am using few libs not built on FreeBSD but they work fine on 32
 bit
  freeBSD , so in principle they shud have the same behavior on 64 one.

 I suppose you are aware that they have to be 32-Bit libraries as well, for
 your 32-Bit application to work?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Your Assistance

2008-02-18 Thread Mrs . Lindiwe Zuma
Dear Friend, 
 
It is out of desperation I am sending you this email. I would like to remain 
anonymous for now till I am able to trust your confidentiality in this matter. 
 
My husband and I need your help to front for us as owners of funds that are his 
which might come under investigation if the funds ownership is not changed 
soonest as my husband's finances are increasingly becoming the source of 
investigation by our Detractors. 
 
The source of this fund, which my husband’s earnings would not validate, will 
further sink him into the cesspool dug by our enemies. It is because of the 
dire situation we find ourselves that we resolve to reach you and ask for your 
assistance in this matter. 
 
It is only customary in Africa when one occupies a high position like my 
husband did, to enjoy the privilege of being presented with gratifications 
sometimes through the award of contracts especially by companies that came into 
operation during his tenure. But due to the recent plot by our detractors 
towards my husband, hence we immediately wish to move some funds away that his 
income cannot account for and which came in form of gratification while he was 
in office. 
 
We are averse to letting those we know here in my country into this transaction 
because we are no longer sure who our friends are. You will be handsomely 
rewarded if you choose to help us in partnership in this deal. 

I will be expecting to hear from you as soon as possible, and will disclose 
further details to you upon your response. 

Do well not to disclose the content of this mail to anyone please. 
 
Best Regards,
 
Mrs. Lindiwe Zuma.

[EMAIL PROTECTED]



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


thankee, thankee!

2008-02-18 Thread Gary Kline

Giorgos, Joe, Paul , and Tim,

Thanks for your insights today, gentlemen.  I began on what may be a very
worthwhile [ and reasonably small, *thankfully*] program that may benefit
everybody who reads text online.   Or off, for that matter.   I was using
a shareware version that kept annoying me to shovel $$$ their way when I
finally got PO'd enough to do my own version.  The algorithm comes first,
naturally.  Then the data structs|classes|whatever.   ---I do prelim
coding while I'm planning;  helps me figure things out.

GUI: yes, I will need help with eventually; for now, going back and forth
from that tts app,  KTTSmgr(?) and the other shareware, I kept improving
the dickens out of my thesis.S see what happens.  No offense
to those of us who have hacked out man pages or other docs, but I'm
pretty sure that using these tools will inddeed help improve the online 
documentation _considerably_.


gary



-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


I NEED YOUR ASSISTANCE

2008-02-18 Thread Mrs.Mary Yengeni
新しいメールアドレスをお知らせします新しいメールアドレス: [EMAIL PROTECTED]

I am Mary Yengeni. from south African a Parliamentarian Wife i contacted you to 
be my project partner and stand as my Husband foriegn partner for transfer of 
US$15 million into your account for investment



1) http://news.bbc.co.uk/2/hi/business/2756861.stm



Sincerely,



- Mrs.Mary Yengeni

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 32 bit and 64 bit freebsd binary compatiblty

2008-02-18 Thread Dominic Fandrey

navneet Upadhyay wrote:

On 2/18/08, Dominic Fandrey [EMAIL PROTECTED] wrote:

navneet Upadhyay wrote:

On 2/18/08, Dominic Fandrey [EMAIL PROTECTED] wrote:

navneet Upadhyay wrote:

Hi ,
For our product we generally compile the binaries on 32 bit

systems

and use them for both 32 and 64 bit systems. like we have same

binaries

for

32 bit and 64 bit RHEL.

We are porting the product to FreeBSD and when we tried the same,
i.erunning binaries compiled on 32 bit FreeBSD
6.2 on 64 bit FreeBSD system they produce *core dump.*


Any known reasons, do we have to compile binaries on 64 bit machine.

This should not happen. I would blindly guess at a linking problem. Are
you
using any shared libraries that do not belong to the base system?


Yes i am using few libs not built on FreeBSD but they work fine on 32

bit

freeBSD , so in principle they shud have the same behavior on 64 one.

I suppose you are aware that they have to be 32-Bit libraries as well, for
your 32-Bit application to work?


I didnt get what do you mean.

Do you mean :

I should install lib32 on freeBSD and then rebuild my applications in order
to make it work on 32 and 64 bit systems .

rite now I have built my app on 32 bit system (which is not having lib32
installed), it works on 32 bit freebsd but fails on 64 bit system.


The app needs 32-Bit libraries tu run on 64 Bit. I suggest you link your 
program statically against libraries that are not part of the base system. 
That way everything should run just fine.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


wine: notepad OK, others not

2008-02-18 Thread perryh
I have installed wine-0.9.20 from ports, and
there's a Win98 FAT32 slice mounted on /windoze

  % grep -w windoze /etc/fstab
  /dev/ad0s1/windozemsdosfsro00

If I run Notepad, like this, it seems to work

  % wine /windoze/WIN98/NOTEPAD.EXE

but if I then try to run Write:

  % wine /windoze/WIN98/WRITE.EXE

the window title bar says Wordpad and several
capabilities (like Save) don't work.

Meanwhile the *real* Wordpad doesn't even start:

  % wine /windoze/PROGRA~1/ACCESS~1/WORDPAD.EXE
  err:module:import_dll Library MFC42.DLL (which is needed by 
LZ:\\windoze\\PROGRA~1\\ACCESS~1\\WORDPAD.EXE) not found
  err:module:LdrInitializeThunk Main exe initialization for 
LZ:\\windoze\\PROGRA~1\\ACCESS~1\\WORDPAD.EXE failed, status c135

but MFC42.DLL does exist, in what I think is the usual place:

  % find /windoze -name MFC42.DLL -ls
  3536377 1948 -rwxr-xr-x 1 root wheel 995383 Apr 23 1999 
/windoze/WIN98/SYSTEM/MFC42.DLL

How do I fix this?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Computers that us FreeBSD. HELP!!!!!!!

2008-02-18 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Ryan Jenkins
 Sent: Monday, February 18, 2008 4:20 PM
 To: freebsd-questions@freebsd.org
 Subject: Computers that us FreeBSD. HELP!!!
 Importance: Low


 Hello,

 I currently have a Computer System that is based off the FreeBSD Operating
 System and I am trying to find a new supplier of hardware.  Right now I am
 having a hard time finding a Computer Manufacture that can make a system
 that uses FreeBSD.

Hi Ryan,

  Please go here:

http://www.freebsd.org/commercial/hardware.html

  Several of the hardware vendors on this list can supply you with
ready-to-run FreeBSD workstations and servers, loaded to your
specifications.

Ted Mittelstaedt

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Your invitation from harikrishna jalamanchili is about to expire

2008-02-18 Thread jaxtr Invitation
Hello,

On Feb 04, 2008, harikrishna jalamanchili sent you an invitation to get jaxtr.

On Sunday (Feb 24), this invitation will expire. Follow this link to get jaxtr:

http://www.jaxtr.com/user/ticket?n=T1n2xu2560yal7type=joininvite

Signing up is free and takes less than a minute.

--

This is a one-time courtesy notification from jaxtr about the expiration of 
this invitation from harikrishna jalamanchili
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Still looking for a calendar server...

2008-02-18 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Da Rock
 Sent: Monday, February 18, 2008 4:16 PM
 To: freebsd-questions@freebsd.org
 Subject: Re: Still looking for a calendar server...
 
 
 
 I'm currently looking into bedework now- it seems ideal, but getting
 tomcat to work with apache is becoming a challenge. I'm using mod_jk but
 it doesn't appear to be cooperating yet.
 
 What is your experience in building apache modules? The problem is
 mainly in the mod_dav_acl module which needs xattr.h. I'm wondering if
 we can borrow the headers from another source.
 

You can borrow whatever headers you need to get the code to compile.
You may find that it would work a lot better though if you
change the xattr.h include to:

include sys/extattr.h

The problem will be in the link stage.  If the libraries that you
have linked in do not contain the functions that are defined in
xattr.h then you will get link failures.

However I don't really understand why your having problems.  The
SF page for this, here:

http://sourceforge.net/projects/moddavacl

claims:

Operating System: All POSIX (Linux/BSD/UNIX-like OSes)

This would indicate a configure script that understands
FreeBSD is present.  It sounds to me like you are not
following the instructions included with the mod_dav_acl module
to build it properly.  What exactly are you doing?  Could you
post the steps your going through to build this?

I had thought Mirosoft deprecated all the webdav stuff in
future IIS servers - maybe there is a lack of interest in the
industry now?

Ted
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]