DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 18th May 2008
WeakSauceIII WeakSauceIII is offline
Port Guard
 
Join Date: May 2008
Posts: 30
Thanked 0 Times in 3 Posts
Default Compiling OpenBSD code

I'll try and be as brief as possible. I have read the page on compiling openbsd on openbsd.org. I am doing this so I can compile certain programs with debugging symbols and then source debug them with ddd / gdb. I start by going to /usr/src/sbin/echo for example and then 'make'. I add the -g to the Makefile so it includes debug info when compiling. Certain files such as ifconfig do not link.


root@/usr/src/sbin/ifconfig :make
cc -O2 -pipe -DINET6 -c ifconfig.c
ifconfig.c:102:26: netmpls/mpls.h: No such file or directory
ifconfig.c: In function `setifwmm':
ifconfig.c:1427: error: storage size of `wmm' isn't known
ifconfig.c:1431: error: `SIOCS80211WMMPARMS' undeclared (first use in this function)



I assume the search path for make/gcc is configured somewhere in the bsd.*.mk files. Anyone know how to 'make' ifconfig' for example w/out having to type out the paths for all dependencies?
Reply With Quote
 

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling pingus error. bsdnewbie999 OpenBSD General 7 16th May 2009 08:43 AM
Compiling Epkowa Oko OpenBSD Packages and Ports 3 30th December 2008 10:01 PM
Error while compiling e2fsprogs pax FreeBSD Ports and Packages 4 4th August 2008 11:40 AM
c++ compiling hello world Gates Programming 3 26th July 2008 12:48 PM
Compiling Nagios 3.02 roundkat Solaris 1 2nd June 2008 09:09 PM


All times are GMT. The time now is 12:20 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick