image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
LinkBack Thread Tools
  #1  
Old October 24th, 2001, 03:05 AM
Registered User
 
Join Date: Oct 2001
Location: CA
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
tblount is on a distinguished road
compiling unpv12e source

I picked up a copy of Stevens' "UNIX Network Programming" volume 1. I have downloaded the source code and I am trying to build this on a G4 with Mac OS X (10.1). Does anyone know how to get "configure" to recognize the host type?
Reply With Quote
  #2  
Old October 24th, 2001, 12:45 PM
Registered User
 
Join Date: Feb 2001
Location: Bloomington, Indiana
Posts: 96
Thanks: 0
Thanked 0 Times in 0 Posts
jcpowers21 is on a distinguished road
cp /usr/libexec/config.* .

make sure you are in the directory that you untarred so that the config files will be copied to the directory and when you run ./configure then your host type will be seen.

Justin
Reply With Quote
  #3  
Old October 24th, 2001, 02:33 PM
Registered User
 
Join Date: Oct 2001
Location: CA
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
tblount is on a distinguished road
That did the trick!

Regards,

Theron
Reply With Quote
  #4  
Old January 15th, 2003, 08:53 PM
Registered User
 
Join Date: Jan 2003
Location: Guatemala
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
pollo is on a distinguished road
compiling unpv12e source (again)

I just recently bought Steven's "Unix Network Programming" book, and I'm also having trouble getting the supplied source to work.

This previous solution given does not work with 10.2.3 because there aren't any config files in /usr/libexec

I can get the configure to pass by sending it a
--host ppc,
but then nothing inside will make.

Any ideas??

>cp /usr/libexec/config.* .
>
> make sure you are in the directory that you
>untarred so that the config files will be copied
>to the directory and when you run ./configure
>then your host type will be seen.
Reply With Quote
  #5  
Old August 18th, 2008, 03:44 AM
Registered User
 
Join Date: Feb 2008
Posts: 25
Thanks: 1
Thanked 1 Time in 1 Post
freereg is on a distinguished road
Better late than never

Since this thread shows up at the top of a google search for the obvious thing one might search for trying to build the examples from Stevens, even though the question is almost a decade old here's the new, 10.5 leopard answer:

1. download, ungzip, and untar unpv12e.tar.gz from the net.
2. cd to the unpv12e directory
3. cp /usr/share/automake-1.10/config.* .
(note that the automake version may change)
4. ./configure
5. cd lib
6. Edit the file lib/mcast_join.c replacing
IPV6_ADD_MEMBERSHIP with IPV6_JOIN_GROUP
7. Edit the file lib/mcast_leave.c replacing
IPV6_DROP_MEMBERSHIP with IPV6_LEAVE_GROUP
8. Still in the lib directory:
make


[and just to help google a little more, these are the instructions howto for building
the example programs supplied with Richard Stevens, Unix Network Programming
on Apple Macintosh Mac OS X 10.5 leopard tiger panther]
Reply With Quote
The Following User Says Thank You to freereg For This Useful Post:
nixgeek (August 18th, 2008)
  #6  
Old August 18th, 2008, 07:14 AM
nixgeek's Avatar
Mac of the SubGenius! :-)
 
Join Date: Jan 2004
Location: Miami, FL
Posts: 8,378
Thanks: 29
Thanked 142 Times in 126 Posts
nixgeek is a jewel in the roughnixgeek is a jewel in the roughnixgeek is a jewel in the rough
Ah! Good to know. Thanks for sharing the update, freereg.
__________________
Apple iMac G5 17" (2 GHz G5) - Mac OS X 10.4.11/Ubuntu 9.10
Asus Eee PC 901 (1.6 GHz Atom N270) - Ubuntu Netbook Remix 9.04
Apple Macintosh Quadra 650 (33 MHz MC68040) - Mac OS 8.1
"JHVH-1" (2 GHz AMD Athlon XP 2400+) - Slackware 13
"Kidbuntu" (2.8 GHz Celeron D 335) - Ubuntu 9.04
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apple Public Source License Now FSF Approved Easter Apple News, Rumors & Discussion 0 August 10th, 2003 11:35 AM
FINK vs. compiling from scratch ksignorini Unix & X11 4 July 28th, 2002 12:14 PM
Compiling Java Source Code RockyMorris Software Programming & Web Scripting 2 May 23rd, 2002 02:17 PM
Problems compiling PHP Fahrvergnuugen Mac OS X System & Mac Software 1 December 8th, 2001 10:48 PM


All times are GMT -5. The time now is 02:08 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.