Re: DHCP Server??

2011-02-16 Thread Dan Ziegler
Thanks for the links... they look helpful, I'll try messing around
some more this weekend and get back to you.
I am running OS 10.5.8 and Xcode 3.0, gcc is 4.01, make is 3.81.
Thanks,
Dan

On Feb 15, 10:55 am, Bruce Johnson john...@pharmacy.arizona.edu
wrote:
 I just downloaded dhcp-4.2.0-P2 and it compiled without a hitch under 10.6.6. 
 I believe I have the Developer Tools installed on my laptop running 10.5 so 
 I'll see if I can compile it there later (it's at home)

 There are mentions in the release notes about 'fixes to compilation in OS X 
 10.5'

 --
 Bruce Johnson
 University of Arizona
 College of Pharmacy
 Information Technology Group

 Institutions do not have opinions, merely customs

-- 
You received this message because you are a member of G-Group, a group for 
those using G3, G4, and G5 desktop Macs - with a particular focus on Power Macs.
The list FAQ is at http://lowendmac.com/lists/g-list.shtml and our netiquette 
guide is at http://www.lowendmac.com/lists/netiquette.shtml
To post to this group, send email to g3-5-list@googlegroups.com
For more options, visit this group at http://groups.google.com/group/g3-5-list


Re: DHCP Server??

2011-02-15 Thread Bruce Johnson

On Feb 14, 2011, at 7:48 PM, Dan Ziegler wrote:

 gcc -DHAVE_CONFIG_H -I. -I../includes  -DMINIRES_LIB -DHMAC_MD5   -g -
 O2  -Wall -Werror -fno-strict-aliasing -I../bind/include -MT
 dst_support.o -MD -MP -MF .deps/dst_support.Tpo -c -o dst_support.o
 dst_support.c
 cc1: warnings being treated as errors
 In file included from dst_support.c:33:
 ../includes/arpa/nameser.h:113: warning: type defaults to ‘int’ in
 declaration of ‘u_int8_t’
 ../includes/arpa/nameser.h:113: warning: no semicolon at end of struct
 or union

This is where the errors start.

And here is an old posting of a similar compile error:

http://mailman.icsi.berkeley.edu/pipermail/bro/2004-July/001521.html

Hope this helps.

You can also hop onto the DHCP mailing list and ask them.

https://lists.isc.org/mailman/listinfo/dhcp-users

-- 
Bruce Johnson
University of Arizona
College of Pharmacy
Information Technology Group

Institutions do not have opinions, merely customs


-- 
You received this message because you are a member of G-Group, a group for 
those using G3, G4, and G5 desktop Macs - with a particular focus on Power Macs.
The list FAQ is at http://lowendmac.com/lists/g-list.shtml and our netiquette 
guide is at http://www.lowendmac.com/lists/netiquette.shtml
To post to this group, send email to g3-5-list@googlegroups.com
For more options, visit this group at http://groups.google.com/group/g3-5-list


Re: DHCP Server??

