[Home]

Summary:ASTERISK-24623: Hard coded PJDIR in res/pjproject/build.mak
Reporter:tootai (tootai)Labels:
Date Opened:2014-12-16 10:18:06.000-0600Date Closed:2014-12-17 06:24:10.000-0600
Priority:MinorRegression?
Status:Closed/CompleteComponents:Core/BuildSystem
Versions:11.15.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:irrelevantAttachments:
Description:I upgraded 2 asterisk 11.14.2 to 11.15.0 One of them didn't compile well and I got error

pjproject/build.mak:2: /usr/src/asterisk-11.9.0/res/pjproject/version.mak: Aucun fichier ou dossier de ce type
make[1]: *** Pas de règle pour fabriquer la cible « /usr/src/asterisk-11.9.0/res/pjproject/version.mak ». Arrêt.
make: *** [res] Erreur 2

I create a symlink asterisk-11-9-0 to asterisk-11.15.0 source and then compiling was fine.

On the second one, compiling went smoothly, without having to create this symlink. I took a look in his build.mak and saw that his export PJDIR was connected to asterisk-11.12.0 And the source of this version are present on the server which is not the case on the other one (removed them some days ago after installing 11.14.2)

This means that the PJDIR path is setted against the full tar.gz version of asterisk. My upgrades are only patch applied from last version to the new one.

Comments:By: Rusty Newton (rnewton) 2014-12-16 18:23:31.708-0600

I'm not sure I understand your issue.

Can you describe how to reproduce the issue with a fresh tarball of asterisk-11.15.0 ?

Are you making a diff between the two tarballs and then patching 11.15.0?

By: tootai (tootai) 2014-12-17 05:24:44.871-0600

Install asterisk-11.14.0 from tarball: res/pjproject/build.mak will have

export PJDIR := /usr/src/asterisk-11.14.0/res/pjproject

Copy the asterisk-11.14.0 src directory as asterisk-11.15.0, apply asterisk-11.15.0-patch, make && make install && restart asterisk. Your running asterisk instance is now 11.15.0 and value of PJDIR is still, in asterisk-11.15.0 src dir,

export PJDIR := /usr/src/asterisk-11.14.0/res/pjproject

Now remove src directory asterisk-11.14.0 and run make clean && ./configure && make => error appears as asterisk src dir 11.14.0 doesn't exist anymore.


By: Matt Jordan (mjordan) 2014-12-17 06:24:10.231-0600

This is a duplicate of ASTERISK-22480.