bugDDD - Bugs: bug #66186, FreeBSD configure/Makefile defect

 
 

bug #66186: FreeBSD configure/Makefile defect

Submitter:  Matlib <matlib>
Submitted:  Sat 07 Sep 2024 08:55:30 PM UTC
   
 
Category:  Build Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Release:  3.4.1
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Wed 11 Sep 2024 04:30:40 PM UTC, comment #5: 

A corrected patch is committed in revision 7509. Additionally #ifdef HAVE_FREETYPE" was replaced by "#if HAVE_FREETYPE" to prevent potential problems when compiling without the FreeType libraries.

Stefan Eickeler <eickeler>
Group administrator
Tue 10 Sep 2024 08:34:38 PM UTC, comment #4: 

Also fixes invalid content of $XFT_INCLUDE if the directory was specified with --with-freetype-includes.


Index: configure.ac
===================================================================
--- configure.ac    (revision 7508)
+++ configure.ac    (working copy)
@@ -763,8 +763,14 @@
       fi
     ])
 fi
-XFT_INCLUDE=$freetype_includes
-if test $XFT_INCLUDE; then AC_MSG_RESULT([yes]); fi
+if test "X$freetype_includes" = "Xno"; then
+  AC_MSG_RESULT([no])
+else
+  AC_MSG_RESULT([yes])
+  if test -n "$freetype_includes"; then
+    XFT_INCLUDE=-I$freetype_includes
+  fi
+fi
 dnl
 dnl Search for Freetype library -lXft
 dnl


Matlib <matlib>
Tue 10 Sep 2024 07:23:26 PM UTC, comment #3: 

In configure.ac lines 761-763 there is a condition to check whether a hardcoded path /usr/include/freetype2 exists and does nothing otherwise leaving $freetype_includes set to "no". That satisfies the test and breaks the Makefile.

Matlib <matlib>
Sun 08 Sep 2024 09:44:07 PM UTC, comment #2: 

I managed to narrow down the problem to that variable. I believe the problem is somewhere in configure.in.

I just hacked the ddd/Makefile for the moment to be able to compile it.

Matlib <matlib>
Sun 08 Sep 2024 06:56:03 PM UTC, comment #1: 

It is unclear whether you are only describing the problem or whether you also have a solution. If you have a solution, please provide us with a patch file that we can test.

Stefan Eickeler <eickeler>
Group administrator
Sat 07 Sep 2024 08:55:30 PM UTC, original submission:  

XFT_INCLUDE is set to "no" which causes compilation error.


# Freetype2 headers
XFTINCLUDE = no


It's sufficient to clear the variable.




Additionally if there are multiple gcc's installed then it fails to find the correct lib dir and the resulting binary crashes with something like:


ld-elf.so.1: /usr/local/lib/gcc10/libstdc++.so.6: version GLIBCXX_3.4.32 required by /usr/home/matlib/install/ddd-3.4.1/ddd/ddd not found


And also it tries to build ddd.info even when info is not available. This should be optional really. It's suffitient to clear the INFO_DEPS variable.

Matlib <matlib>

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by eickeler (Posted a comment)
  • -email is unavailable- added by matlib (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16-a7ba.
    Corresponding source code