[Home]

Summary:ASTERISK-19198: Parallel make jobs break build
Reporter:Jeremy Kister (jkister)Labels:
Date Opened:2012-01-14 01:32:39.000-0600Date Closed:2012-01-16 08:07:02.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General Core/Portability
Versions:1.8.9.0 Frequency of
Occurrence
Constant
Related
Issues:
duplicatesASTERISK-18751 parallel build fails when cleantest calls clean
Environment:Debian 5.0.9 x86, gcc 4.3.2, gmake 3.81Attachments:
Description:configure --disable-xmldoc
make menuselect
make -j2


{code}
 [...]
  [CC] ast_expr2.c -> ast_expr2.o
  [CC] ast_expr2f.c -> ast_expr2f.o
  [CC] asterisk.c -> asterisk.o
asterisk.c:147:25: error: ../defaults.h: No such file or directory
asterisk.c:191: error: 'DEFAULT_TMP_DIR' undeclared here (not in a function)
asterisk.c: In function 'ast_readconfig':
asterisk.c:2856: error: 'DEFAULT_CONFIG_FILE' undeclared (first use in this function)
asterisk.c:2856: error: (Each undeclared identifier is reported only once
asterisk.c:2856: error: for each function it appears in.)
asterisk.c:2872: error: 'DEFAULT_CONFIG_DIR' undeclared (first use in this function)
asterisk.c:2873: error: 'DEFAULT_SPOOL_DIR' undeclared (first use in this function)
asterisk.c:2874: error: 'DEFAULT_MODULE_DIR' undeclared (first use in this function)
asterisk.c:2876: error: 'DEFAULT_VAR_DIR' undeclared (first use in this function)
asterisk.c:2877: error: 'DEFAULT_DATA_DIR' undeclared (first use in this function)
asterisk.c:2878: error: 'DEFAULT_LOG_DIR' undeclared (first use in this function)
asterisk.c:2879: error: 'DEFAULT_AGI_DIR' undeclared (first use in this function)
asterisk.c:2880: error: 'DEFAULT_DB' undeclared (first use in this function)
asterisk.c:2881: error: 'DEFAULT_KEY_DIR' undeclared (first use in this function)
asterisk.c:2882: error: 'DEFAULT_PID' undeclared (first use in this function)
asterisk.c:2883: error: 'DEFAULT_SOCKET' undeclared (first use in this function)
asterisk.c:2884: error: 'DEFAULT_RUN_DIR' undeclared (first use in this function)
make[1]: *** [asterisk.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [main] Error 2
{code}
Comments:By: Jeremy Kister (jkister) 2012-01-16 00:37:09.732-0600

i see the subject of 18751 is similar, but i otherwise see no reason to list this ticket as duplicating it.  

i recommend the duplicate tag be removed.

By: Walter Doekes (wdoekes) 2012-01-16 01:49:55.940-0600

Quote from the other ticket:
{quote}
rm -f defaults.h
{quote}
Quote from your ticket:
{quote}
asterisk.c:147:25: error: ../defaults.h: No such file or directory
{quote}
The chance of this being a different bug is slim. The manifestation is probably just a little different, but that's what happens when you're doing things in parallel.

Further, I don't think this is a blocker at all. But I'll let Leif decide.


By: Walter Doekes (wdoekes) 2012-01-16 02:21:38.968-0600

P.S. Did you test the patch I have on the reviewboard?
https://reviewboard.asterisk.org/r/1660/diff/raw/

By: Jeremy Kister (jkister) 2012-01-16 02:55:21.249-0600

you win! your patch does fix the evil behavior.

By: Matt Jordan (mjordan) 2012-01-16 08:07:02.425-0600

Closing as duplicate of ASTERISK-18751 (and no, this is not a blocker)