DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th July 2008
Pollywog Pollywog is offline
Port Guard
 
Join Date: Jul 2008
Posts: 12
Thanked 0 Times in 0 Posts
Default unable to install Postfix from ports on OBSD 4.3

I can't get Postfix from snapshots to install on OpenBSD 4.3
I have tried to install Postfix from both snapshots and stable to install on OpenBSD 4.3 but I get this:

c -DFD_SETSIZE=2048 -DDEF_CONFIG_DIR=\"/etc/postfix\" -DDEF_DATA_DIR=\"/var/pos
tfix\" -DUSE_TLS -DUSE_SASL_AUTH -DHAS_PCRE -I/usr/local/include -I/usr/local/in
clude -I/usr/local/include/sasl -DUSE_CYRUS_SASL -I/usr/local/include/mysql -DHA
S_MYSQL -DSNAPSHOT -O2 -pipe -I. -I../../include -DOPENBSD4 -c discard.c
cc -DFD_SETSIZE=2048 -DDEF_CONFIG_DIR=\"/etc/postfix\" -DDEF_DATA_DIR=\"/var/pos
tfix\" -DUSE_TLS -DUSE_SASL_AUTH -DHAS_PCRE -I/usr/local/include -I/usr/local/in
clude -I/usr/local/include/sasl -DUSE_CYRUS_SASL -I/usr/local/include/mysql -DHA
S_MYSQL -DSNAPSHOT -O2 -pipe -I. -I../../include -DOPENBSD4 -o discard discard.
o ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a -lssl -lcrypto
-L/usr/local/lib -lpcre -L/usr/local/lib -lsasl2 -L/usr/local/lib/mysql -lmysql
client
../../lib/libutil.a(concatenate.o)(.text+0x64): In function `concatenate':
: warning: strcpy() is almost always misused, please use strlcpy()
../../lib/libglobal.a(mail_conf_int.o)(.text+0x1ae): In function `set_mail_conf_
int':
: warning: sprintf() is often misused, please use snprintf()
../../lib/libutil.a(concatenate.o)(.text+0x84): In function `concatenate':
: warning: strcat() is almost always misused, please use strlcat()
cp discard ../../libexec
[src/tlsmgr]
cc -DFD_SETSIZE=2048 -DDEF_CONFIG_DIR=\"/etc/postfix\" -DDEF_DATA_DIR=\"/var/pos
tfix\" -DUSE_TLS -DUSE_SASL_AUTH -DHAS_PCRE -I/usr/local/include -I/usr/local/in
clude -I/usr/local/include/sasl -DUSE_CYRUS_SASL -I/usr/local/include/mysql -DHA
S_MYSQL -DSNAPSHOT -O2 -pipe -I. -I../../include -DOPENBSD4 -c tlsmgr.c
cc -DFD_SETSIZE=2048 -DDEF_CONFIG_DIR=\"/etc/postfix\" -DDEF_DATA_DIR=\"/var/pos
tfix\" -DUSE_TLS -DUSE_SASL_AUTH -DHAS_PCRE -I/usr/local/include -I/usr/local/in
clude -I/usr/local/include/sasl -DUSE_CYRUS_SASL -I/usr/local/include/mysql -DHA
S_MYSQL -DSNAPSHOT -O2 -pipe -I. -I../../include -DOPENBSD4 -o tlsmgr tlsmgr.o
../../lib/libmaster.a ../../lib/libtls.a ../../lib/libglobal.a ../../lib/libuti
l.a -lssl -lcrypto -L/usr/local/lib -lpcre -L/usr/local/lib -lsasl2 -L/usr/local
/lib/mysql -lmysqlclient
../../lib/libutil.a(concatenate.o)(.text+0x64): In function `concatenate':
: warning: strcpy() is almost always misused, please use strlcpy()
../../lib/libglobal.a(mail_conf_int.o)(.text+0x1ae): In function `set_mail_conf_
int':
: warning: sprintf() is often misused, please use snprintf()
../../lib/libutil.a(concatenate.o)(.text+0x84): In function `concatenate':
: warning: strcat() is almost always misused, please use strlcat()
cp tlsmgr ../../libexec
===> Faking installation for postfix-2.6.20080216p1-sasl2-mysql
/bin/sh: cd: /usr/ports/mail/postfix/snapshot/w-postfix-2.6.20080216p1/postfix-2
.6-20080216 - No such file or directory
*** Error code 1

