Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

Problem in compilation of asterisk

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Windows Server 2003 R2 SUA >> Problem in compilation of asterisk Page: [1]
Login
Message << Older Topic   Newer Topic >>
Problem in compilation of asterisk - May 22, '06, 1:08:25 AM   
shashwat.gupta

 

Posts: 11
Joined: May 9, '06,
Status: offline
Hi all,

Actually I am trying to compile Asterisk on windows server 2003 SUA(subsystem for Unix application ).But when I try to make "using make command" It start giving me following error messages.

$ make
"makefile", line 28: Missing dependency operator
"makefile", line 31: Need an operator
"makefile", line 34: Need an operator
"makefile", line 41: Need an operator
"makefile", line 50: Need an operator
"makefile", line 110: Missing dependency operator
"makefile", line 124: Need an operator
"makefile", line 138: Need an operator
"makefile", line 165: Missing dependency operator
"makefile", line 166: warning: Shell command needs a leading tab
"makefile", line 167: Need an operator
"makefile", line 169: Missing dependency operator
"makefile", line 170: warning: Shell command needs a leading tab
"makefile", line 171: Need an operator
"makefile", line 173: Missing dependency operator
"makefile", line 174: warning: Shell command needs a leading tab
"makefile", line 176: Missing operator
"makefile", line 178: Missing operator
"makefile", line 180: Missing operator
"makefile", line 185: Missing operator
"makefile", line 187: Missing operator
"makefile", line 197: Missing operator
"makefile", line 199: Missing operator
"makefile", line 201: Missing operator
"makefile", line 203: Missing operator
"makefile", line 204: Missing operator
"makefile", line 206: Missing operator
"makefile", line 208: Missing operator
"makefile", line 209: Missing operator
"makefile", line 210: Missing operator
"makefile", line 212: Need an operator
"makefile", line 217: Missing dependency operator
"makefile", line 221: Need an operator
"makefile", line 228: Need an operator
"makefile", line 231: Need an operator
"makefile", line 233: Missing dependency operator
"makefile", line 235: Need an operator
"makefile", line 237: Missing dependency operator
"makefile", line 239: Need an operator
"makefile", line 241: Need an operator
"makefile", line 243: Need an operator
"makefile", line 244: warning: Shell command needs a leading tab
"makefile", line 246: Missing operator
"makefile", line 247: Need an operator
"makefile", line 249: Missing dependency operator
"makefile", line 253: Missing operator
"makefile", line 255: Missing operator
"makefile", line 273: Need an operator
"makefile", line 275: Missing dependency operator
"makefile", line 279: Need an operator
"makefile", line 281: Missing dependency operator
"makefile", line 283: Need an operator
"makefile", line 285: Missing dependency operator
"makefile", line 288: Need an operator
"makefile", line 290: Need an operator
"makefile", line 298: Need an operator
"makefile", line 300: Need an operator
"makefile", line 302: Need an operator
"makefile", line 304: Need an operator
"makefile", line 306: Need an operator
"makefile", line 310: Missing dependency operator
Unknown modifier ']'

"makefile", line 314: Need an operator
"makefile", line 316: Need an operator
"makefile", line 321: Missing dependency operator
"makefile", line 324: Need an operator
"makefile", line 325: warning: Shell command needs a leading tab
"makefile", line 328: Missing operator
"makefile", line 329: Need an operator
"makefile", line 336: Need an operator
"makefile", line 338: Need an operator
"makefile", line 351: Need an operator
"makefile", line 354: Need an operator
"makefile", line 356: Need an operator
"makefile", line 359: Need an operator
"makefile", line 361: Missing dependency operator
"makefile", line 363: Need an operator
"makefile", line 365: Need an operator
"makefile", line 367: Missing dependency operator
"makefile", line 375: Need an operator
"makefile", line 379: Need an operator
"makefile", line 381: Missing dependency operator
"makefile", line 383: Need an operator
"makefile", line 385: Missing dependency operator
"makefile", line 387: Need an operator
"makefile", line 389: Missing dependency operator
"makefile", line 391: Need an operator
"makefile", line 393: Missing dependency operator
"makefile", line 398: Need an operator
"makefile", line 400: Missing dependency operator
"makefile", line 402: Need an operator
"makefile", line 405: Missing dependency operator
"makefile", line 407: Need an operator
"makefile", line 409: Need an operator
"makefile", line 430: Missing dependency operator
"makefile", line 432: Need an operator
"makefile", line 451: Missing dependency operator
"makefile", line 452: warning: Shell command needs a leading tab
"makefile", line 453: Need an operator
"makefile", line 455: Missing dependency operator
"makefile", line 456: warning: Shell command needs a leading tab
"makefile", line 457: Need an operator
Fatal errors encountered -- cannot continue


Things are working properly when i try to compile same program in linux ..

So I was just wondering how to make it work .... Actually I am new to SUA so any problem on that part may be also there.


Any help would be highly appreciated

_____________________________

Reagads

shashwat
Post #: 1
RE: Problem in compilation of asterisk - May 22, '06, 1:30:40 AM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
So what is on lines 28, 31, 34 ...

(in reply to shashwat.gupta)
Post #: 2
RE: Problem in compilation of asterisk - May 22, '06, 2:17:54 AM   
shashwat.gupta

 

Posts: 11
Joined: May 9, '06,
Status: offline
Thanks Rodney for Your interest,
I am just printing some 100 line from makefile as makefile is quiet big so it can not come in limited text limit.as u can see it is mostly shell script. which is giving error



#
# Asterisk -- A telephony toolkit for Linux.
#
# Top level Makefile
#
# Copyright (C) 1999-2005, Mark Spencer
#
# Mark Spencer <markster@digium.com>
#
# This program is free software, distributed under the terms of
# the GNU General Public License
#

.EXPORT_ALL_VARIABLES:

# Create OPTIONS variable
OPTIONS=
# If cross compiling, define these to suit
# CROSS_COMPILE=/opt/montavista/pro/devkit/arm/xscale_be/bin/xscale_be-
# CROSS_COMPILE_BIN=/opt/montavista/pro/devkit/arm/xscale_be/bin/
# CROSS_COMPILE_TARGET=/opt/montavista/pro/devkit/arm/xscale_be/target
CC=$(CROSS_COMPILE)gcc
HOST_CC=gcc
# CROSS_ARCH=Linux
# CROSS_PROC=arm
# SUB_PROC=xscale # or maverick
# line where error is coming
ifeq ($(CROSS_COMPILE),)
OSARCH=$(shell uname -s)
OSREV=$(shell uname -r)
else
OSARCH=$(CROSS_ARCH)
OSREV=$(CROSS_REV)
endif

# Remember the MAKELEVEL at the top
MAKETOPLEVEL?=$(MAKELEVEL)

PWD=$(shell pwd)

ifneq ($(findstring dont-optimize,$(MAKECMDGOALS)),dont-optimize)
######### More GSM codec optimization
######### Uncomment to enable MMXTM optimizations for x86 architecture CPU's
######### which support MMX instructions. This should be newer pentiums,
######### ppro's, etc, as well as the AMD K6 and K7.
#K6OPT = -DK6OPT

#Tell gcc to optimize the code
OPTIMIZE+=-O6
endif

#Overwite config files on "make samples"
OVERWRITE=y

#Include debug and macro symbols in the executables (-g) and profiling info (-pg)
DEBUG=-g3 #-pg

#Set NOCRYPTO to yes if you do not want to have crypto support or
#dependencies
#NOCRYPTO=yes

# If you are running a radio application, define RADIO_RELAX so that the DTMF
# will be received more reliably
#OPTIONS += -DRADIO_RELAX

# If you don't have a lot of memory (e.g. embedded Asterisk), define LOW_MEMORY
# to reduce the size of certain static buffers

#ifneq ($(CROSS_COMPILE),)
#OPTIONS += -DLOW_MEMORY
#endif

# Optional debugging parameters
DEBUG_THREADS = #-DDUMP_SCHEDULER #-DDEBUG_SCHEDULER #-DDEBUG_THREADS #-DDO_CRASH #-DDETECT_DEADLOCKS

# Uncomment next one to enable ast_frame tracing (for debugging)
TRACE_FRAMES = #-DTRACE_FRAMES

# Uncomment next one to enable malloc debugging
# You can view malloc debugging with:
# *CLI> show memory allocations [filename]
# *CLI> show memory summary [filename]
#
MALLOC_DEBUG = #-include $(PWD)/include/asterisk/astmm.h

# Where to install asterisk after compiling
# Default -> leave empty
INSTALL_PREFIX?=

# Staging directory
# Files are copied here temporarily during the install process
# For example, make DESTDIR=/tmp/asterisk woud put things in
# /tmp/asterisk/etc/asterisk
# XXX watch out, put no spaces or comments after the value
DESTDIR?=
#DESTDIR?=/tmp/asterisk

# Original busydetect routine
BUSYDETECT = #-DBUSYDETECT

# Improved busydetect routine, comment the previous one if you use this one
BUSYDETECT+= #-DBUSYDETECT_MARTIN
# Detect the busy signal looking only at tone lengths
# For example if you have 3 beeps 100ms tone, 100ms silence separated by 500 ms of silence
BUSYDETECT+= #-DBUSYDETECT_TONEONLY
# Inforce the detection of busy singal (get rid of false hangups)
# Don't use together with -DBUSYDETECT_TONEONLY
BUSYDETECT+= #-DBUSYDETECT_COMPARE_TONE_AND_SILENCE

ifneq ($(OSARCH),SunOS)
ASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk
ASTVARLIBDIR=$(INSTALL_PREFIX)/var/lib/asterisk
ASTETCDIR=$(INSTALL_PREFIX)/etc/asterisk
ASTSPOOLDIR=$(INSTALL_PREFIX)/var/spool/asterisk
ASTLOGDIR=$(INSTALL_PREFIX)/var/log/asterisk
ASTHEADERDIR=$(INSTALL_PREFIX)/usr/include/asterisk
ASTCONFPATH=$(ASTETCDIR)/asterisk.conf
ASTBINDIR=$(INSTALL_PREFIX)/usr/bin
ASTSBINDIR=$(INSTALL_PREFIX)/usr/sbin
ASTVARRUNDIR=$(INSTALL_PREFIX)/var/run
ASTMANDIR=$(INSTALL_PREFIX)/usr/share/man
MODULES_DIR=$(ASTLIBDIR)/modules
AGI_DIR=$(ASTVARLIBDIR)/agi-bin
else
ASTLIBDIR=$(INSTALL_PREFIX)/opt/asterisk/lib
ASTVARLIBDIR=$(INSTALL_PREFIX)/var/opt/asterisk/lib
ASTETCDIR=$(INSTALL_PREFIX)/etc/opt/asterisk
ASTSPOOLDIR=$(INSTALL_PREFIX)/var/opt/asterisk/spool
ASTLOGDIR=$(INSTALL_PREFIX)/var/opt/asterisk/log
ASTHEADERDIR=$(INSTALL_PREFIX)/opt/asterisk/usr/include/asterisk
ASTCONFPATH=$(ASTETCDIR)/asterisk.conf
ASTBINDIR=$(INSTALL_PREFIX)/opt/asterisk/usr/bin
ASTSBINDIR=$(INSTALL_PREFIX)/opt/asterisk/usr/sbin
ASTVARRUNDIR=$(INSTALL_PREFIX)/var/opt/asterisk/run
ASTMANDIR=$(INSTALL_PREFIX)/opt/asterisk/usr/share/man
MODULES_DIR=$(ASTLIBDIR)/modules
AGI_DIR=$(ASTVARLIBDIR)/agi-bin
endif





This is not complete makefile ... Can i some how upload complete makefile on the forum. If u want to see complete Makefile it is there with standard asterisk(avaliable on asterisk.org)

again thanks for your time and I will be thankful to any help

(in reply to Rodney)
Post #: 3
RE: Problem in compilation of asterisk - May 22, '06, 4:22:50 AM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Thanks for the information (though I didn't need that much ),

The makefile has been written to work with gmake only.
It's not a portable makefile in the sense that other make's will understand it.
The solution is to install gmake and run the build with it. This is available
as a package from the /Tools warehouse.

(in reply to shashwat.gupta)
Post #: 4
RE: Problem in compilation of asterisk - May 22, '06, 6:01:59 AM   
shashwat.gupta

 

Posts: 11
Joined: May 9, '06,
Status: offline
Again Thanks Rodney for your very Important help.
as You have asked me I have download and Installed gmake.but it is either not working.despite searching internet I am not able to find solution so I am putting it in forum again.

IT is giving me following error message.

% gmake
if cmp -s .cleancount .lastclean ; then echo ; else \
gmake clean; cp -f .cleancount .lastclean;\
fi
Ambiguous output redirect.
Ambiguous output redirect.
if: Expression Syntax.
gmake: *** [cleantest] Error 1



It is generated from following portion of Makefile:


cleantest:
if cmp -s .cleancount .lastclean ; then echo ; else \
$(MAKE) clean; cp -f .cleancount .lastclean;\
fi



When I tried to comment the following line and remove it cleantest from other dependency it start giving me following error message
% gmake
build_tools/make_version_h > include/asterisk/version.h.tmp
Ambiguous output redirect.
Ambiguous output redirect.
if cmp -s include/asterisk/version.h.tmp include/asterisk/version
else \
mv include/asterisk/version.h.tmp include/asterisk/versio update"; \

fi
if: Expression Syntax. n.h ; \en echo;
gmake: *** [include/asterisk/version.h] Error 1



Actually it was asked in asterisk README to install following packages

the C library & headers and the headers and libraries for OpenSSL,ncurses and zlib.

I have Installed OpenSSl (openssl-0.9.8.1.1-bin) zlib(zlib-1.2.2b-bin) from /Tool warehouse. ncurses package is not there so i am not able to installed that.I am assuming that have already full installation of complete C libraray and headers with installation of SUA and their utilites

I have following shell links in my computer
% ls -l |grep sh
lr--r--r-- 1 trainee_nagpur +Administrators 2 May 17 15:58 bash -> sh
-rwxrwxr-x 1 NG-WIN2K3-R2+Administrator +Administrators 97792 Jan 6 12:01 chsh
lrw-rw-r-- 1 NG-WIN2K3-R2+Administrator +Administrators 4 Jan 5 21:05 csh -> tcsh
-rwxr-xr-x 1 trainee_nagpur +Administrators 542720 May 17 16:13 cshshell
-rwxrwxr-x 1 NG-WIN2K3-R2+Administrator +Administrators 399360 Jan 6 12:01 ksh
-rwxrwxr-x 1 NG-WIN2K3-R2+Administrator +Administrators 110592 Jan 6 12:01 rsh
-rwxrwxr-x 2 NG-WIN2K3-R2+Administrator +Administrators 542720 Jan 6 12:01 sh
-rwxrwxr-x 2 NG-WIN2K3-R2+Administrator +Administrators 542720 Jan 6 12:01 tcsh
-rwxr-xr-x 1 trainee_nagpur +Administrators 542720 May 17 16:13 tcshshell




I will be very thankful to people in this forum and forum administrator . Thanks
I am expecting more reply for this post

(in reply to Rodney)
Post #: 5
RE: Problem in compilation of asterisk - May 22, '06, 2:31:26 PM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Interix comes with an older version of libcurses. And /Tools has the most
current version as a package as well ("libncurses", not "ncurses").

(in reply to shashwat.gupta)
Post #: 6
RE: Problem in compilation of asterisk - May 23, '06, 3:24:05 AM   
shashwat.gupta

 

Posts: 11
Joined: May 9, '06,
Status: offline
Thanks Rodney for Your help

But I think problem is else where as I have posted in my previous post My shell links . as You can see my bash is pointing to sh which has same inode as that of csh .... So ultimatly it is bash is pointing to c shell.

I have tried to pick up the particular shell portion (which in particuar was giving error)it is working in bash but gives error in c shell ( this problem is in linux also) .

actually this link is created by me(at that point of time I was biggest fool on this earth ) problem is now that nither I am able to delete bash-current-bin package through pkg_delete neither I am able to add it (it says package is already installed) neither package update is working

So I am expecting some more help and post
again thanks Rodney for your previous reply and posts

(in reply to Rodney)
Post #: 7
RE: Problem in compilation of asterisk - May 23, '06, 4:55:56 AM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
ah, okay. This glues together some of your previous information.
I wasn't sure what it was about... I'm still not entirely clear what's happened or why.
Bash isn't run as the shell from make or gmake by default. By default /bin/sh is.
The error message is from csh get sh syntax.
So at some point you've clobbered your /bin/sh with /bin/csh.
(I'm assuming the ls output is from /bin since you don't say).

I would at this point try running the Interix utilities installer again for the utilities and
choose the "Repair" option to see if that will fix/correct the files. But I don't hold too
much hope for this.

If Repair doesn't work, then uninstall the utilities. Remove the directory it was installed into
to remove leftover files and anything left behind from the /Tools install.
Then re-install the Interix utilities.

(in reply to shashwat.gupta)
Post #: 8
RE: Problem in compilation of asterisk - May 25, '06, 6:58:16 AM   
shashwat.gupta

 

Posts: 11
Joined: May 9, '06,
Status: offline
Thanks Rodney for your help ...It was really cool help

I am sorry that I go sometimes very ambiguous

So as you have suggested me I have reinstalled utilities again now after setting my Makefile to execute it on bash shell. as I have expected it start compiling the package. but when it encountered config.guess file
it says can not find host type and you must specify one
and hence error and got exit

I search in forum and find out that someone has same problem with bason package and it has been suggested their to get new config.guess file ... so i took the idea from there and got new config.guess from www.gnu.org (Time stamp - '2006-05-13')

Now after this it properly started recoginzing SUA and properly compiled that subdirectory after that when enter in to other subdirectory it start giving me following error


