Menu

#17 2.3.0 build fails when 2.2.2 is installed

v1.0_(example)
closed
None
5
2012-07-28
2012-01-03
No

Compiling qpdf 2.3.0 fails when qpdf 2.2.2 is installed. This was reported to the MacPorts project here:

https://trac.macports.org/ticket/32095#comment:7

Here is the patch we are using to correct this problem:

https://trac.macports.org/browser/trunk/dports/textproc/qpdf/files/patch-make-libtool.mk.diff?rev=88461

We recommend you apply this patch to your sources.

Discussion

  • Jay Berkenbilt

    Jay Berkenbilt - 2012-04-07

    Sorry for the long delay in responding to this. I appreciate this patch and will include it in the next version of qpdf, unless it causes some problem. At a glance, I don't understand why changing the order of the arguments should have any effect, but I'll study it more closely including trying to build and test my current trunk while 2.2.2 is installed on my system.

     
  • Ryan Carsten Schmidt

    Explanation of why changing the order fixes the problem: CPPFLAGS is traditionally where a user or package management system puts flags like "-I/somewhere/include", and that is what MacPorts does. Similarly, LDFLAGS is typically where flags like "-L/somewhere/lib" will appear. If /somewhere/include and /somewhere/lib contain an installed copy of qpdf 2.2.2, then building qpdf 2.3.0 with the above CPPFLAGS and LDFLAGS will fail, as shown in our bug report linked to above, because the old 2.2.2 headers and libraries will be found in preference to the new 2.3.0 ones. The fix is to make sure CPPFLAGS and LDFLAGS appear near the end of the compile lines, after all of your own -I and -L flags.

     
  • Jay Berkenbilt

    Jay Berkenbilt - 2012-06-22

    I have included your patch. It will be in the next version of qpdf. Your explanation makes perfect sense. The qpdf source code is now on github (qpdf/qpdf). I will be pushing this change this evening.

     
  • Jay Berkenbilt

    Jay Berkenbilt - 2012-07-28

    I will be releasing qpdf 3.0 within the next week. It includes this change, so I will go ahead and close this issue.

    • status: open --> closed
    • milestone: --> v1.0_(example)
     

Anonymous
Anonymous

Add attachments
Cancel