[asterisk-bugs] [Asterisk 0016251]: Symbol referencing errors (MIN/MAX in channel.o/udptl.o)

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Nov 22 07:19:46 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16251 
====================================================================== 
Reported By:                asgaroth
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16251
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.0.18-rc3 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-11-16 05:01 CST
Last Modified:              2009-11-22 07:19 CST
====================================================================== 
Summary:                    Symbol referencing errors (MIN/MAX in
channel.o/udptl.o)
Description: 
When building asterisk 1.6.0.18-rc3 I am faced with the following build
error:

   [LD] abstract_jb.o acl.o adsistub.o aescrypt.o aeskey.o aestab.o alaw.o
app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o
audiohook.o autoservice.o callerid.o cdr.o channel.o chanvars.o cli.o
config.o cryptostub.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o
event.o features.o file.o fixedjitterbuf.o frame.o fskmodem.o
global_datastores.o hashtab.o http.o image.o indications.o io.o jitterbuf.o
loader.o logger.o manager.o md5.o netsock.o pbx.o plc.o poll.o privacy.o
rtp.o say.o sched.o sha1.o slinfactory.o srv.o ssl.o stdtime/localtime.o
strcompat.o tcptls.o tdd.o term.o threadstorage.o translate.o udptl.o
ulaw.o utils.o version.o editline/libedit.a db1-ast/libdb1.a -> asterisk
Undefined                       first referenced
 symbol                             in file
MAX                                 channel.o
MIN                                 udptl.o
ld: fatal: Symbol referencing errors. No output written to asterisk
collect2: ld returned 1 exit status
make[1]: *** [asterisk] Error 1
make: *** [main] Error 2
====================================================================== 

---------------------------------------------------------------------- 
 (0114110) asgaroth (reporter) - 2009-11-22 07:19
 https://issues.asterisk.org/view.php?id=16251#c114110 
---------------------------------------------------------------------- 
Thanks snuffy, I had a look and put it in the place that is in trunk as you
mentioned above. I saw that udptl.c included utils.h so I just added the
MIN/MAX defines to include/asterisk/utils.h and everything compiles
properly now. I have not actually tested asterisk yet, but the build is
ok.

The only warning I get now, is probably because the MIN/MAX defines are
redefined in mpool.c. I assume this is also fixed in trunk. Here is the
warnings I get when I add the MIN/MAX defines in include/asterisk/utils.h

creating ./config.status
creating Makefile
creating makelist
creating config.h
   [CC] hash/hash.c -> hash/hash.o
   [CC] hash/hash_bigkey.c -> hash/hash_bigkey.o
   [CC] hash/hash_buf.c -> hash/hash_buf.o
   [CC] hash/hash_func.c -> hash/hash_func.o
   [CC] hash/hash_log2.c -> hash/hash_log2.o
   [CC] hash/hash_page.c -> hash/hash_page.o
   [CC] hash/ndbm.c -> hash/ndbm.o
   [CC] btree/bt_close.c -> btree/bt_close.o
   [CC] btree/bt_conv.c -> btree/bt_conv.o
   [CC] btree/bt_debug.c -> btree/bt_debug.o
   [CC] btree/bt_delete.c -> btree/bt_delete.o
   [CC] btree/bt_get.c -> btree/bt_get.o
   [CC] btree/bt_open.c -> btree/bt_open.o
   [CC] btree/bt_overflow.c -> btree/bt_overflow.o
   [CC] btree/bt_page.c -> btree/bt_page.o
   [CC] btree/bt_put.c -> btree/bt_put.o
   [CC] btree/bt_search.c -> btree/bt_search.o
   [CC] btree/bt_seq.c -> btree/bt_seq.o
   [CC] btree/bt_split.c -> btree/bt_split.o
   [CC] btree/bt_utils.c -> btree/bt_utils.o
   [CC] db/db.c -> db/db.o
   [CC] mpool/mpool.c -> mpool/mpool.o
In file included from mpool/mpool.c:52:
/export/home/vzhsxn/packages/BUILD/asterisk-1.6.0.18/include/asterisk/utils.h:25:1:
warning: "MIN" redefined
In file included from mpool/../include/db.h:45,
                 from mpool/mpool.c:50:
include/compat.h:45:1: warning: this is the location of the previous
definition
In file included from mpool/mpool.c:52:
/export/home/vzhsxn/packages/BUILD/asterisk-1.6.0.18/include/asterisk/utils.h:26:1:
warning: "MAX" redefined
In file included from mpool/../include/db.h:45,
                 from mpool/mpool.c:50:
include/compat.h:42:1: warning: this is the location of the previous
definition
   [CC] recno/rec_close.c -> recno/rec_close.o
   [CC] recno/rec_delete.c -> recno/rec_delete.o
   [CC] recno/rec_get.c -> recno/rec_get.o
   [CC] recno/rec_open.c -> recno/rec_open.o
   [CC] recno/rec_put.c -> recno/rec_put.o
   [CC] recno/rec_search.c -> recno/rec_search.o
   [CC] recno/rec_seq.c -> recno/rec_seq.o
   [CC] recno/rec_utils.c -> recno/rec_utils.o
   [AR] hash/hash.o hash/hash_bigkey.o hash/hash_buf.o hash/hash_func.o
hash/hash_log2.o hash/hash_page.o hash/ndbm.o btree/bt_close.o
btree/bt_conv.o btree/bt_debug.o btree/bt_delete.o btree/bt_get.o
btree/bt_open.o btree/bt_overflow.o btree/bt_page.o btree/bt_put.o
btree/bt_search.o btree/bt_seq.o btree/bt_split.o btree/bt_utils.o db/db.o
mpool/mpool.o recno/rec_close.o recno/rec_delete.o recno/rec_get.o
recno/rec_open.o recno/rec_put.o recno/rec_search.o recno/rec_seq.o
recno/rec_utils.o -> libdb1.a
   [LD] abstract_jb.o acl.o adsistub.o aescrypt.o aeskey.o aestab.o alaw.o
app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o
audiohook.o autoservice.o callerid.o cdr.o channel.o chanvars.o cli.o
config.o cryptostub.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o
event.o features.o file.o fixedjitterbuf.o frame.o fskmodem.o
global_datastores.o hashtab.o http.o image.o indications.o io.o jitterbuf.o
loader.o logger.o manager.o md5.o netsock.o pbx.o plc.o poll.o privacy.o
rtp.o say.o sched.o sha1.o slinfactory.o srv.o ssl.o stdtime/localtime.o
strcompat.o tcptls.o tdd.o term.o threadstorage.o translate.o udptl.o
ulaw.o utils.o version.o editline/libedit.a db1-ast/libdb1.a -> asterisk
 +--------- Asterisk Build Complete ---------+
 + Asterisk has successfully been built, and +
 + can be installed by running:              +
 +                                           +
 +                make install               +
 +-------------------------------------------+ 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-22 07:19 asgaroth       Note Added: 0114110                          
======================================================================




More information about the asterisk-bugs mailing list