In file included from hash/hash.c:56:
include/db.h:59: warning: redefinition of `int8_t'
/usr/include/sys/types.h:49: warning: `int8_t' previously declared here
include/db.h:60: warning: redefinition of `int16_t'
/usr/include/sys/types.h:51: warning: `int16_t' previously declared here
include/db.h:61: warning: redefinition of `int32_t'
/usr/include/sys/types.h:53: warning: `int32_t' previously declared here
include/db.h:62: warning: redefinition of `u_int8_t'
/usr/include/sys/types.h:50: warning: `u_int8_t' previously declared here
include/db.h:63: warning: redefinition of `u_int16_t'
/usr/include/sys/types.h:52: warning: `u_int16_t' previously declared here
include/db.h:64: warning: redefinition of `u_int32_t'
/usr/include/sys/types.h:54: warning: `u_int32_t' previously declared here
hash/hash.c: In function `init_hash':
hash/hash.c:294: error: `BYTE_ORDER' undeclared (first use in this function)
hash/hash.c:294: error: (Each undeclared identifier is reported only once
hash/hash.c:294: error: for each function it appears in.)
hash/hash.c:332: error: `BIG_ENDIAN' undeclared (first use in this function)
hash/hash.c:333: error: `LITTLE_ENDIAN' undeclared (first use in this function)
gmake[1]: *** [hash.o] Error 1
gmake[1]: Leaving directory `/dev/fs/C/asterisk-1.2.7.1/db1-ast'
gmake: *** [db1-ast/libdb1.a] Error 2
bash-3.00$



It might look that I am not properly searching internet before asking question on forum but beleive me I am looking for this for last 5 hours without any success.


I will be thankful to any one who will help me solve this problem.

I just want to again thanks Rodney for his huge support

(in reply to Rodney)
Post #: 9
More facts - May 25, '06, 7:01:28 AM   
shashwat.gupta

 

Posts: 11
Joined: May 9, '06,
Status: offline
I just want add one more thing that things are working in linux properly so error must be in some part of my SUA machine

< Message edited by shashwat.gupta -- May 25, '06, 7:04:30 AM >

(in reply to shashwat.gupta)
Post #: 10
[Deleted] - May 25, '06, 7:04:03 AM   
shashwat.gupta
Post has been moved to the Recycle Bin at May 25, '06, 7:04:52 AM by shashwat.gupta
Post #: 11
RE: More facts - May 25, '06, 9:54:40 PM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Well, the first goal of porting is compile everything. Link second. Fix warnings after.

So ignore the warnings for now.
Your code is assuming that BYTE_ORDER, BIG_ENDIAN and LITTLE_ENDIAN have already
been included in a header file. Obviously not the case. So use grep to
scan through the header files to see which one these macros are in.
grep -r BYTE_ORDER /usr/include
ta-da: <sys/endian>
A quick look inside shows that it's guarded by "_ALL_SOURCE".
So to expose it _ALL_SOURCE has to be defined. Given it isn't already and you didn't
know about config.guess you likely have not read the Developers FAQ (entry 4.02).
You should read it. It'll pre-solve many things.

(in reply to shashwat.gupta)
Post #: 12
RE: problem in compilation of asterisk - May 29, '06, 7:55:39 AM   
shashwat.gupta

 

Posts: 11
Joined: May 9, '06,
Status: offline
Thanks rodney for ur previous helps
as you have suggested me I have put the all the enviorment variable required by SUA for program compilation.... But it does not worked either ... but when I putted the same flags in compilation line (I mean gcc $CFLAGS -o foo foo.c) the directory though it shows me some warning but it got compiled. Now after getting out of that directory it got struck with other directory.....

Now it start showing me following error


gmake[1]: Entering directory `/dev/fs/C/asterisk-1.2.7.1/db1-ast'
gmake[1]: `libdb1.a' is up to date.
gmake[1]: Leaving directory `/dev/fs/C/asterisk-1.2.7.1/db1-ast'
gmake[1]: Entering directory `/dev/fs/C/asterisk-1.2.7.1/stdtime'
gcc -D_ALL_SOURCE -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -Iin
clude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -fomit-frame-pointer -DPOLLCOMPAT -DDLFCNCOM
PAT -D_ALL_SOURCE -I/usr/local/include -I/usr/local/ssl/include -c -o localtime.o localtime.c
localtime.c:213: error: `use_ast_mutex_t_instead_of_pthread_mutex_t' undeclared here (not in a function)
localtime.c:214: error: `use_ast_mutex_t_instead_of_pthread_mutex_t' undeclared here (not in a function)
localtime.c:215: error: `use_ast_mutex_t_instead_of_pthread_mutex_t' undeclared here (not in a function)
localtime.c:216: error: `use_ast_mutex_t_instead_of_pthread_mutex_t' undeclared here (not in a function)
localtime.c: In function `localsub':
localtime.c:1041: error: structure has no member named `tm_zone'
localtime.c: In function `gmtsub':
localtime.c:1091: error: structure has no member named `tm_zone'
localtime.c:1094: error: structure has no member named `tm_zone'
localtime.c:1095: error: structure has no member named `tm_zone'
localtime.c: In function `timesub':
localtime.c:1192: error: structure has no member named `tm_gmtoff'
gmake[1]: *** [localtime.o] Error 1
gmake[1]: Leaving directory `/dev/fs/C/asterisk-1.2.7.1/stdtime'
gmake: *** [stdtime/libtime.a] Error 2
bash-3.00$



