building libtorrent error: 'u_int16_t' does not name a type

2013-02-19 Thread David Collins
Hi,

I'm trying to build libtorrent/rtorrent using gcc 4.8. The reason I'm
using gcc 4.8 rather than the version in base is because there is
apparently a bug in gcc 4.2 - http://libtorrent.rakshasa.no/ticket/926 

I installed gcc 4.8 based on these instructions
http://www.freebsd.org/doc/en/articles/custom-gcc/article.html,
replacing 44 for 48 where neccessary. While building I get the
errors below.

Have I missed something while installing gcc 4.8? Or does anyone have an ideas
about how to fix this?

Thanks
David


build.jail:/usr/ports/net-p2p/libtorrent make build
===  Building for libtorrent-0.13.2_1
make  all-recursive
Making all in src
Making all in torrent
Making all in data
Making all in download
Making all in peer
Making all in utils
/bin/sh /usr/local/bin/libtool --tag=CXX--mode=compile g++48 
-DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -O2 -pipe 
-fno-strict-aliasing -DNDEBUG -fvisibility=hidden -D_THREAD_SAFE -pthread 
-I/usr/include -I/usr/local/include/sigc++-2.0 
-I/usr/local/lib/sigc++-2.0/include -MT option_strings.lo -MD -MP -MF 
.deps/option_strings.Tpo -c -o option_strings.lo option_strings.cc
libtool: compile:  g++48 -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. 
-I../../.. -O2 -pipe -fno-strict-aliasing -DNDEBUG -fvisibility=hidden 
-D_THREAD_SAFE -pthread -I/usr/include -I/usr/local/include/sigc++-2.0 
-I/usr/local/lib/sigc++-2.0/include -MT option_strings.lo -MD -MP -MF 
.deps/option_strings.Tpo -c option_strings.cc  -fPIC -DPIC -o 
.libs/option_strings.o
In file included from ./../../torrent/connection_manager.h:45:0,
 from option_strings.cc:43:
/usr/include/netinet/in_systm.h:49:9: error: 'u_int16_t' does not name a type
 typedef u_int16_t n_short;  /* short as received from the net */
 ^
/usr/include/netinet/in_systm.h:50:9: error: 'u_int32_t' does not name a type
 typedef u_int32_t n_long;  /* long as received from the net */
 ^
/usr/include/netinet/in_systm.h:52:9: error: 'u_int32_t' does not name a type
 typedef u_int32_t n_time;  /* ms since 00:00 GMT, byte rev */
 ^
In file included from ./../../torrent/connection_manager.h:46:0,
 from option_strings.cc:43:
/usr/include/netinet/ip.h:51:2: error: 'u_int' does not name a type
  u_int ip_hl:4,  /* header length */
  ^
/usr/include/netinet/ip.h:58:2: error: 'u_char' does not name a type
  u_char ip_tos;   /* type of service */
  ^
/usr/include/netinet/ip.h:59:2: error: 'u_short' does not name a type
  u_short ip_len;   /* total length */
  ^
/usr/include/netinet/ip.h:60:2: error: 'u_short' does not name a type
  u_short ip_id;   /* identification */
  ^
/usr/include/netinet/ip.h:61:2: error: 'u_short' does not name a type
  u_short ip_off;   /* fragment offset field */
  ^
/usr/include/netinet/ip.h:66:2: error: 'u_char' does not name a type
  u_char ip_ttl;   /* time to live */
  ^
/usr/include/netinet/ip.h:67:2: error: 'u_char' does not name a type
  u_char ip_p;   /* protocol */
  ^
/usr/include/netinet/ip.h:68:2: error: 'u_short' does not name a type
  u_short ip_sum;   /* checksum */
  ^
/usr/include/netinet/ip.h:166:2: error: 'u_char' does not name a type
  u_char ipt_code;  /* IPOPT_TS */
  ^
/usr/include/netinet/ip.h:167:2: error: 'u_char' does not name a type
  u_char ipt_len;  /* size of structure (variable) */
  ^
/usr/include/netinet/ip.h:168:2: error: 'u_char' does not name a type
  u_char ipt_ptr;  /* index of current entry */
  ^
/usr/include/netinet/ip.h:170:2: error: 'u_int' does not name a type
  u_int ipt_flg:4,  /* flags, see below */
  ^
/usr/include/netinet/ip.h:217:2: error: 'u_char' does not name a type
  u_char  ippseudo_pad; /* pad, must be zero */
  ^
/usr/include/netinet/ip.h:218:2: error: 'u_char' does not name a type
  u_char  ippseudo_p; /* protocol */
  ^
/usr/include/netinet/ip.h:219:2: error: 'u_short' does not name a type
  u_short  ippseudo_len; /* protocol length */
  ^
*** Error code 1

Stop in 
/.write/usr-local/build/usr/ports/net-p2p/libtorrent/work/libtorrent-0.13.2/src/torrent/utils.
*** Error code 1

Stop in 
/.write/usr-local/build/usr/ports/net-p2p/libtorrent/work/libtorrent-0.13.2/src/torrent.
*** Error code 1

Stop in 
/.write/usr-local/build/usr/ports/net-p2p/libtorrent/work/libtorrent-0.13.2/src.
*** Error code 1

Stop in 
/.write/usr-local/build/usr/ports/net-p2p/libtorrent/work/libtorrent-0.13.2.
*** Error code 1

Stop in 
/.write/usr-local/build/usr/ports/net-p2p/libtorrent/work/libtorrent-0.13.2.
*** Error code 1

Stop in /usr/ports/net-p2p/libtorrent.
*** Error code 1

Stop in /usr/ports/net-p2p/libtorrent.


build.jail:/usr/ports/net-p2p/libtorrent gcc -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070831 patched [FreeBSD]

build.jail:/usr/ports/net-p2p/libtorrent g++ -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix

Re: OT: Robotics or embedded or hardware programming... what is this called?

2012-06-21 Thread David Collins
I have one of these

http://www.nerdkits.com/

They pack everything you need in and a few examples, quite neat but
you need to do some electronics

On 21/06/2012, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:
 I want to get started programming for hardware. Motors, sensors,
 actuators, etc.
 I have a programming background, (python, PHP, C++) but no experience with
 code
 that drives hardware. (Motors, sensors, etc.)

 add -- to your language list so first 2 would disappear and third will
 become C.

 I *don't* want closed-source kit robots where the point is to build the
 robot
 the book and thats it. I also don't want ladder logic-based PMC's. Some
 kind of
 micro-controller that runs a *nix flavor (or a BSD flavor!) would be
 great! (If

 Why do you want something like microcontroller to run any OS?
 What do you call this? Embedded programming? Generic hardware
 programming?

 running unix on microcontroller-style hardware is what i call nonsense.

 Writing your program that runs from first executed instruction is what i
 call normal programming of such devices.

 The proper way is to

 1) buy a microcontrooler chip, make your hardware using it, possibly buy
 already made boards. microcontrollers are 1$, some more capable 32-bit
 ones (ARM compatible usually, some are MIPS) for 2-3$.

 2) throw away all included libraries because they are mostly mess.
 prepare something that can be used as crt0.s
 Better write it yourself in assembly. shouldn't be larger than 5
 instructions anyway, a bit more if ARM interrupt vectors are needed to be
 filled.

 Some assembly knowledge is very useful, in spite of writing most in C.

 3) read documentation. All embedded devices (like A/D converters, PWM
 generators etc.) are described. With 32-bit micros start from memory MAP
 chapter and then device description. You will just find out at what
 address your peripheral is accessible.

 4) lets say for example that 32 GPIO pins are accessible at address
 0x40001000 for setting ports, 0x40002000 for resetting ports, 0x40003000
 for reading out value, and 0x40004000 for setting direction
 (input/output).

 #define GPIO0_SET ((int*)0x40001000)
 #define GPIO0_RESET ((int*)0x40002000)
 #define GPIO0_READ ((int*)0x40003000)
 #define GPIO0_DIR ((int*)0x40004000)


 5) use it in your program.

 *GPIO0_DIR=0x; //sets all pins to output
 *GPIO0_SET=0x; //sets every other pin to 1
 *GPIO0_RESET=0x; //set the rest to 0



 if you have questions send it privately. microcontrollers are wrong place
 for unix system and it's overcomplexity relatively to the task.

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

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


XBMC home theater PC

2012-06-08 Thread David Collins
Hi,

I've recently got a Dell Optiplex 760 that I'm using as a home theatre
PC set up with FreeBSD and XBMC. It's mostly working very well but
there are just a couple of niggles I'd like to work out to see it
working perfectly.

1.
Suspend and resume is working well if the usb modules are
kld(un/)loaded before and after suspend. I've just been gifted a
radeon hd RV610 graphics card which seems quite nice. I'd like to
get the card to work with suspend, but the card doesn't like resume 

If I do a kldunload/kldload on the radeonhd module or don't bother I
see the following errors in /var/log/Xorg.0.log:

 (EE) RADEONHD(0): RHDCSStop: Command Submission backend is not active!
 rhd_crtc.c:586: DxModeRestore: Assertion '!RHD_CHECKDEBUGFLAG(rhdPtr, 
 VGA_SETUP)' failed.
 
 FatalError re-entered, aborting
 Server aborting

or

 Segmentation fault: 11 at address 0x4
 
 Fatal server error:
 Caught signal 11 (Segmentation fault: 11). Server aborting

and in both cases, a load of:

 (WW) RADEONHD(0): DRMCPIdle: DRM CP IDLE returned BUSY

Also there are loads of the following in /var/log/messages:
 Jun  8 21:13:02 xbmc kernel: info: [drm] wait idle failed status : 0xA0003030 
 0x0003

Googling for these error messages returns threads dated around 2009. I
would have thought that if this was an issue then it would have been
solved, although they weren't related to suspend/resume.  Has anyone
else seen this error or know of a fix for it? Currency I just restart
the X server on resume.

2.
If the machine is powerd down I am able to WOL to boot the computer,
but if I put the computer into suspend I am not able to. The nic light
is still on but doesn't wake the computer. I'm wondering if this is
the OS not the card in the same way as during a shutdown. Does anyone
know of a solution to this or a work around?

3.
Finally, I think this may be a bit of a shot in the dark, but is it
possible to have a USB event wake the computer? I imagine that the
hardware determines if this is possible (like WOL) and if not all the
USB code has been unloaded from the kernel anyway. I'd still be
interested to hear thoughts though.

Regards,
David Collins
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


XBMC home theater PC

2012-06-08 Thread David Collins
Hi,

I've recently got a Dell Optiplex 760 that I'm using as a home theatre
PC set up with FreeBSD (9.0-STABLE) and XBMC. It's mostly working very
well but there are just a couple of niggles I'd like to work out to
see it working perfectly.

1.
Suspend and resume is working well if the usb modules are
kld(un/)loaded before and after suspend. I've just been gifted a
radeon hd RV610 graphics card which seems quite nice. I'd like to
get the card to work with suspend, but the card doesn't like resume 

If I do a kldunload/kldload on the radeonhd module or don't bother I
see the following errors in /var/log/Xorg.0.log:

 (EE) RADEONHD(0): RHDCSStop: Command Submission backend is not active!
 rhd_crtc.c:586: DxModeRestore: Assertion '!RHD_CHECKDEBUGFLAG(rhdPtr, 
 VGA_SETUP)' failed.
 
 FatalError re-entered, aborting
 Server aborting

or

 Segmentation fault: 11 at address 0x4
 
 Fatal server error:
 Caught signal 11 (Segmentation fault: 11). Server aborting

and in both cases, a load of:

 (WW) RADEONHD(0): DRMCPIdle: DRM CP IDLE returned BUSY

Also there are loads of the following in /var/log/messages:
 Jun  8 21:13:02 xbmc kernel: info: [drm] wait idle failed status : 0xA0003030 
 0x0003

Googling for these error messages returns threads dated around 2009. I
would have thought that if this was an issue then it would have been
solved, although they weren't related to suspend/resume.  Has anyone
else seen this error or know of a fix for it? Currency I just restart
the X server on resume.

2.
If the machine is powerd down I am able to WOL to boot the computer,
but if I put the computer into suspend I am not able to. The nic light
is still on but doesn't wake the computer. I'm wondering if this is
the OS not the card in the same way as during a shutdown. Does anyone
know of a solution to this or a work around?

3.
Finally, I think this may be a bit of a shot in the dark, but is it
possible to have a USB event wake the computer? I imagine that the
hardware determines if this is possible (like WOL) and if not all the
USB code has been unloaded from the kernel anyway. I'd still be
interested to hear thoughts though.


Regards,
David Collins
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


freebsd 8.2 on amd64 opteron

2011-04-04 Thread David Collins
Hi List,

I have been using FreeBSD for a number of years and love it. I have a
friend who is competent it linux and wanted me to help him get started
with BSD. 

He has an amd64 opteron dual core 2GHz w/ 4G memory. Not realising we
installed the i386 version of freebsd 8.0 and upgraded to 8.2 without
any problem. We then tried the amd64 version of 8.2 which installed
without any problems. However, when we log in the system either
reboots or panics with a message on the screen within about 10
minutes. 

I have googled around and not found very much information about this.
Does anyone have any ideas that I can try to overcome this?

Thanks

David Collins


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


devfs rules

2010-01-26 Thread David Collins
Hi,

I am trying to get devfs to only show me a few devices but I can't
seem to get devfs to recognise the new rules that I create.

devfs recognises some of the rules but not all of them:
# devfs -m /path/to/jail rule showsets
1
2
3
4
8
9
10
11

Rules 12 and 13 are not recognised. If I try to set the devfs ruleset
to 4 (for jail in /etc/defaults/devfs.rules) for the /dev mounted in
the jail then add the rules and applyset everything works fine.

