Ok, I got asterisk to compile just fine last week after a bit of tweaking. Here are my notes on how to compile Asterisk on Solaris 9.
First off, the following GNU-ish packages are needed aside from the obvious GCC: -popt -fileutils (need the GNU install program, the solaris one takes its arguments in a different order) -grep (The GNU version is needed to support the "-q" option) Now, the current CVS version includes a new utility for SMS called smsq. This program was created with setenv and unsetenv, which is not POSIX compliant, and only works with Linux from what I've found so far. Since I didn't need the SMS features for my application, I simply removed all references to it in the utils/Makefile. My install went something as follows: # export CVSROOT=:pserver:[EMAIL PROTECTED]:/usr/cvsroot # cvs login (password is anoncvs) # cvs co asterisk asterisk-sounds # cd asterisk # make # make install # cd ../asterisk-sounds # make install Lastly, to actually run asterisk, at least on my system, it couldn't find the SSL library. To correct this problem, just add it to your LD path, ie: # LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/ssl/lib # export LD_LIBRARY_PATH The system seems to be working fine for me, but now I'm having problems getting a Cisco 12SP+ to work, which does fine with the exact same configuration when compiled on Athlon Linux (386, not A64). -- Starting Skinny session from 172.17.2.2 Jan 10 12:02:44 WARNING[18807]: chan_skinny.c:2328 get_input: Skinny Client sent less data than expected. Jan 10 12:02:44 NOTICE[18807]: chan_skinny.c:2379 skinny_session: Skinny Session returned: Error 0 Hope at least the first part of this will help other Solaris users out there. Good luck! --Max On Fri, 2005-01-07 at 11:25 +1100, Adam Goryachev wrote: > I didn't see any other replies yet, so here is one that might help... > > On Wed, 2005-01-05 at 17:28 -0800, Max Klein wrote: > > Hello all, > > > > After reading through the Wiki and archives, I decided to take a stab at > > installing * on Solaris 9 SPARC. I checked it out via CVS last night as > > well as about an hour ago, and have run into a compile problem that I > > can't quite figure out. > > > > ... > > make[1]: Entering directory `/ext2/asterisk/utils' > > gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > > -Wmissing-declarations -g -Iinclude -I../include > > -Iinclude/solaris-compat -I/usr/local/ssl/include -D_REENTRANT > > -D_GNU_SOURCE -O6 -Wcast-align -DSOLARIS -DASTERISK_VERSION= > > \"CVS-HEAD-01/05/05-16:40:01\" -DASTERISK_VERSION_NUM=999999 > > -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR= > > \"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" > > -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" > > -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH= > > \"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules > > \" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\" -DBUSYDETECT_MARTIN > > -DNO_AST_MM -c -o smsq.o smsq.c > > smsq.c: In function `txqcheck': > > smsq.c:103: warning: int format, pid_t arg (arg 4) > > smsq.c: In function `rxqcheck': > > smsq.c:173: warning: int format, pid_t arg (arg 4) > > smsq.c:197: warning: implicit declaration of function `unsetenv' > > smsq.c:215: warning: implicit declaration of function `setenv' > > smsq.c: In function `main': > > smsq.c:650: warning: int format, pid_t arg (arg 4) > > smsq.c:653: warning: int format, pid_t arg (arg 7) > > gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > > -Wmissing-declarations -g -Iinclude -I../include > > -Iinclude/solaris-compat -I/usr/local/ssl/include -D_REENTRANT > > -D_GNU_SOURCE -O6 -Wcast-align -DSOLARIS -DASTERISK_VERSION= > > \"CVS-HEAD-01/05/05-16:40:01\" -DASTERISK_VERSION_NUM=999999 > > -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR= > > \"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" > > -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" > > -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH= > > \"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules > > \" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\" -DBUSYDETECT_MARTIN > > -DNO_AST_MM -o smsq smsq.o -lpopt > > Undefined first referenced > > symbol in file > > unsetenv smsq.o > > setenv smsq.o > > ld: fatal: Symbol referencing errors. No output written to smsq > > collect2: ld returned 1 exit status > > make[1]: *** [smsq] Error 1 > > make[1]: Leaving directory `/ext2/asterisk/utils' > > make: *** [subdirs] Error 1 > > Try removing smsq from the makefile, perhaps you aren't going to need it > anyway. At least it should get you closer to getting asterisk up and > running.... Once you get there, then come back to try and resolve this > compile issue (probably open a bug on bugs.digium.com)... > > Regards, > Adam _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users