I guess I have set all the flags. could not understand why this problem is coming

More help is needed

_____________________________

Reagads

shashwat

(in reply to Rodney)
Post #: 13
RE: problem in compilation of asterisk - May 29, '06, 10:22:44 AM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Well, the lines that show:
> localtime.c:213: error: `use_ast_mutex_t_instead_of_pthread_mutex_t' undeclared here (not in a function)

are something local to the application's build. Not an Interix specific
thing. You'll need to find which of the app's include/header files have
it and why it's not in the localtime.c file.

For the other error:
> localtime.c:1041: error: structure has no member named `tm_zone'

You need to look at that line of code and see which variable is being used
and then as what strcuture it is declared as. Then see which header file
it's in and then see why that header file is not getting included with this source file.

> I guess I have set all the flags. could not understand why this problem is coming

I haven't looked at this app's code. But often it is that code has been set
for one platform or a small number of platforms. The use of "configure"
doesn't make code 100% portable -- it just provides the potential.
A lot of the platforms are not adhering to the standards which many people
don't realize which results in code that is platform specific.

realize

(in reply to shashwat.gupta)
Post #: 14
RE: problem in compilation of asterisk - Jun. 7, '06, 8:55:39 AM   
shashwat.gupta

 

Posts: 11
Joined: May 9, '06,
Status: offline
Thanks Rodney for your previous helps

I was some how able to compile the asterisk on SUA (Though it give me some error of not defining some macros I defined them wherever it needed ) previous posts on this forums was quite helpful in compiling it.

But when I went of installion of it by gmake install command ... it started giving me error of not finding -d option ....I did installation of new package from /tool but it did not help me either.... so can some one please help me regarding it... how I can make it work........ mind u linux has install -d option

My actual line of compilation is..
install -d /usr/include/asterisk

Thanks

_____________________________

Reagads

shashwat

(in reply to Rodney)
Post #: 15
RE: Problem in compilation of asterisk - Jun. 7, '06, 11:44:15 AM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Interix's install has the '-d' option. It has since the begining.
Same with the /Tools verison of install.

Is the makefile finding some script that comes with the software instead?

(in reply to shashwat.gupta)
Post #: 16
RE: Problem in compilation of asterisk - Jun. 8, '06, 1:11:55 AM   
shashwat.gupta

 

Posts: 11
Joined: May 9, '06,
Status: offline
I am afraid Rodney It is not the case with my machine ....
I saw in man install .... it is not showing -d option there either ..and more no file with name install is there in my execution folder.

I am giving actual error I got while installing

gmake[1]: Leaving directory `/dev/fs/C/asterisk-1.2.7.1/utils'
gmake[1]: Entering directory `/dev/fs/C/asterisk-1.2.7.1/stdtime'
gmake[1]: Nothing to be done for `install'.
gmake[1]: Leaving directory `/dev/fs/C/asterisk-1.2.7.1/stdtime'
install -d /usr/include/asterisk
install: illegal option 'd'
usage: install [-cs] [-g group] [-m mode] [-o owner] file1 file2;
or file1 ... fileN directory
gmake: *** [bininstall] Error 1


_____________________________

Reagads

shashwat

(in reply to Rodney)
Post #: 17
RE: Problem in compilation of asterisk - Jun. 8, '06, 10:32:56 AM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Install the /Tools update of install.
It gets installed in /usr/local/bin (avoids clobbering /bin/install).
It has '-d' as an option.
pkg_update -L install

(in reply to shashwat.gupta)
Post #: 18
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Windows Server 2003 R2 SUA >> Problem in compilation of asterisk Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.109