Stop in /usr/ports/mail/postfix/snapshot (line 110 of /usr/ports/mail/postfix/sn apshot/../Makefile.inc).
*** Error code 1

Stop in /usr/ports/mail/postfix/snapshot (line 2146 of /usr/ports/infrastructure /mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/mail/postfix/snapshot (line 1392 of /usr/ports/infrastructure /mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/mail/postfix/snapshot (line 1890 of /usr/ports/infrastructure /mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/mail/postfix/snapshot (line 1422 of /usr/ports/infrastructure /mk/bsd.port.mk).


I can install one of the packages for Postfix but I can't get sasl and mysql support if I do that.
Reply With Quote
  #2   (View Single Post)  
Old 18th July 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,432
Thanked 214 Times in 189 Posts
Default

Welcome, Pollywog.

You have made the first ports/packages mistake almost every new user to OpenBSD makes. You neglected to read FAQ 15.4.1.
Reply With Quote
  #3   (View Single Post)  
Old 18th July 2008
Pollywog Pollywog is offline
Port Guard
 
Join Date: Jul 2008
Posts: 12
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jggimi View Post
Welcome, Pollywog.

You have made the first ports/packages mistake almost every new user to OpenBSD makes. You neglected to read FAQ 15.4.1.
Thanks

I will read the FAQ section, which I have probably read but forgotten, so I should check the document more often.
Reply With Quote
  #4   (View Single Post)  
Old 18th July 2008
Pollywog Pollywog is offline
Port Guard
 
Join Date: Jul 2008
Posts: 12
Thanked 0 Times in 0 Posts
Default

Having read the section in the FAQ to which I was referred, that still does not explain why even the stable Postfix port produced similar errors. I should probably change to another machine on which I already have FreeBSD installed; I am more familiar with that than with OpenBSD.

BTW I had read the section in the FAQ before but didn't realize this applied to my situation. I had not realized I was mixing different releases, since I am using the ports tree for OpenBSD 4.3

Last edited by Pollywog; 18th July 2008 at 09:15 PM.
Reply With Quote
  #5   (View Single Post)  
Old 19th July 2008
Oko's Avatar
Oko Oko is offline
Fsck Surgeon
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 733
Thanked 36 Times in 32 Posts
Thumbs down RTFM

Quote:
Originally Posted by Pollywog View Post
Having read the section in the FAQ to which I was referred, that still does not explain why even the stable Postfix port produced similar errors. I should probably change to another machine on which I already have FreeBSD installed; I am more familiar with that than with OpenBSD.

BTW I had read the section in the FAQ before but didn't realize this applied to my situation. I had not realized I was mixing different releases, since I am using the ports tree for OpenBSD 4.3

Did you reinstall the ports three. No you didn't. You are still using the snapshot of ports three which are made for 4.4 beta and trying to compile
a port on 4.3 release.


There is 4.3 release branch ports three for 4.3 release and there is a snapshot of ports three for 4.4 beta. You are not even supposed to use ports if you do not know what are you doing which you obviously do not.


If you want to install Postfix on 4.3 release

Code:
su
password
export  
# PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.3/packages/i386/
# pkg_add postfix (you might need a different flavor here)

You are not going to get any sympathy from any OpenBSD users for the kind the mistakes you are making.
Reply With Quote
  #6   (View Single Post)  
Old 19th July 2008
corey_james corey_james is offline
Uber Geek
 
Join Date: Apr 2008
Location: Brisbane, Australia
Posts: 238
Thanked 4 Times in 10 Posts
Default

Wanna drop the attitude next time Oko ? I'm going to suspend your account if i see another complaint about the tone of your posts!
__________________
"No, that's wrong, Cartman. But don't worry, there are no stupid answers, just stupid people." -- Mr. Garrison

Forum Netiquette
Reply With Quote
  #7   (View Single Post)  
Old 19th July 2008
Oko's Avatar
Oko Oko is offline
Fsck Surgeon
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 733
Thanked 36 Times in 32 Posts
Default

Quote:
Originally Posted by corey_james View Post
Wanna drop the attitude next time Oko ? I'm going to suspend your account if i see another complaint about the tone of your posts!
I am sorry, I do not see what was wrong with the tone of my post? The post was right on money. I did provide him with the useful information and if I didn't tell him to go back and read FAQ again because he is repeating the same mistake somebody else would.

You don't have to worry about my posts any more. It is the last one.
I am self suspending my account forever
Reply With Quote
  #8   (View Single Post)  
Old 19th July 2008
Pollywog Pollywog is offline
Port Guard
 
Join Date: Jul 2008
Posts: 12
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Oko View Post
Did you reinstall the ports three. No you didn't. You are still using the snapshot of ports three which are made for 4.4 beta and trying to compile
a port on 4.3 release.


There is 4.3 release branch ports three for 4.3 release and there is a snapshot of ports three for 4.4 beta. You are not even supposed to use ports if you do not know what are you doing which you obviously do not.


If you want to install Postfix on 4.3 release

Code:
su
password
export  
# PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.3/packages/i386/
# pkg_add postfix (you might need a different flavor here)

You are not going to get any sympathy from any OpenBSD users for the kind the mistakes you are making.
I did have the package installed (as you described in your post), but I am unable to have both mysql and sasl support from a package and that is the reason I wanted to install from ports. Also, I DID fetch a new ports tree, for OBSD 4.3.

I wasn't expecting sympathy, just asking for a little help, and you helped.
I have a very similar configuration working on my FreeBSD Postfix system and that works, so I think I should convert the OpenBSD system to FreeBSD since I have a little more experience with that.

Thanks, and I wasn't expecting anyone to do the work for me. I just wasn't born knowing how to do this stuff and one learns by reading and making mistakes.
Reply With Quote
  #9   (View Single Post)  
Old 19th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,051
Thanked 198 Times in 156 Posts
Default

Quote:
I am sorry, I do not see what was wrong with the tone of my post?
Telling someone to "Read the fucking manual" might be one thing that's is "wrong" with your post.
The unfriendly, disrespectful, and hostile tone might be a few other things ...

Yes, the answer may be in the manual but there are lots of pages in the manual, and it's very normal/human not to read all of them letter by letter and make mistakes, especially if you're under some pressure to get things working and/or you're used to a system which is both similar and very different (FreeBSD ports).

There is nothing wrong with pointing out to someone that he/she should put a bit more effort in finding a solution for himself, rather than asking for a read-made solution at forums, but this can be said respectfully too ...

Aside from this, it would seem that Pollywog actually did read te manual, but is confused by it and/or misunderstood something ... Which is not so strange since it would seem that he expects OpenBSD ports to behave the same as FreeBSD ports ... Which they don't ... I made the same mistake, and I'm pretty sure lots of other people have too...
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Old 19th July 2008
Pollywog Pollywog is offline
Port Guard
 
Join Date: Jul 2008
Posts: 12
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Oko View Post
I am sorry, I do not see what was wrong with the tone of my post? The post was right on money. I did provide him with the useful information and if I didn't tell him to go back and read FAQ again because he is repeating the same mistake somebody else would.

You don't have to worry about my posts any more. It is the last one.
I am self suspending my account forever
Oh my... I am really sorry I caused this. I won't bother anyone anymore and I did appreciate that someone replied to my post and tried to help, even if I was scorched slightly in the process.
Reply With Quote
Old 19th July 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,432
Thanked 214 Times in 189 Posts
Default

1) I sympathize; it can be confusing.
2) Part of the confusion may be Postfix itself; there are two versions called "stable" and "snapshot" that are both available with 4.3-release; the terms "snapshot" and "stable" have different meanings in OpenBSD than they do when used by Postfix.
3) Looking at the posted build output, above, it looks like the FLAVOR environment variable was not passed to the "make fake" step. If so, perhaps you did a "make build" with FLAVOR set, but then did a "make install" without it. As your excerpt does not include the commands you used; that's just a guess.
Reply With Quote
Old 19th July 2008
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 107
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by Pollywog View Post
Oh my... I am really sorry I caused this. I won't bother anyone anymore and I did appreciate that someone replied to my post and tried to help, even if I was scorched slightly in the process.
Hang around.. everyone has bad days and bad posts..