When i try to start the jail I get the following:

viper:/usr/jails# /etc/rc.d/jail restart myjail
Configuring jails:.
Starting jails:devfs rule: expecting argument for include
devfs rule: expecting argument for include
/etc/rc.d/jail: WARNING: devfs_set_ruleset: you must specify a ruleset
number
devfs rule: ioctl DEVFSIO_SAPPLY: No such process

I'm not sure why I get the first warning, it doesn't seem to prevent
anything from working in my other jails. The second warning is because
devfs can't find the rule set (defined as
jail_avr_devfs_ruleset=devfsrules_jail_avr in rc.conf)

Can anyone shed any light on this for me I can't seem to figure it
out. Googling doesn't seem to help me either

viper:~$ uname -a
FreeBSD viper 7.0-RELEASE-p12 FreeBSD 7.0-RELEASE-p12 #0: Wed Oct  7 13:39:21 
BST 2009 VIPER  i386




The contents of my devfs.rules is below

# cat /etc/devfs.rules
#
# Devices for xserver in jail
#
[devfsrules_unhide_xorg=8]
add path agpgart unhide
#add path console unhide
add path dri unhide
add path 'dri*' unhide
add path io unhide
add path mem unhide
#add path pci unhide
add path tty unhide
add path ttyv0 unhide
add path ttyv1 unhide
add path ttyv8 unhide

[devfsrules_unhide_cam=9]
add path 'da*' unhide
add path 'cd*' unhide

[devfsrules_unhide_kmem=10]
add path kmem unhide

#
# This allows to run a desktop system in a jail.  Think about what you want to
# achieve before you use this, it opens up the entire machine to access from
# this jail to any sophisticated program.
#
[devfsrules_jail_desktop=11]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add include $devfsrules_unhide_audio
add include $devfsrules_unhide_input
add include $devfsrules_unhide_xorg
add include $devfsrules_unhide_cam
add include $devfsrules_unhide_kmem


#
# add include $devfsrules_jail
#
[devfsrules_jail_dhcp=12]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add path 'bpf*' unhide
add path net unhide
add path 'net/*' unhide

#
# dev rules for serial avr device jail
#
[devfsrules_jail_avr=13]
add include $devfsrules_jail
add path 'cuaU*' unhide



David Collins
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Have not received emails for a few days now....

2009-12-16 Thread David Collins
Mike Jeays mike.je...@rogers.com wrote:

 On December 16, 2009 01:03:21 pm Diego Montalvo wrote:
  Is there something wrong with the freebsd-questions@freebsd.org
  mailing list? perhaps I got booted accidentally.
 
  Cheers!
  Diego
I have had nothing for a couple of days also, I was beginning to
wonder what to do with my spare time at work!

David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Have not received emails for a few days now....

2009-12-16 Thread David Collins
Gary Gatten ggat...@waddell.com wrote:

 Lmao! If ur that bored lmk, I have PLENTY 4 u 2 do!

haha, I have plenty to do... although I am tempted to swap!


 - Original Message -
 From: owner-freebsd-questi...@freebsd.org 
 owner-freebsd-questi...@freebsd.org
 To: mike.je...@rogers.com mike.je...@rogers.com; 
 freebsd-questions@freebsd.org freebsd-questions@freebsd.org
 Sent: Wed Dec 16 17:40:11 2009
 Subject: Re: Have not received emails for a few days now

 Mike Jeays mike.je...@rogers.com wrote:

  On December 16, 2009 01:03:21 pm Diego Montalvo wrote:
   Is there something wrong with the freebsd-questions@freebsd.org
   mailing list? perhaps I got booted accidentally.
  
   Cheers!
   Diego
 I have had nothing for a couple of days also, I was beginning to
 wonder what to do with my spare time at work!

 David
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

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


Re: flashplugin

2009-11-18 Thread David Collins

  This is what I did for a 7.2 box.  Note that there are compatibility
 
   # pkg_info -orx linux  linux-stuff
   # pkg_delete -rx linux
 
   # cd /compat/linux
   # find . -type f -ls
   # rm -rf *
 
   # sysctl compat.linux.osrelease=2.6.16
 
   OVERRIDE_LINUX_BASE_PORT=   f10
   OVERRIDE_LINUX_NONBASE_PORTS=   f10
 
 to /etc/make.conf.
 
   # portinstall www/nspluginwrapper
   # nspluginwrapper -v -a -i
 
  * Finally, fire up Firefox and check that it has loaded the flash plugin by
typing 'about:plugins' into the URL bar.  Find a site with flash 
  content[*],
and enjoy.

 Set linux_enable=YES in /etc/rc.conf and make sure you are mounting 
 linprocfs:
 /etc/fstab:
 # DeviceMountpointFStypeOptionsDumpPass#
 linproc/compat/linux/proc linprocfs rw00

Mounted linprocfs and it worked perfectly! Method tested and works on
another 7.2 box

Thanks :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: flashplugin

2009-11-17 Thread David Collins

I have periodically tested with getting flash working, and everytime I
try it fails and I go back to undoing everything I have done and
re-installing gnash. Gnash works but it does have a few niggles. 

I tried the following:

 This is what I did for a 7.2 box.  Note that there are compatibility

  # pkg_info -orx linux  linux-stuff
  # pkg_delete -rx linux

  # cd /compat/linux
  # find . -type f -ls
  # rm -rf *

  # sysctl compat.linux.osrelease=2.6.16

  OVERRIDE_LINUX_BASE_PORT=   f10
  OVERRIDE_LINUX_NONBASE_PORTS=   f10

to /etc/make.conf.

  # portinstall www/nspluginwrapper
  # nspluginwrapper -v -a -i

 * Finally, fire up Firefox and check that it has loaded the flash plugin by
   typing 'about:plugins' into the URL bar.  Find a site with flash content[*],
   and enjoy.

Everything installed easily and about:plugins has Shockwave Flash and
FutureSplash Player as enabled. But, when I go to youtube.com all I get a black
screen and the video doesn't load.

Does anyone have any ideas why flash isn't working?

David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Remote ssh tunnel in background or script?

2009-11-10 Thread David Collins
Kevin Kinsey k...@daleco.biz wrote:

 Greetings!

 In order to continue to allow them to connect to an outbound
 SMTP box on the LAN, I've done this on their server:

 sudo ssh -L thisbox:24:remotebox:52525 m...@remotebox

I wrote a script to get around my home firewall, it doesn't do exactly
as you want but that only requires changing the ssh bit. I call it
from cron so it stays alive, if it dies it will re-connect otherwise
it just checks a lock file.

It may be of use

David

#!/usr/bin/perl


##
## PURPOSE:
##  run reverse ssh to work
##  
##  designed to be run from crontab. creates a lock file so that
##  not more than one instance of the process is started
##


use strict; 
use warnings;


## user crontab doesn't have permission in /var for lock file
## or for ports below 1024
my $username='username';

my $hostname=hostname;
my $address=$hostname..somewhere.com;
my $port=$ARGV[0]; #2022;

