Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian, Red Hat/Fedora, Solaris, DD-WRT, NetBSD, Mac OS8/9, Mac OSX, UMP/OS, ESX
Posts: 42
Rep:
Compile Asterisk 1.6 Solaris 10 SPARC
Dear all,
it would appear the road of life has forked off the beaten path once again for me. I'm trying to build Asterisk 1.6.2.24 on Solaris 10 (SPARC, sun4u), and after a number of missing dependencies and a few Makefile/makeopts 'hacks' I can get it to build all the seperate modules, etc. Nothing unexpected.
Although I couldn't find any documentation recommending it, I also installed GNU curses, as the Sun version seems "a little low on functions".
Anyway, I've selected to embed most of the modules in menuselect (which doesn't even build with the Sun curses library), and they all build fine (except for a couple of relatively meaningless warnings). Near the end of the compiling process when running make, it builds the asterisk binary - and this is where it fails:
Obviously, this is strange, because I couldn't have built menuselect or a large number of the modules without curses. If I run ld (or /usr/sfw/bin/gld) -lcurses I receive the usual "no startpoint defined" message - certainly NOT "cannot find...". I've tried setting the LD_ALTEXEC, LD_LIBRARY_PATH and LD_FLAGS environment variables to include any and all possible directories for the various files, but (g)ld categorically refuses to load any libraries at that stage. Initially, I tried to build it all with termcap support, but as ld refused to load the library, I disabled it and recompiled.
Some relevant system/env info:
Code:
# gcc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
# /usr/sfw/bin/gld -V
GNU ld version 2.15
Supported emulations:
elf32_sparc
elf64_sparc
# make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for sparc-sun-solaris2.10
I also have (and can test with)
Code:
# gmake -v
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
I changed the makeopts to refer to '-lcurses' instead of '-lncurses' for compatibility and hardcoded the (--prefix) installation directories, as these are ignored on Solaris.
I'm probably missing something simple here. I hope so. If I missed any key information, let me know. Many thanks in advance!
Distribution: Debian, Red Hat/Fedora, Solaris, DD-WRT, NetBSD, Mac OS8/9, Mac OSX, UMP/OS, ESX
Posts: 42
Original Poster
Rep:
Right, after resolving some workstation deployment issues I'm back to the Asterisk build!
Has anybody encountered similar problems building on this (or another) platform? If it would fail due to some compatibility issue, I could understand it - but it simply ignores a library it used barely minutes or even seconds before. It almost seems as if the build process is causing something to run in it's own shell where it might lack the corrent environment variables, but I don't see anything to cause that in the Makefile(s).
Distribution: Debian, Red Hat/Fedora, Solaris, DD-WRT, NetBSD, Mac OS8/9, Mac OSX, UMP/OS, ESX
Posts: 42
Original Poster
Rep:
Considering the lack of replies, suggestions or answers, I've decided to move on with the 1.8.22 source. Here I can get most stuff working, except for the SIP channel module (which is rather important to me).
If I have any further questions, I'll be sure to post them on an Asterisk forum.
Distribution: Debian, Red Hat/Fedora, Solaris, DD-WRT, NetBSD, Mac OS8/9, Mac OSX, UMP/OS, ESX
Posts: 42
Original Poster
Rep:
Ok, I fixed it. The machine I was using had a mix of the SUNW and CSW packages for various GNU utilities. I bought a cheap SunBlade 150 and installed only Solaris 10 and the CSW packages. As well as a little magic with the Makefile, I had to change the PATH to include /opt/csw/bin before the default directories to enforce the usage of gmkdir (symlinked as mkdir) and ginstall (symlinked as install). Despite a reasonable number of warnings and an inexplicable SEGFAULT when launched interactively with high verbosity it's working fine.
Hope this helps someone. If not, you can send me a private message or start your own thread.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.