Postfix on the other hand it relatively easy to configure more so than
sendmail..
I don't care what these other guys say about Sendmail.. it isn't built
for humans.. Just kidding guys..


rk
__________________
All posts sent on ReCycled Electrons...

Last edited by roundkat; 19th July 2008 at 09:27 PM.
Reply With Quote
Old 19th July 2008
Pollywog Pollywog is offline
Port Guard
 
Join Date: Jul 2008
Posts: 12
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jggimi View Post
1) I sympathize; it can be confusing.
2) Part of the confusion may be Postfix itself; there are two versions called "stable" and "snapshot" that are both available with 4.3-release; the terms "snapshot" and "stable" have different meanings in OpenBSD than they do when used by Postfix.
3) Looking at the posted build output, above, it looks like the FLAVOR environment variable was not passed to the "make fake" step. If so, perhaps you did a "make build" with FLAVOR set, but then did a "make install" without it. As your excerpt does not include the commands you used; that's just a guess.
Yes, I think you guessed correctly. I followed a Howto and did exactly what it told me to do to install Postfix on an OpenBSD system and the Howto is recent. I tried stable postfix then the snapshot and got the same result. I am going to do some Googling on this FLAVOR variable and find out what I am doing wrong. Howto's sometimes leave out the details because most people already know about them.