my $lckfile=/tmp/revssh.${hostname}.pid;





sub start_ssh {

## fork process to start ssh
defined( my $pid=fork ) or die cannot fork process: $!;



## parent - open lock file with child pid
if($pid) {

print Starting process: $pid\n;

open(LOCKFILE,$lckfile) or die Cannot create lock file: $!;
print LOCKFILE ${pid};
close(LOCKFILE);

} else {

## child - start ssh process
exec(ssh -qnNCX -R ${port}:localhost:22 .
 ${usernam...@${address})
  or die cannot exec process\n;
}

}




## main

if(! -e $lckfile) {

start_ssh();

} else {

## get running(?) pid from pid file
@ARGV = ($lckfile);my $old_pid = ARGV;
my $running = kill 0, $old_pid;


## lock file exists - is process still running?
if ( $running == 1 ) {
die Process running: $old_pid\n;
} else {
## check lockfile was deleted!
if(! unlink $lckfile) {
  die Lockfile not deleted\n;
  }
print Orphan lock file - Lock file deleted\n\t;

start_ssh();
}
}
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

mailx folder-hook

2009-10-19 Thread David Collins
Hi,

First off I know this isn't the place for this question and it is
totally off topic, but I have been searching the internet for ages and
have read the relevant section of the man page a number of times and
tried a number of combination and I still can't figure this out. I am
asking here because of all the forum/mailing lists that I see this one
is one of the most knowledgable so someone here will probably know the
answer.

I have been using heirloom mailx to get some work based imap email,
and I want to use it to read the questions here too, since it is
easier. However there is quite a lot of traffic and I would like to
filter mail but I can't get it to work.

in my .mailrc I have the following:

## gmail imap account
account ml {
## open inbox
set folder=imaps://u...@imapserver/Inbox
}

## set up mail filters
## move freebsd questions mail the the freebsd_questions folder
define freebsd_questions {
move (text freebsd-questions@freebsd.org) @freebsd_questions
}
set folder-hook-imap://davidcollins00...@imap.gmail.com/Inbox=freebsd_questions

All mail gets delivered and if I type 'call freebsd_questions' all the
mail gets moved, but it won't do it when I login. Does anyone have any
ideas about what I am doing wrong?

David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ports failed install xfce4

2009-07-25 Thread David Collins
Hi

I am trying to install xfce4. I have updated ports , following
UPDATING I uninstalled xfce4.4 and attempted to install xfce4.6.

I have googled this and not found anything other than a gentoo bug
that didn't have a solution.

The box is as follows

FreeBSD cobra.homeunix.com 7.2-STABLE FreeBSD 7.2-STABLE #1: Thu Jul
16 16:28:20 BST 2009
r...@cobra.homeunix.com:/usr/obj/usr/src/sys/COBRA  i386

I get the following error

...
gmake[2]: Entering directory
`/usr/ports/x11-wm/xfce4-desktop/work/xfdesktop-4.6.1/panel-plugin'
/bin/sh ../libtool --tag=CC   --mode=link cc -I../common
-I/usr/local/include -D_THREAD_SAFE -I/usr/local/include
-I/usr/local/include/xfce4 -I/usr/local/include/gtk-2.0
-I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0
-I/usr/local/include/cairo -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include/pixman-1
-I/usr/local/include/freetype2 -I/usr/local/include/atk-1.0
-D_THREAD_SAFE -I/usr/local/include/xfce4/ -I/usr/local/include/xfce4
-I/usr/local/include -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include/gtk-2.0
-I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0
-I/usr/local/include/cairo -I/usr/local/include/pixman-1
-I/usr/local/include/freetype2 -I/usr/local/include/atk-1.0
-DDATADIR=\/usr/local/share\ -DLOCALEDIR=\/usr/local/share/locale\
-DBINDIR=\/usr/local/bin\ -O2 -fno-strict-aliasing -pipe   -o
xfce4-menu-plugin xfce4_menu_plugin-desktop-menu-plugin.o
../common/libxfdesktop-menu.la ../common/libxfdesktop.la -lSM -lICE
-R/usr/local/lib -lX11 -pthread -L/usr/local/lib -lxfcegui4
-lgtk-x11-2.0 -lxfce4util -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
-lpangocairo-1.0 -lgio-2.0 -lXext -lXrender -lXinerama -lXi -lXrandr
-lXcursor -lXcomposite -lXdamage -lpangoft2-1.0 -lXfixes -lcairo -lX11
-lpango-1.0 -lm -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0
-lglib-2.0   -pthread -L/usr/local/lib -lxfce4panel -lxfcegui4
-lgtk-x11-2.0 -lxfce4util -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
-lpangocairo-1.0 -lgio-2.0 -lXext -lXrender -lXinerama -lXi -lXrandr
-lXcursor -lXcomposite -lXdamage -lpangoft2-1.0 -lXfixes -lcairo -lX11
-lpango-1.0 -lm -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0
-lglib-2.0
libtool: link: cc -I../common -I/usr/local/include -D_THREAD_SAFE
-I/usr/local/include -I/usr/local/include/xfce4
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include
-I/usr/local/include/pango-1.0 -I/usr/local/include/cairo
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/pixman-1 -I/usr/local/include/freetype2
-I/usr/local/include/atk-1.0 -D_THREAD_SAFE
-I/usr/local/include/xfce4/ -I/usr/local/include/xfce4
-I/usr/local/include -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include/gtk-2.0
-I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0
-I/usr/local/include/cairo -I/usr/local/include/pixman-1
-I/usr/local/include/freetype2 -I/usr/local/include/atk-1.0
-DDATADIR=\/usr/local/share\ -DLOCALEDIR=\/usr/local/share/locale\
-DBINDIR=\/usr/local/bin\ -O2 -fno-strict-aliasing -pipe -o
xfce4-menu-plugin xfce4_menu_plugin-desktop-menu-plugin.o -pthread
-pthread  ../common/.libs/libxfdesktop-menu.a
../common/.libs/libxfdesktop.a -L/usr/local/lib
/usr/local/lib/libxfce4panel.so /usr/local/lib/libxfcegui4.so
/usr/local/lib/libstartup-notification-1.so
/usr/local/lib/libxcb-aux.so /usr/local/lib/libxcb-event.so
/usr/local/lib/libxcb-atom.so /usr/local/lib/libSM.so
/usr/local/lib/libICE.so /usr/local/lib/libgtk-x11-2.0.so
/usr/local/lib/libxfce4util.so /usr/local/lib/libgdk-x11-2.0.so
/usr/local/lib/libatk-1.0.so /usr/local/lib/libgdk_pixbuf-2.0.so
/usr/local/lib/libpangocairo-1.0.so /usr/local/lib/libgio-2.0.so
/usr/local/lib/libXinerama.so /usr/local/lib/libXi.so
/usr/local/lib/libXrandr.so /usr/local/lib/libXcursor.so
/usr/local/lib/libXcomposite.so /usr/local/lib/libXext.so
/usr/local/lib/libXdamage.so /usr/local/lib/libpangoft2-1.0.so
/usr/local/lib/libXfixes.so /usr/local/lib/libcairo.so
/usr/local/lib/libpixman-1.so -lpng
/usr/local/lib/libxcb-render-util.so /usr/local/lib/libxcb-render.so
/usr/local/lib/libXrender.so /usr/local/lib/libX11.so
/usr/local/lib/libxcb.so /usr/local/lib/libXau.so
/usr/local/lib/libXdmcp.so -lrpcsvc /usr/local/lib/libpango-1.0.so -lm
/usr/local/lib/libfontconfig.so /usr/local/lib/libfreetype.so -lz
/usr/local/lib/libexpat.so /usr/local/lib/libgobject-2.0.so
/usr/local/lib/libgmodule-2.0.so /usr/local/lib/libglib-2.0.so
/usr/local/lib/libintl.so /usr/local/lib/libiconv.so
/usr/local/lib/libpcre.so -pthread -Wl,-rpath -Wl,/usr/local/lib
-Wl,-rpath -Wl,/usr/local/lib
xfce4_menu_plugin-desktop-menu-plugin.o(.text+0x1220): In function
`dmp_create_file_chooser_button':
: undefined reference to `exo_gtk_file_chooser_add_thumbnail_preview'
gmake[2]: *** [xfce4-menu-plugin] Error 1
gmake[2]: Leaving directory
`/usr/ports/x11-wm/xfce4-desktop/work/xfdesktop-4.6.1/panel-plugin'
gmake[1]: *** 

(no subject)

2009-06-11 Thread David Collins
I nfs mount my freeBSD server on my mac, 10.4. For some reason the
mount command doesn't seem to figure out to use mount_nfs, at least
not for me so I run it directly.

mount_nfs -Ps nfs.server.ip:/path/to/share mnt

The -P has to be used with linux nfs servers to use privileged ports,
but not sure if it does with FreeBSD, I also us -s so that if the
server goes down I can kill the connection


  I tried mounting a mac box to my FreeBSD server a while back, but I
  think I was not able to get it to go RW.

  How do you set up NFS as a service in OSX 10.4?  That would be the
  best way as my backup scripts are already set up to do an NFS mount.

  Thanks,
  Chris

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


ethernet card not working

2009-06-03 Thread David Collins
Hi,

I have just gotten an old ethernet card, not entirely sure how old it
is but it has pulse H1012 on one of the chips and appears as ethernet
device fxp0 in freebsd 7.0.

When I plug an ethernet cable between this card and another computer
(freebsd 7.2) ifconfig says that the status has no carrier. When I
unplug either end and plug it into my ibook (OS X) the status changes
to active and I can ping the other computer. From this I can see that
both both freebsd computers have working ethernet cards and the cable
works also, just not freebsd-freebsd.

Does anyone have any ideas why this might be the case and how to fix it?

Thanks
David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ethernet card not working

2009-06-03 Thread David Collins
On 03/06/2009, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:
 unplug either end and plug it into my ibook (OS X) the status changes
 to active and I can ping the other computer. From this I can see that
 both both freebsd computers have working ethernet cards and the cable
 works also, just not freebsd-freebsd.

 Does anyone have any ideas why this might be the case and how to fix it?

 bad cable or not swapped at all.

 between 2 computers you have to make swapped cable on one side put green
 pair in place of yellow, yellow in place of green, brown in place of blue
 and blue in place of brown.

 If it's 10 or 100 Mbps ethernet bluebrown doesn't matter, only 2 pairs
 are used.


The cable works find and so does the network card. I have it plugged
into my ibook and am sshing across it - everything works fine and as
it should when using freebsd to osx, just can't do the same from
freebsd to freebsd.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


portupgrade jails

2009-05-29 Thread David Collins
Hi,

I have several jails for the purpose of not trashing my root partition
with junk programs that I may not need and also to learn how to run
various system services, ie dns, http, mysql, samba etc. I have been
running them for a while and have only just updated the jail root
after rebuilding world.

I have been using portupgrade to rebuild the host ports I have
installed. What I would like it know is if it is possible to use
portupgrade on the host system to update the jail ports. So like when
rebuilding world a destdir is specified and is populated with the new
world, is it possible to do the same with portupgrade? The reason is
because I don't want to have to install portupgrade and ruby several
times, also I can script the upgrade easily too.

I have been reading through the ports and portupgrade man pages and
setting environment variables to the appropriate directories in the
jail to try to get this to work but so far no luck. Portupgrade wants
to upgrade the host ports

Here is what I have tried so far:

viper:~$ export DISTDIR=/usr/jails/xserver/var/tmp/
viper:~$ export WRKDIRPREFIX=/usr/jails/xserver/var/tmp/
viper:~$ export PREFIX=/usr/jails/xserver/usr/local/
viper:~$ export BATCH=yes
viper:~$ export PORT_DBDIR=/usr/jails/xserver/var/db/p
viper:~$ export PORT_DBDIR=/usr/jails/xserver/var/db/ports
viper:~$ export PKG_DBDIR=/usr/jails/xserver/var/db/pkg/
viper:~$ export PORTS_DBDIR=/usr/jails/xserver/var/db/ports
viper:~$
viper:~$ sudo portupgrade -narR

 snip wanting to upgrade host ports 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: powerd

2009-04-08 Thread David Collins
 Frequency control is not supported in your case.  You must
 have dev.cpu.0.freq and so on.  What kind of processor do
 you have?  Does it support powernow, cool'n'quiet or
 similar features?

CPU: Pentium III/Pentium III Xeon/Celeron (501.14-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x673  Stepping = 3
  
Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE


 Also, make sure that you have device cpufreq
 kernel configuration.  If you don't have it, try to load
 the module:  kldload cpufreq

I have device cpufreq in the kernel conf and I loaded/unloaded it separately.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


powerd

2009-04-07 Thread David Collins
Hi,

I have just realised that my computer is making a ton of noise, and I
would like it to make less. I have the following in my rc.conf

powerd_enable=YES
powerd_flags=-a minimum

I have checked that cpufreq is loaded using kldload. When I run powerd
from the command line I get the following

viper:~$ sudo powerd
powerd: lookup freq: No such file or directory

I also have the following

viper:~$ sysctl dev.cpu
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.CPU_
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.cx_supported: C1/0
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00%
dev.cpu.1.%desc: ACPI CPU
dev.cpu.1.%driver: cpu
dev.cpu.1.%location: handle=\_PR_.CPU1
dev.cpu.1.%pnpinfo: _HID=none _UID=0
dev.cpu.1.%parent: acpi0
dev.cpu.1.cx_supported: C1/0
dev.cpu.1.cx_lowest: C1
dev.cpu.1.cx_usage: 100.00%

I've googled this but not managed to find a solution. How can I get
this to work?

thanks
David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: broken ports

2009-02-09 Thread David Collins
 I think the problem is that somebody has installed a compiler out of
 ports on your machine  it's associated libraries. See what cc -v
 says.

My cc is exactly the same as yours
viper:~$ cc -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]


 It could be that it's invoking the system compiler (or not). Check:

 $ pkg_info | grep gcc

viper:~$ pkg_info | grep gcc
gcc-4.2.5_20080702  GNU Compiler Collection 4.2

This is different, does this mean that there is an alternate c
compiler on my system? If ithis is the case how can I fix this? I
don't know what I would have installed that would have required an
additional compiler?

 aswell. Also look at /etc/make.conf  see if there's anything about
 GCC_VERSION or something similar.

My make.conf doesn't have anything in it really

viper:~$ cat /etc/make.conf

PERL_VER=5.8.8
PERL_VERSION=5.8.8

WITHOUT_X11=yes
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: broken ports

2009-02-09 Thread David Collins
 Then you should be able to build rtorrent.

 Then what I'd do is deinstall gcc42:

 # pkg_deinstall -f gcc-4.2.5_20080702

 Comment out the CC line in /etc/make.conf  run ldconfig:

 # /etc/rc.d/ldconfig start

 and hopefully your system is then back to normal.

I tried all this and rtorrent would still not install, with the same
error at configure. I was however able to pkg_deinstall the gcc it
installed. That didn't solve any problems though.

I feel that it might be easier to focus on the following compiling
problem that still exists:

viper:~$ gcc -o hello hello.c
/usr/bin/ld: cannot find -lgcc_s
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: broken ports

2009-02-09 Thread David Collins
Thank you for your input. I feel like this problem is too far over my
head to be able to give adequate enough debugging.

I am not against any alternative methods of resolving this (even
removing and reinstalling ports) rather than fixing, I just don't want
to have to jump into sysinstall or reinstall because i believe that is
a soluion.

David

On 09/02/2009, Frank Shute fr...@shute.org.uk wrote:
 On Mon, Feb 09, 2009 at 07:52:58PM +, David Collins wrote:

  Then you should be able to build rtorrent.
 
  Then what I'd do is deinstall gcc42:
 
  # pkg_deinstall -f gcc-4.2.5_20080702
 
  Comment out the CC line in /etc/make.conf  run ldconfig:
 
  # /etc/rc.d/ldconfig start
 
  and hopefully your system is then back to normal.

 I tried all this and rtorrent would still not install, with the same
 error at configure. I was however able to pkg_deinstall the gcc it
 installed. That didn't solve any problems though.

 I feel that it might be easier to focus on the following compiling
 problem that still exists:

 viper:~$ gcc -o hello hello.c
 /usr/bin/ld: cannot find -lgcc_s

 What this is telling you is the linker, ld(1), can't find the gcc_s
 library. ldconfig(8) tells ld where to look.

 What does:

 $ ldconfig -r | grep gcc_s

 tell you now that you've removed that compiler? You should get
 something like:

 $ ldconfig -r | grep gcc_s
 30:-lgcc_s.1 = /lib/libgcc_s.so.1

 i.e. It's looking in the system libs.

 If it still tells you that the lib is under /usr/local/lib, then
 there's your problem  you have to regenerate a fresh hints file, I
 think.

 The problem is that I've never (IIRC) installed a compiler from
 ports  I don't know how it screws with the compiler toolchain  hence
 how to put it right. Hence, I've cc'd this to hackers@ in the hope that
 someone who is more familiar with the toolchain can give advice.


 Regards,

 --

  Frank


  Contact info: http://www.shute.org.uk/misc/contact.html


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


Re: broken ports

2009-02-08 Thread David Collins
 How did you uninstall that port after which everything fails at the
 configure stage? Which port was it?

It was rtorrent that I uninstalled, I used make deinstall



 Check a couple of things:

 $ which c++

 and:

 $ locate gcc_s | grep lib

viper:~$ which c++
/usr/bin/c++

also
viper:~$ which gcc
/usr/bin/gcc
viper:~$ which cc
/usr/bin/cc


viper:~$ locate gcc_s | grep lib |more
/usr/lib/libgcc_s.so
/usr/local/lib/gcc-4.2.5/libgcc_s.so
/usr/local/lib/gcc-4.2.5/libgcc_s.so.1


 Have you installed/uninstalled a c/c++ compiler from ports?

I don't think that I have I haven't installed/uninstalled a compiler
from ports unless one of the ports did it, and I doubt this is the
case.

David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: broken ports

2009-02-08 Thread David Collins
 I'm wondering whether your use of sudo is mucking things up and it's a
 permissions problem. i.e: it's running make OK but freaking out when
 it tries to invoke the compiler in the config stuff.

 I always build my ports using portupgrade as root.

 Maybe you could try logging in as root  then running it. If you'd
 rather not do that, portupgrade has got an -s switch which allows you
 to run the commands via sudo but you'd probably have to put cc  c++
 in your sudoers (aswell as other commands e.g: install(1)).

I tried running portupgrade as root user, not sudo, and no success.
The bottom line is
---  Packages processed: 2 done, 69 ignored, 133 skipped and 28 failed

I think the most pressing issue is that I am not able to compile. I
have watched the output periodically and I saw a lot of configure
errors. Picking one at random this is the config.log (grub) file, the
error being compiler is unable to create executables exit 77:

I think if this were to be solved then my ports would be unbroken!


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GRUB configure 0.97, which was
generated by GNU Autoconf 2.62.  Invocation command line was

  $ ./configure --libdir=/usr/local/share --prefix=/usr/local
--mandir=/usr/local/man --infodir=/usr/local/info/
--build=i386-freebsd-freebsd7.0

## - ##
## Platform. ##
## - ##

hostname = viper.homeunix.com
uname -m = i386
uname -r = 7.0-RELEASE-p7
uname -s = FreeBSD
uname -v = FreeBSD 7.0-RELEASE-p7 #0: Sun Dec 21 12:33:45 UTC 2008
r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC

/usr/bin/uname -p = i386
/bin/uname -X = unknown

/bin/arch  = unknown
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo  = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/games
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /home/davidcollins/Library/bin


## --- ##
## Core tests. ##
## --- ##

configure:2048: checking for a BSD-compatible install
configure:2116: result: /usr/bin/install -c -o root -g wheel
configure:2127: checking whether build environment is sane
configure:2170: result: yes
configure:2232: checking for gawk
configure:2248: found /usr/local/bin/gawk
configure:2259: result: gawk
configure:2270: checking whether gmake sets $(MAKE)
configure:2292: result: yes
configure:2483: checking build system type
configure:2501: result: i386-freebsd-freebsd7.0
configure:2523: checking host system type
configure:2538: result: i386-freebsd-freebsd7.0
configure:2576: checking whether to enable maintainer-specific
portions of Makefiles
configure:2585: result: no
configure:2704: checking for gcc
configure:2731: result: cc
configure:2805: checking for gcc
configure:2832: result: cc
configure:3070: checking for C compiler version
configure:3078: cc --version 5
cc (GCC) 4.2.1 20070719  [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3082: $? = 0
configure:3089: cc -v 5
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]
configure:3093: $? = 0
configure:3100: cc -V 5
cc: '-V' option must have argument
configure:3104: $? = 1
configure:3127: checking for C compiler default output file name
configure:3149: cc -O2 -fno-strict-aliasing -pipe   conftest.c  5
/usr/bin/ld: cannot find -lgcc_s
configure:3153: $? = 1
configure:3191: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME GRUB
| #define PACKAGE_TARNAME grub
| #define PACKAGE_VERSION 0.97
| #define PACKAGE_STRING GRUB 0.97
| #define PACKAGE_BUGREPORT bug-g...@gnu.org
| #define PACKAGE grub
| #define VERSION 0.97
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3197: error: C compiler cannot create executables
See `config.log' for more details.

##  ##
## Cache variables. ##
##  ##

ac_cv_build=i386-freebsd-freebsd7.0
ac_cv_env_CC_set=set
ac_cv_env_CC_value=cc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -fno-strict-aliasing -pipe'
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_LIBS_set=''
ac_cv_env_LIBS_value=''
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i386-freebsd-freebsd7.0
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_host=i386-freebsd-freebsd7.0
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=cc
ac_cv_prog_make_gmake_set=yes

Re: broken ports

2009-02-08 Thread David Collins
 What does:

 $ ldconfig -r | grep gcc_s

 give you?


viper:~$ ldconfig -r | grep gcc_s
247:-lgcc_s.1 = /usr/local/lib/gcc-4.2.5/libgcc_s.so.1
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


broken ports

2009-02-05 Thread David Collins
Hi,

I am not sure if this is better here or in the ports list, but I
thought that since it is something that I have done because I don't
know what I am doing here would be better

A while ago I installed ports and everything was working fine.
Recently I thought one of my ports was causing my machine to crash so
I uninstalled it, but later found out that the only problem was a poor
wireless network and low diskspace. Trying to reinstall the port
failed at the configure stage. I tried a few others and they also
failed at the same stage. This leads me to believe that it is
something I have done.

So here is the make install error:
===  Script configure failed unexpectedly.Please report the problem
to kuriy...@freebsd.org [maintainer]  and attach
the/usr/ports/textproc/expat2/work/expat-2.0.1/config.log including
the outputof the failure of your make command. Also, it might be a
good idea to providean overview of all packages installed on your
system (e.g. an `ls/var/db/pkg`).

I found a post saying to try to compile a test program, so I tried that:
viper:~$ gcc -o hello hello.c
/usr/bin/ld: cannot find -lgcc_s

So it appears that I have completely screwed the pooch! Is there
anything I can do to fix this?

Thanks
David Collins
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: broken ports

2009-02-05 Thread David Collins
Sorry, forgot about that. Looking at it again I am not sure this is a
ports thing, and more of an issue with the compiling tool chain.


viper:/usr/ports/net-p2p/rtorrent$ sudo make
===  Vulnerability check disabled, database not found
===  Found saved configuration for rtorrent-0.8.2_1
= rtorrent-0.8.2.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
= Attempting to fetch from http://libtorrent.rakshasa.no/downloads/.
rtorrent-0.8.2.tar.gz 100% of  494 kB   48 kBps 00m00s
===  Extracting for rtorrent-0.8.2_1
= MD5 Checksum OK for rtorrent-0.8.2.tar.gz.
= SHA256 Checksum OK for rtorrent-0.8.2.tar.gz.
===  Patching for rtorrent-0.8.2_1
===  Applying FreeBSD patches for rtorrent-0.8.2_1
===   rtorrent-0.8.2_1 depends on package: libtorrent=0.12.2 - found
===   rtorrent-0.8.2_1 depends on shared library: curl.5 - found
===  Configuring for rtorrent-0.8.2_1
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
===  Script configure failed unexpectedly.
Please report the problem to f...@freebsd.org [maintainer]  and attach the
/usr/ports/net-p2p/rtorrent/work/rtorrent-0.8.2/config.log including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/net-p2p/rtorrent.
*** Error code 1

Stop in /usr/ports/net-p2p/rtorrent.



Also this might help

viper:/usr/ports/net-p2p/rtorrent$ uname -a
FreeBSD viper.homeunix.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb
24 19:59:52 UTC 2008
r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386



On 05/02/2009, Dominic Fandrey kamik...@bsdforen.de wrote:
 David Collins wrote:
 Hi,

 I am not sure if this is better here or in the ports list, but I
 thought that since it is something that I have done because I don't
 know what I am doing here would be better

 A while ago I installed ports and everything was working fine.
 Recently I thought one of my ports was causing my machine to crash so
 I uninstalled it, but later found out that the only problem was a poor
 wireless network and low diskspace. Trying to reinstall the port
 failed at the configure stage. I tried a few others and they also
 failed at the same stage. This leads me to believe that it is
 something I have done.

 So here is the make install error:
 ===  Script configure failed unexpectedly.Please report the problem
 to kuriy...@freebsd.org [maintainer]  and attach
 the/usr/ports/textproc/expat2/work/expat-2.0.1/config.log including
 the outputof the failure of your make command. Also, it might be a
 good idea to providean overview of all packages installed on your
 system (e.g. an `ls/var/db/pkg`).

 I found a post saying to try to compile a test program, so I tried that:
 viper:~$ gcc -o hello hello.c
 /usr/bin/ld: cannot find -lgcc_s

 So it appears that I have completely screwed the pooch! Is there
 anything I can do to fix this?

 Thanks
 David Collins

 I suggest you give us the complete error message. The lines before the
 one you posted ought to be the most interesting ones.

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


Re: Automatically starting user programs on boot

2008-09-04 Thread David Collins
| Date: Thu, 4 Sep 2008 13:06:54 +0200 (CEST)
| From: Sa?a Stupar [EMAIL PROTECTED]
| Subject: Automatically starting user programs on boot
| To: freebsd-questions@freebsd.org
| Message-ID:
|[EMAIL PROTECTED]
| Content-Type: text/plain;charset=iso-8859-2
|
| Hi!
|
| On my FBSD 7 server I also use screen with rtorrent. In case of server
| reboot (power outage, server goes on UPS then power down) the user need
| manually to login, then start screen and then rtorrent. Is it possible to
| start this procedure automatically and of course as certain user and not
| as root?
| I was thinking about .startup file or something in users home directory.
|
| Regards,
| Sasa

Hi,

I have been using rtorrent and screen for a while now, it is a great
setup. Anyway, I found an rc.d file for debian that I have changed to
make work for me on freebsd 7. I doubt it is as good as it could be,
but hey, it works fine for me :)

You will have to change some of the variables at the top of the file.
It opens screen on boot, names it rtorrent and starts rtorrent, does
its thing in the background. To connect to it type screen -r rtorrent

I placed it in /usr/local/etc/rc.d since it isn't part of the base
distribution. I also named it with a .sh suffix, I forget why but it
is something to do with a controlling terminal, I think. I also have a
nice .screenrc file if you would like since I know how much of a pain
it is to figure out!

$ cat /usr/local/etc/rc.d
#!/bin/sh

# PROVIDE: rtorrent
# REQUIRE: DAEMON

#
###Notes###
#
# This script depends on screen.
# For the stop function to work, you must set an
# explicit session directory using ABSOLUTE paths (no, ~ is not
absolute) in your rtorrent.rc.
# If you typically just start rtorrent with just rtorrent on the
# command line, all you need to change is the user option.
# Attach to the screen session as your user with
# screen -dr rtorrent. Change rtorrent with srnname option.
# Licensed under the GPLv2 by lostnihilist: lostnihilist _at_ gmail _dot_ com
##
###/Notes###
##

###
##Start Configuration##
###
# You can specify your configuration in a different file
# (so that it is saved with upgrades, saved in your home directory,
# or whateve reason you want to)
# by commenting out/deleting the configuration lines and placing them
# in a text file (say /home/user/.rtorrent.init.conf) exactly as you would
# have written them here (you can leave the comments if you desire
# and then uncommenting the following line correcting the path/filename
# for the one you used. note the space after the ..
# . /etc/rtorrent.init.conf

# system user to run as
user=davidcollins

# the system group to run as, not implemented, see d_start for
beginning implementation
# group=`id -ng $user`

# the full path to the filename where you store your rtorrent configuration
config=`su $user -c 'echo $HOME'`/.rtorrent.rc

# set of options to run with
options=

# default directory for screen, needs to be an absolute path
base=`su $user -c 'echo $HOME'`

# name of screen session
srnname=rtorrent

# file to log to (makes for easier debugging if something goes wrong)
logfile=/var/log/rtorrentInit.log
###
###END CONFIGURATION###
###

. /etc/rc.subr

PATH=/usr/bin:/usr/local/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin
name=rtorrent

rcvar=`set_rcvar`
eval ${rcvar}=\${${rcvar}:-'NO'}

start_precmd=checkcnfg
start_cmd=${name}_start
stop_cmd=${name}_stop

checkcnfg() {
exists=0
for i in `echo $PATH | tr ':' '\n'` ; do
if [ -f $i/$name ] ; then
exists=1
break
fi
done
if [ $exists -eq 0 ] ; then
err 3 cannot find rtorrent binary in PATH $PATH
fi
if ! [ -r ${config} ] ; then
err 3 cannot find readable config ${config}. check that it is
there and permissions are appropriate
fi
session=`getsession $config`
if ! [ -d ${session} ] ; then
err 3 cannot find readable session directory ${session} from
config ${config}. check permissions
fi
}

rtorrent_start()
{
echo Starting $name.
[ -d ${base} ]  cd ${base}
stty stop undef  stty start undef
## start screen with rtorrent inside
su ${user} -c screen -dm -S ${srnname} ${name} ${options} 21
1/dev/null | tee -a $logfile 2
}

rtorrent_stop()
{
echo Stopping $name.
session=`getsession $config`
if ! [ -s ${session}/rtorrent.lock ] ; then
return
fi
pid=`cat ${session}/rtorrent.lock | awk -F: '{print($2)}' | sed
s/[^0-9]//g`
## make sure the pid doesn't belong to another process
if ps -A | grep -sq ${pid}.*rtorrent ; then
kill -s INT ${pid}
fi
}

