Hello,

I have not been following the asterisk list the last few weeks but from
the number of requests I have received asking this question I guess it
is best to send my answer to the list for reference.

So here is what I did to compile bristuff on Fedora Core 4.

Make the following changes to these files:
zaphfc/zaphfc.c, line 1000, remnove the leading "(ulong)"
channel.c, line 64 (AST_MUTEX_DEFINE_STATIC(uniquelock);), comment out
channel.c, line 302 (ast_mutex_lock(&uniquelock);), comment out
channel.c, line 304 (ast_mutex_unlock(&uniquelock);), comment out

I have to caution however that I have only a vague idea of the effects
these changes to the source code actually have on the behaviour of
asterisk. In any case I would carefully check before using it on any
production mode system. This said, I have been running my asterisk
server (a small one) with this for a few weeks/months without
registering any problems that I have traced to this hack.

I have sent this hack to [EMAIL PROTECTED] but never got an answer back.
Either I have simply adressed myself to the wrong contact, or ...

Anyway, I hope this helps everybody who encounters the same problem as
me. I am of course happy to help anybody if these instructions do not
solve the problem - if I can. If anybody finds out more about this
please send me a CC. Thanks.

With best regards,
Arik Funke


PS: I have the suspicion that the problems arise from a change to gcc.
Did anybody at all encounter this problem with a gcc with version before
4.0.1 or even 3.xx? (try gcc --version for version info)


Jens P. Hansen wrote:
Hi there,

Did you ever get below fixed ? (Have same problem here..).

Best regards
Jens P. Hansen


Arik Funke wrote:

Hi,
I have following problems compiling bristuff-0.2.0RC8m. Has anybody seen them before and can point me in the right direction?

zaphfc/make all:
----------------------
/usr/src/asterisk/bristuff-0.2.0-RC8m/zaphfc/zaphfc.c: In function 'hfc_findCards': /usr/src/asterisk/bristuff-0.2.0-RC8m/zaphfc/zaphfc.c:1000: error: invalid lvalue in assignment
make[2]: *** [
/usr/src/asterisk/bristuff-0.2.0-RC8m/zaphfc/zaphfc.o] Error 1
make[1]: *** [_module_
/usr/src/asterisk/bristuff-0.2.0-RC8m/zaphfc] Error 2
make[1]: Leaving directory '/usr/src/linux-2.6.12'
make: *** [linux26] Error 2

asterisk-1.0.9/make all:
----------------------------
channel.c64: error: static declaration of 'uniquelock' follows non-static declaration include/asterisk/channel.h:58: error: previous declaration of 'uniquelock' was here
make: *** [channel.o] Error 1


I am using following:
---------------------
Kernel: Fedora Core: 2.6.12-1.1398_FC4-i686
CPU: AMD Sempron 2800+
GCC: 4.0.1

Thanks very much for the effort.

Cheers,
Arik
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users





_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to