I forgot to look for "OpenBSD for Dummies" when I was at the bookstore but I will be sure to check next time I am there.
Reply With Quote
Old 19th July 2008
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 107
Thanked 1 Time in 1 Post
Default

Here is a excerpt from Matty's Blog
Quote:
The OpenBSD ports tree comes with 1000s of packages in source form, and allows each port to be compiled and installed by executing “make install” in the application port directory (e.g., /usr/ports/net/mtr ) . Since individual ports can be built different ways, OpenBSD provides different “FLAVORS” to control the package build process. To view the FLAVORS offered by a specific port, the make utility can be invoked with the ’show’ option:

$ cd xmms

$ make show=FLAVORS
no_esd no_vorbis no_mikmod no_mp3

To build a package with a specific FLAVOR, the FLAVOR environment variable can be set prior to building the package:

$ export FLAVOR=”no_esd”

$ make install
Here is a very helpful site that does a lot of things with OpenBSD.
regarding syntax, look at this.
Code:
# cd /usr/ports/mail/postfix/snapshot
# env FLAVOR="mysql sasl2" make install
rk
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
Old 19th July 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,834
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by Pollywog View Post
YHowto's sometimes leave out the details because most people already know about them.
We strongly discourage people from using "howto's" for exactly this & many other reasons:
  • "Howto's" rarely are complete. Authors either don't anticipate how people may stretch the information provided, or they don't understand it themselves.
  • Most "howto's" are horribly out of date, & frequently don't reference what versions of OpenBSD were used.
The obvious question in response is "Where can I get such information?". Although "howto's" might offer some direction, it is still the responsibility of all of us to understand what commands are issued at the keyboard.
Reply With Quote
Old 19th July 2008
Pollywog Pollywog is offline
Port Guard
 
Join Date: Jul 2008
Posts: 12
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by roundkat View Post
Here is a excerpt from Matty's Blog


Here is a very helpful site that does a lot of things with OpenBSD.
regarding syntax, look at this.
Code:
# cd /usr/ports/mail/postfix/snapshot
# env FLAVOR="mysql sasl2" make install
rk
Thanks, this is exactly how I did it, so there must be something else I overlooked. I updated the ports tree but I did not update the source tree, thinking it was not necessary to do that unless I wanted to recompile the kernel.