2011-02-15 Thread Bruce Johnson
I just downloaded dhcp-4.2.0-P2 and it compiled without a hitch under 10.6.6. I 
believe I have the Developer Tools installed on my laptop running 10.5 so I'll 
see if I can compile it there later (it's at home)

There are mentions in the release notes about 'fixes to compilation in OS X 
10.5' 

-- 
Bruce Johnson
University of Arizona
College of Pharmacy
Information Technology Group

Institutions do not have opinions, merely customs


-- 
You received this message because you are a member of G-Group, a group for 
those using G3, G4, and G5 desktop Macs - with a particular focus on Power Macs.
The list FAQ is at http://lowendmac.com/lists/g-list.shtml and our netiquette 
guide is at http://www.lowendmac.com/lists/netiquette.shtml
To post to this group, send email to g3-5-list@googlegroups.com
For more options, visit this group at http://groups.google.com/group/g3-5-list


Re: DHCP Server??

2011-02-14 Thread Dan Ziegler
OK, here goes. I'm running ./configure, make and sudo make install.
First, ./configure...

./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for AIX... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for ranlib... ranlib
checking whether byte ordering is bigendian... no
checking for prefix by checking for dhcpd... no
-n checking for dhcpd.leases location...
/var/db/dhcpd.leases
-n checking for dhcpd6.leases location...
/var/db/dhcpd6.leases
-n checking for dhclient.leases location...
/var/db/dhclient.leases
-n checking for dhclient6.leases location...
/var/db/dhclient6.leases
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking linux/types.h usability... no
checking linux/types.h presence... no
checking for linux/types.h... no
checking for linux/filter.h... no
checking sys/dlpi.h usability... no
checking sys/dlpi.h presence... no
checking for sys/dlpi.h... no
checking net/bpf.h usability... yes
checking net/bpf.h presence... yes
checking for net/bpf.h... yes
checking for struct lifnum... no
checking for struct if_laddrconf... no
checking for struct if_laddrreq... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking net/if_dl.h usability... yes
checking net/if_dl.h presence... yes
checking for net/if_dl.h... yes
checking net/if6.h usability... no
checking net/if6.h presence... no
checking for net/if6.h... no
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for library containing MD5_Init... -lcrypto
checking for library containing MD5Init... no
checking for library containing socket... none required
checking for library containing inet_ntoa... none required
checking for library containing inet_aton... none required
checking for library containing regcomp... none required
checking for library containing if_nametoindex... none required
checking for /dev/random... yes
checking for struct sockaddr.sa_len... yes
checking for struct iaddr *... yes
checking size of struct iaddr *... 4
checking for struct msghdr.msg_control... yes
checking for flexible array members... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating client/Makefile
config.status: creating common/Makefile
config.status: creating common/tests/Makefile
config.status: creating dhcpctl/Makefile
config.status: creating dst/Makefile
config.status: creating includes/Makefile
config.status: creating omapip/Makefile
config.status: creating relay/Makefile
config.status: creating server/Makefile
config.status: creating tests/Makefile
config.status: creating includes/config.h
config.status: includes/config.h is unchanged
config.status: executing depfiles commands


And for make:

make
Making all in bind
bind-9.7.1 already unpacked...
Configuring BIND Export libraries for DHCP.
Building BIND Export libraries - this takes some time.
building in /ort/dhcp-4.2.0-P2/bind/bind-9.7.1/lib/export
ranlib: file: libisc.a(condition.o) has no symbols
ranlib: file: libisc.a(mutex.o) has no symbols
ranlib: file: libisc.a(condition.o) has no symbols
ranlib: file: libisc.a(mutex.o) has no symbols
../../../lib/dns/nsec3.c: In function ‘dns_nsec3_addnsec3’:
../../../lib/dns/nsec3.c:560: warning: ‘exists’ may be used
uninitialized in this function
ranlib: file: libdns.a(openssl_link.o) has no symbols
ranlib: file: 

Re: DHCP Server??

2011-02-14 Thread Clark Martin

On Feb 14, 2011, at 6:48 PM, Dan Ziegler wrote:

 OK, here goes. I'm running ./configure, make and sudo make install.
 First, ./configure...

Nothing looks wrong with the line of the include file that shows the first 
error.  It seems like something is wrong in the overall configuration, I'm 
thinking it MAY be the version of Xcode you are using.  I know the configure 
script checks for things like that but if the environment (XCode) is newer than 
what the script expects it may not be configured correctly.  

I checked on my install.  I built DHCP version 3.1.1 using XCode 2.4.1 on Tiger 
and dhcpd is running on Tiger.  

I just tried configure and make of DHCP 4.1.1 on the same system and it ran 
okay.  But I do remember that I didn't install this version for some reason 
which I don't remember.  It may have had to do with it not building or 
installing. 

I would try building it on an earlier version of XCode and / or try an earlier 
version of DHCP.

Clark Martin
Redwood City, CA, USA
Macintosh / Internet Consulting

I'm a designated driver on the Information Super Highway

-- 
You received this message because you are a member of G-Group, a group for 
those using G3, G4, and G5 desktop Macs - with a particular focus on Power Macs.
The list FAQ is at http://lowendmac.com/lists/g-list.shtml and our netiquette 
guide is at http://www.lowendmac.com/lists/netiquette.shtml
To post to this group, send email to g3-5-list@googlegroups.com
For more options, visit this group at http://groups.google.com/group/g3-5-list


Re: DHCP Server??

2011-02-13 Thread Dan Ziegler
Yes I did both the ./configure and make steps. The build directory is
/ort/dhcp-4.2.0-P2 . I'm not sure what the errors mean it's throwing-
should I post them?
I'm not using Internet Sharing because I'm not multihomed - is there a
way to use it on the same interface?
Thanks,
Dan

On Feb 13, 12:35 am, Clark Martin cm...@sonic.net wrote:
 On Feb 12, 2011, at 10:11 AM, Dan Ziegler wrote:

  Hello there,
  I have a question: I would like to run a DHCP server on an iMac
  running Leopard 10.5. I have tried building the ISC source code (I
  have Developer Tools installed) but it fails with errors. Does anyone
  have any experience building/running a DHCP server? Are there binaries
  somewhere for OS X? I don't want to have to install DarwinPorts.

 Hmm, it's been a while but I compiled and installed it without any difficulty 
 (IIRC).  I did it on Tiger though.  

 You did both the ./configure and make steps right?

 Darwin Ports isn't that big a deal, I have it and MacPorts installed on some 
 machines and they mostly work well.  

 Assuming you get it installed you might want to consider WebMin for setting 
 it up.  I have both DHCP and BIND installed on my server and use WebMin to 
 configure them.  It works very well.  

 The other thing I did was set up /Library/StartupItems entries for both so 
 they'd start at boot time.

 Clark Martin
 Redwood City, CA, USA
 Macintosh / Internet Consulting

 I'm a designated driver on the Information Super Highway

-- 
You received this message because you are a member of G-Group, a group for 
those using G3, G4, and G5 desktop Macs - with a particular focus on Power Macs.
The list FAQ is at http://lowendmac.com/lists/g-list.shtml and our netiquette 
guide is at http://www.lowendmac.com/lists/netiquette.shtml
To post to this group, send email to g3-5-list@googlegroups.com
For more options, visit this group at http://groups.google.com/group/g3-5-list


Re: DHCP Server??

2011-02-13 Thread Clark Martin

On Feb 13, 2011, at 12:25 PM, Dan Ziegler wrote:

 Yes I did both the ./configure and make steps. The build directory is
 /ort/dhcp-4.2.0-P2 . I'm not sure what the errors mean it's throwing-
 should I post them?

go for it.

Clark Martin
Redwood City, CA, USA
Macintosh / Internet Consulting

I'm a designated driver on the Information Super Highway

-- 
You received this message because you are a member of G-Group, a group for 
those using G3, G4, and G5 desktop Macs - with a particular focus on Power Macs.
The list FAQ is at http://lowendmac.com/lists/g-list.shtml and our netiquette 
guide is at http://www.lowendmac.com/lists/netiquette.shtml
To post to this group, send email to g3-5-list@googlegroups.com
For more options, visit this group at http://groups.google.com/group/g3-5-list


Re: DHCP Server??

2011-02-12 Thread Bruce Johnson

On Feb 12, 2011, at 11:11 AM, Dan Ziegler wrote:

 Hello there,
 I have a question: I would like to run a DHCP server on an iMac
 running Leopard 10.5. I have tried building the ISC source code (I
 have Developer Tools installed) but it fails with errors.

What are the errors? Everything I've read suggests that OS X is a known target 
in the compile configuration. Look out for spaces in directory paths and 
suchlike.

 Does anyone
 have any experience building/running a DHCP server? Are there binaries
 somewhere for OS X? I don't want to have to install DarwinPorts.

Darwin ports is probably the best way to do things like this; since it installs 
everything in it's own /opt/ directory, so OS X system upgrades don't stomp on 
it. Apple's updates have a nasty tendency to be a process like 'delete the 
existing /etc directory replace it with the one from the update'.

I'm not running dhcp on OS X but I am using it to run a mysql dbms and it works 
like a charm.

-- 
Bruce Johnson

Wherever you go, there you are B. Banzai,  PhD

-- 
You received this message because you are a member of G-Group, a group for 
those using G3, G4, and G5 desktop Macs - with a particular focus on Power Macs.
The list FAQ is at http://lowendmac.com/lists/g-list.shtml and our netiquette 
guide is at http://www.lowendmac.com/lists/netiquette.shtml
To post to this group, send email to g3-5-list@googlegroups.com
For more options, visit this group at http://groups.google.com/group/g3-5-list


Re: DHCP Server??

2011-02-12 Thread Dan

At 11:45 AM -0700 2/12/2011, Bruce Johnson wrote:

On Feb 12, 2011, at 11:11 AM, Dan Ziegler wrote:
  Hello there,

 I have a question: I would like to run a DHCP server on an iMac
 running Leopard 10.5. I have tried building the ISC source code (I
 have Developer Tools installed) but it fails with errors.


What are the errors? Everything I've read suggests that OS X is a 
known target in the compile configuration. Look out for spaces in 
directory paths and suchlike.



 Does anyone
 have any experience building/running a DHCP server? Are there binaries
 somewhere for OS X? I don't want to have to install DarwinPorts.


Darwin ports is probably the best way to do things like this; since 
it installs everything in it's own /opt/ directory, so OS X system 
upgrades don't stomp on it. Apple's updates have a nasty tendency to 
be a process like 'delete the existing /etc directory replace it 
with the one from the update'.


I'm not running dhcp on OS X but I am using it to run a mysql dbms 
and it works like a charm.


Um, why not just use the dhcp service built-in?   That's what the 
internet sharing is all about - it adds a couple of routes to the ip 
stack and runs dhcp.


If you need something more sophisticated, there's IPNetRouter.

- Dan.
--
- Psychoceramic Emeritus; South Jersey, USA, Earth.

--
You received this message because you are a member of G-Group, a group for 
those using G3, G4, and G5 desktop Macs - with a particular focus on Power Macs.
The list FAQ is at http://lowendmac.com/lists/g-list.shtml and our netiquette 
guide is at http://www.lowendmac.com/lists/netiquette.shtml
To post to this group, send email to g3-5-list@googlegroups.com
For more options, visit this group at http://groups.google.com/group/g3-5-list


Re: DHCP Server??

2011-02-12 Thread Kris Tilford

On Feb 12, 2011, at 1:23 PM, Dan wrote:


Um, why not just use the dhcp service built-in?


That's what I thought also, why reinvent the wheel?

--
You received this message because you are a member of G-Group, a group for 
those using G3, G4, and G5 desktop Macs - with a particular focus on Power Macs.
The list FAQ is at http://lowendmac.com/lists/g-list.shtml and our netiquette 
guide is at http://www.lowendmac.com/lists/netiquette.shtml
To post to this group, send email to g3-5-list@googlegroups.com
For more options, visit this group at http://groups.google.com/group/g3-5-list


Re: DHCP Server??

2011-02-12 Thread Clark Martin

On Feb 12, 2011, at 10:11 AM, Dan Ziegler wrote:

 Hello there,
 I have a question: I would like to run a DHCP server on an iMac
 running Leopard 10.5. I have tried building the ISC source code (I
 have Developer Tools installed) but it fails with errors. Does anyone
 have any experience building/running a DHCP server? Are there binaries
 somewhere for OS X? I don't want to have to install DarwinPorts.

Hmm, it's been a while but I compiled and installed it without any difficulty 
(IIRC).  I did it on Tiger though.  

You did both the ./configure and make steps right?

Darwin Ports isn't that big a deal, I have it and MacPorts installed on some 
machines and they mostly work well.  




Assuming you get it installed you might want to consider WebMin for setting it 
up.  I have both DHCP and BIND installed on my server and use WebMin to 
configure them.  It works very well.  

The other thing I did was set up /Library/StartupItems entries for both so 
they'd start at boot time.

Clark Martin
Redwood City, CA, USA
Macintosh / Internet Consulting

I'm a designated driver on the Information Super Highway

-- 
You received this message because you are a member of G-Group, a group for 
those using G3, G4, and G5 desktop Macs - with a particular focus on Power Macs.
The list FAQ is at http://lowendmac.com/lists/g-list.shtml and our netiquette 
guide is at http://www.lowendmac.com/lists/netiquette.shtml
To post to this group, send email to g3-5-list@googlegroups.com
For more options, visit this group at http://groups.google.com/group/g3-5-list