I knew I should have saved the post for later; don't feel like editing it now.
I ran into issues with m4 as well, trying to build autotools; this post was useful. As the poster says, grab the m4patches tarball, extract it and mv it to /usr/pkgsrc/devel/m4, then do a bmake makedistinfo ; bmake install. You'll wind up with a /usr/pkg/bin/gm4.
Note that I had to do this before I was able to install cvs, just so that I could update the tree. Maybe it would have been easier to start with sunfreeware's cvs. Since I wanted to get a non-vulnerable mutt, and I don't mind hanging on the edge, I updated to the latest pkgsrc with "cvs up -A".
And a final (I hope) edit: that was still insufficient to get libiconv built (so hardly anything else would go), so I backed up a little and found this old posting which talks about bootstrapping on Solaris. The relevant information is here:
- Now bootstrap pkgsrc (follow this sequence exactly):
1. Go to ..pkgsrc/bootstrap and run ./bootstrap
2. Add the following to /usr/pkg/etc/mk.conf:
CC= /usr/sfw/bin/gcc
3. Copy /usr/sfw/bin/{ggrep,gegrep} to /usr/pkgsrc/bin/{grep,egrep}
4. Temporarily set: LD_LIBRARY_PATH=/opt/sfw/lib
5. a. Go to pkgsrc/devel/libtool-base and do `bmake install'
b. Go to pkgsrc/converters/libiconv and do `bmake install'
c. Go to pkgsrc/devel/gettext-lib and do `bmake install'
d. Go to pkgsrc/devel/gmake and do `bmake install'
e. Go to pkgsrc/lang/gcc3-c and do `bmake install'
6. Go back into /usr/pkg/etc/mk.conf and change CC like this:
CC= /usr/pkg/gcc3/bin/gcc
and add:
GCC_REQD+= 3
I'd bootstrapped already, but the mk.conf + (re)building libtool-base with the LD_LIBRARY_PATH variable set was sufficient to get libiconv. I did not need to copy stuff from /usr/sfw/bin to /usr/pkgsrc/bin though.
The final path I used is
"/usr/pkg/bin:/usr/pkg/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/sfw/bin:/usr/ccs/bin:/usr/local/bin"
And after all *that*, mutt dumps core on the x86 platform. Go figure. Everything else seemed so reasonable too... doesn't inspire me with hope for everything else, but I guess I'll see.


Published

Category

Technology

Tags

Contact