Thanks for the URL's, I will have a look there.
Reply With Quote
Old 19th July 2008
Pollywog Pollywog is offline
Port Guard
 
Join Date: Jul 2008
Posts: 12
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ocicat View Post
We strongly discourage people from using "howto's" for exactly this & many other reasons:
  • "Howto's" rarely are complete. Authors either don't anticipate how people may stretch the information provided, or they don't understand it themselves.
  • Most "howto's" are horribly out of date, & frequently don't reference what versions of OpenBSD were used.
The obvious question in response is "Where can I get such information?". Although "howto's" might offer some direction, it is still the responsibility of all of us to understand what commands are issued at the keyboard.
Yes, I understand that Howto's are not perfect, but the official documentation is not all-inclusive even though it is the best source of information for beginners.

I know there is a book about OpenBSD but it is out of print. I use a book for FreeBSD and it is a great source of information.
Reply With Quote
Old 19th July 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,432
Thanked 214 Times in 189 Posts
Default

Don't follow "HowTo" documents. That said, you can learn from them, and use them to provide some direction, or perhaps areas to research. It is safest to assume from the outset that the person who wrote the document:
  • Was relatively new to OpenBSD when they wrote it.
  • Was not a professional instructor or technical writer, and therefore they did not "level-set" all of the required background necessary to understand the steps taken.
  • Thought that any reader's environment would match theirs exactly.
  • Never fully explained the details of any commands they show, why they suggested their particular command set, or what each command actually does. (I've seen an OpenBSD "Howto" where the author said that they did not understand what a command they recommended actually did, but that it was a necessary step. If you come across one of those, stop reading it. )
Reply With Quote
Old 20th July 2008
Pollywog Pollywog is offline
Port Guard
 
Join Date: Jul 2008
Posts: 12
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jggimi View Post
Don't follow "HowTo" documents. That said, you can learn from them, and use them to provide some direction, or perhaps areas to research. It is safest to assume from the outset that the person who wrote the document:
  • Was relatively new to OpenBSD when they wrote it.
  • Was not a professional instructor or technical writer, and therefore they did not "level-set" all of the required background necessary to understand the steps taken.
  • Thought that any reader's environment would match theirs exactly.
  • Never fully explained the details of any commands they show, why they suggested their particular command set, or what each command actually does. (I've seen an OpenBSD "Howto" where the author said that they did not understand what a command they recommended actually did, but that it was a necessary step. If you come across one of those, stop reading it. )
I think you are right. Many of the Howto's that I see will have a statement like "This is what I did and it finally works" like they did a trial-and-error install and then based their Howto on that.

I read the section of the FAQ that pertains to FLAVORS and I think I will stick with the packages until I understand OpenBSD better. I have used one or two other ports when packages were not available and didn't have any problems with those.
Reply With Quote
Old 20th July 2008
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 107
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by Pollywog View Post
Thanks, this is exactly how I did it, so there must be something else I overlooked. I updated the ports tree but I did not update the source tree, thinking it was not necessary to do that unless I wanted to recompile the kernel.

Thanks for the URL's, I will have a look there.
No worries..
As a rule you should always update the kernel and userland.

Anoncvs look here
Patching look here.

by keeping your kernel and userland in sync you will avoid a lot of weird issues..

rk
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
Reply

Tags
postfix openbsd

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
cannot install wireshark from ports ccc FreeBSD Ports and Packages 1 1st February 2009 05:52 PM
Unable to make install on Subversion port Fuitad FreeBSD Ports and Packages 2 28th July 2008 04:49 PM
Can't install opera from ports erno FreeBSD Ports and Packages 2 25th June 2008 10:25 AM
OBSD 4.3 Customize site43 & install.site problems gamaliel OpenBSD Installation and Upgrading 7 3rd June 2008 03:25 PM
Install ports from cd? xCipherx OpenBSD Packages and Ports 5 2nd June 2008 06:35 PM


All times are GMT. The time now is 01:10 AM.


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