getsession()
{
session=`cat $1 | grep ^[[:space:]]*session[[:space:]]*= | sed
s/^[[:space:]]*session[[:space:]]*=[[:space:]]*// `
echo $session
}

load_rc_config $name
run_rc_command $1

pxeboot

2008-07-29 Thread David Collins
Hi,

I am not sure if this is the correct list to post this to, and if it
isn't please could you point me to where it should go.

I have recently turned to freeBSD and so far I love it. I have a small
laptop that I use for playing around and general fiddling. I was using
the Debian netinstall and booting over pxe/tftp when I wanted to
reinstall. I started looking at the automated install, but it seemed
very complex. I have been looking at the freeBSD option and it seems
that the automated intall is very simple (at least from a user point
of view).

I have been trying to get pxeboot to work, so far with no luck. I have
a dhcp/tftp server set up and I am able to push pxeboot across the
network, so I assume that is all ok. NFS is also setup, at least I was
getting nfs errors that I don't have anymore. I copied the contents of
the 7.0 cd into the my tftpboot folder and changed the contents for
loader.conf and loader.rc according to here
http://www.locolomo.org/pub/pxeboot/pxeboot.html and
http://www.tnpi.biz/computing/freebsd/pxe-netboot.shtml and so far I
am able to get a prompt come up but I am unable to get any further. As
soon as I enter anything the computer immediately reboots so i am
unable to see any error messages. I assume the paths are relative to
the tftp server. Can anyone give me quick example to get me off to a
start.

