[Serusers] Latest STABLE build without using CVS

Andrei Pelinescu-Onciul pelinescu-onciul at fokus.fraunhofer.de
Mon Aug 25 13:49:29 CEST 2003


On Aug 23, 2003 at 17:47, Jitender Arora <jarora at aastra.com> wrote:
> Hi Andrei,
> 
>  I tried building with what u suggested , but this also did not help ......
> 
>  the SER module builds o.k ...but other modules are not able to resolve some
> symbols .....

I
> 
>   Here is the output :
> 
> gmake[1]: Entering directory `/home/jitender/sip_router/modules/acc'
> gmake[1]: Leaving directory `/home/jitender/sip_router/modules/acc'
> gmake[1]: Entering directory `/home/jitender/sip_router/modules/acc'
> gcc -g -O9 -funroll-loops   -Wall  -mcpu=ultrasparc -mtune=ultrasparc
> -DNAM

I don't understand. The line should look like:
gcc -fPIC -DPIC -g -O9 ....

The module compilation and link flags are wrong in your case.
However even if I try on my linux/i386:
make  ARCH=sparc64 OS=solaris   modules modules=modules/acc

it will add the correct flags:
gcc -fPIC -DPIC -g -O9 -funroll-loops   -Wall  -mcpu=ultrasparc
^^^^^^^^^^^^^^^
-mtune=ultrasparc      -DNAME='"ser"' -DVERSION='"0.8.12dev-t14"'
-DARCH='"sparc64"' -DOS='"solaris"' -DCOMPILER='"gcc 3.3"' -D__CPU_sparc64
-D__OS_solaris -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DDNS_IP_HACK -DUSE_IPV6
-DUSE_TCP -DDISABLE_NAGLE -DDBG_QM_MALLOC -DFAST_LOCK -DHAVE_GETIPNODEBYNAME
-DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD -DSQL_ACC -c acc.c -o acc.o
cc1: error: invalid option `tune=ultrasparc'


Are you sure you  always add ARCH=sparc64 OS=solaris to your make?
(e.g. gmake ARCH=sparc64 OS=solaris modules )
What make version do you run? (gmake --version)
Please send me also the output of gcc -v, ld -v, as -v, uname -s, uname -m
 (I need the unames to fix the Makefile to autodetect solaris2.5/sparc64).


Andrei




More information about the sr-users mailing list