DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th June 2008
bsdnewbie999 bsdnewbie999 is offline
Package Pilot
 
Join Date: May 2008
Posts: 145
Thanked 0 Times in 0 Posts
Default porting gnome got samba error.

I got this message while porting gnome.
Linking bin/ntlm_auth
utils/ntlm_auth.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
***Error code 1

Stop in /usr/ports/net/samba/w-samba-3.0.28/build-i386(line 1527 of Makefie).
Reply With Quote
  #2   (View Single Post)  
Old 18th June 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,710
Thanked 214 Times in 189 Posts
Default

1) You are not "porting", you are "building a port."

When used as a noun, "port" describes a 3rd party application. When used as a verb, "porting" is the act of creating a usable application from source code built to run on another OS. e.g.: "Samba has already been ported to OpenBSD. It was ported in 1997. The port became part of the tree in November of that year."

2) I will risk repeating what I told you already. USE PACKAGES.

e.g.:

# export PKG_PATH=ftp://rt.fm/pub/OpenBSD/4.3/packages/i386/
# pkg_add -iv samba

Read FAQ 15, again. Pay particular attention to FAQ 15.4.6:
Quote:
15.4.6 - What should I use: packages or ports?

In general, you are highly advised to use packages over building an application from ports. The OpenBSD ports team considers packages to be the goal of their porting work, not the ports themselves. Building a complex application from source is not trivial. Not only must the application be compiled, but the tools used to build it must be built as well. Unfortunately, OpenBSD, the tools, and the application are all evolving, and often, getting all the pieces working together is a challenge. Once everything works, a revision in any of the pieces the next day could render it broken. Every six months, as a new release of OpenBSD is made, an effort is made to test the building of every port on every platform, but during the development cycle it is likely that some ports will break.
In addition to having all the pieces work together, there is just the matter of time and resources required to compile some applications from source. A common example is CVSup, a tool commonly used to track the OpenBSD source tree. To install CVSup on a moderately fast system with a good Internet connection may take only about ten seconds -- the time required to download and unpack a single 779kB package file. In contrast, building CVSup on the same machine from source is a huge task, requiring many tools and bootstrapping a compiler, taking almost half an hour on the same machine. Other applications, such as Mozilla or KDE may take hours and huge amounts of disk space and RAM/swap to build. Why go through this much time and effort, when the programs are already compiled and sitting on your CD-ROM or FTP mirror, waiting to be used?
Of course, there are a few good reasons to use ports over packages in some cases:
  • Distribution rules prohibit OpenBSD from distributing a package.
  • You wish to modify or debug the application or study its source code.
  • You need a flavor of a port that is not built by the OpenBSD ports team.
  • You wish to alter the directory layout (i.e. modifying PREFIX or SYSCONFDIR).
However, for most people and most applications, using packages is a much easier, and definitely the recommended way of adding applications to an OpenBSD system.
Reply With Quote
  #3   (View Single Post)  
Old 19th June 2008
bsdnewbie999 bsdnewbie999 is offline
Package Pilot
 
Join Date: May 2008
Posts: 145
Thanked 0 Times in 0 Posts
Default

I fixed it by pkg_add the samba package.
Reply With Quote
Reply

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
error code 1 whie make install gnome mtm0 NetBSD General 3 4th September 2009 11:56 AM
Switch linuxbase for porting software indiocolifa FreeBSD Ports and Packages 6 28th March 2009 07:05 PM
Error gnome darken FreeBSD Installation and Upgrading 3 27th July 2008 12:21 PM
Samba + acl bichumo General software and network 0 30th June 2008 09:49 AM
Porting Firefox to qt - progress? caesius FreeBSD Ports and Packages 9 5th June 2008 11:13 PM


All times are GMT. The time now is 08:41 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