[Asterisk-Users] CVS Compile problem on Solaris

Max Klein max at cmax.net
Wed Jan 5 18:28:55 MST 2005


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.

After running into some unlisted dependencies, such as popt, things are
almost compiling. Right now the make bombs when trying to find setenv
(which is prototyped in the include/solaris-compat/compat.h) and
unsetenv (which is not prototyped in the solaris-compat) when
compiling/linking smsq. I cannot find a manual entry or match on google
for setenv on solaris aside from the shell command. Is there another
prerequisite package that I'm missing, or a linker path that I should
add? A transcript of the problem is below.

Thanks for any pointers!
	--Max


...
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





More information about the asterisk-users mailing list