Thanks

David Collins


Here are my config files, I think that is all of them
# cat /etc/exports
/usr/tftpboot/freeBSD7.0 -alldirs -ro -maproot=root

# cat /usr/local/etc/dhcpd.conf
default-lease-time 600;
max-lease-time 7200;
authoritative;

ddns-update-style none;

subnet 192.168.2.0 netmask 255.255.255.0 {
  range 192.168.2.8 192.168.2.15;
  #filename /pxelinux.0;
  filename /freeBSD7.0/boot/pxeboot;
  next-server 192.168.2.4;
  option routers 192.168.2.4;
  option root-path /usr2/tftpboot/freeBSD7.0;
}

# grep tftp /etc/inetd.conf
tftpdgram   udp waitroot/usr/libexec/tftpd  tftpd
-l -s /usr/tftpboot

#cat /usr/tftpboot/freeBSD7.0/boot/loader.rc
 echo Loading Kernel...
 set choice=freebsd-ide
 read -t 5 -p Type in your selection EXACTLY:  choice
 include /boot/loader.rc-$choice
 read -t 5 -p Type in your selection EXACTLY:  choice
 read -t 5 -p Type in your selection EXACTLY:  choice
 load /boot/kernel/kernel
 load linux.ko
 echo \007\007
 set vfs.root.mountfrom=ufs:/dev/md0c

#cat /usr/tftpboot/freeBSD7.0/boot/loader.conf
 init_path=/stand/sysinstall
 rootfs_load=YES
 rootfs_name=/boot/mfsroot
 rootfs_type=mfs_root
 vfs.root.mountfrom=ufs:/dev/md0c
 autoboot_delay=5
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


freebsd 5.1

2003-08-20 Thread David Collins
I am attempting a 5.1 installation.

I have two clones with Award bios. One is a P2, the other is a P3. The
P3 has SIS hardware.

The bios do not have a PNP OS option (PNP peripherals, yes.)

On the P2 I have started running the installation successfully many
times now, but it always crashes copying/extracting the files from the
CD.

The P3 doesn't get through probing devices before it crashes.

Any help would be welcome.

David.

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