[asterisk-bugs] [Asterisk 0017480]: [patch] editing files in main/editline does not ensure rebuild of libedit.a

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Apr 28 01:59:06 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17480 
====================================================================== 
Reported By:                wdoekes
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17480
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   trivial
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                       SWP-1663 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 268572 
Request Review:              
====================================================================== 
Date Submitted:             2010-06-07 03:34 CDT
Last Modified:              2011-04-28 01:59 CDT
====================================================================== 
Summary:                    [patch] editing files in main/editline does not
ensure rebuild of libedit.a
Description: 
Hi,

when editing a source file in main/editline, the build system does not
rebuild libedit.a and uses the already existing one instead.

The attached patch adds PHONY to the CHECK_SUBDIR target. This fixes the
issue for me.

Regards,
Walter Doekes
OSSO B.V.
====================================================================== 

---------------------------------------------------------------------- 
 (0134221) wdoekes (reporter) - 2011-04-28 01:59
 https://issues.asterisk.org/view.php?id=17480#c134221 
---------------------------------------------------------------------- 
Still works. Looks trivial enough to apply.


asterisk-svn$ touch main/editline/read.c 
asterisk-svn$ make NOISY_BUILD=yes
...
gcc -c  -pthread -I../..//include -I/usr/include/libxml2 -pipe -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3
-march=native -ffunction-sections -O6  -O '-D__RCSID(x)='
'-D__COPYRIGHT(x)=' '-D__RENAME(x)=' '-D_DIAGASSERT(x)=' -I. editline.c -o
editline.o_a
/usr/bin/ar cru libedit.a editline.o_a
ranlib libedit.a
...
gcc  -o asterisk -Wl,--gc-sections -Wl,--version-script,asterisk.exports
-Wl,--dynamic-list,asterisk.dynamics     abstract_jb.o acl.o alaw.o aoc.o
app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o
audiohook.o autochan.o autoservice.o bridging.o callerid.o ccss.o cdr.o
cel.o channel.o chanvars.o cli.o config.o data.o datastore.o db.o
devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o
fixedjitterbuf.o format.o format_cap.o format_pref.o frame.o framehook.o
fskmodem.o global_datastores.o hashtab.o heap.o http.o image.o
indications.o io.o jitterbuf.o loader.o lock.o logger.o manager.o md5.o
netsock.o netsock2.o pbx.o plc.o poll.o privacy.o rtp.o rtp_engine.o say.o
sched.o security_events.o sha1.o slinfactory.o srv.o ssl.o
stdtime/localtime.o strcompat.o strings.o stun.o syslog.o taskprocessor.o
tcptls.o tdd.o term.o test.o threadstorage.o timing.o translate.o udptl.o
ulaw.o utils.o version.o xml.o xmldoc.o editline/libedit.a db1-ast/libdb1.a
 buildinfo.o -lssl -lcrypto -lc  -lxml2  -lpthread -ltermcap  -lm -lresolv 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-28 01:59 wdoekes        Note Added: 0134221                          
======================================================================




More information about the asterisk-bugs mailing list