[Freeswitch-users] strdup error on solaris

Seven Du dujinfang at gmail.com
Thu Aug 18 18:52:58 MSD 2011


Hi,

I'm new to solaris

SunOS solaris 5.11 snv_134 i86pc i386 i86pc

I didn't follow the wiki about installing on solaris but installed building tool chain with pkg install SUNWgcc etc. 
bootstrap and configure was ok, however, I got error on gmake. Any highlight on this? Thanks.

libs/stfu/stfu.c: In function `stfu_n_debug':
libs/stfu/stfu.c:224: warning: implicit declaration of function `strdup'
libs/stfu/stfu.c:224: warning: assignment makes pointer from integer without a cast
libs/stfu/stfu.c:227: warning: assignment makes pointer from integer without a cast
libs/stfu/stfu.c: In function `stfu_n_init':
libs/stfu/stfu.c:302: warning: assignment makes pointer from integer without a cast
gmake[1]: *** [libfreeswitch_la-stfu.lo] #### 1
gmake: *** [all] #### 2
link at solaris:~/seven/freeswitch# vi libs/stfu/stfu.c:224
link at solaris:~/seven/freeswitch# vi libs/stfu/stfu.c


link at solaris:~/seven/freeswitch# gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs
Configured with: /builds2/sfwnv-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,f77,objc --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-20050802)

-- 
Seven Du
About: http://about.me/dujinfang
Blog: http://www.dujinfang.com
Proj: http://www.freeswitch.org.cn
Sent with Sparrow (http://www.sparrowmailapp.com)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110818/1a018e0a/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list