Bug 29963

Summary: Configure fails for most kde-2 ports.
Product: Ports & Packages Reporter: Mike Edenfield <kutulu>
Component: Individual Port(s)Assignee: freebsd-kde (group) <kde>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Mike Edenfield 2001-08-22 21:00:00 UTC
When building any of the kde2 ports (ie, kde2 or it's dependancies like kdelibs2 or kdebase2, the configure process to locate 
libXext fails.  

The problem results from the fact that the make process is setting the LIBS variable to include /usr/X11R6/lib 
(for example) before calling configure.  The configure step to locate X's libraries includes $LIBS in the link command, which 
leads configure to beleive that the X libraries are in a standard location (it claims /usr/lib).

However, when the configure step to locate libXext is run, LIBS is temporarily cleared out, removing the -L flag pointing to 
the X libraries, and the attempt to locate libXext fails.

Fix: Immediate workaround was to make patch, then edit the configure script for any affected packages to force the X libraries to 
be found in the correct place.  Example, from kdelibs2:


An actual fix will probably involve either modifying LIBS as set before running ./configure to not include the X libraries, or 
change the autoconf macro to locate libXext so that it saves the -L flag.  Changing the make process for the ports system is a 
bit beyond my current skill level. :)--52DaaQkIjdKaY9aTu0ZLV5yHRFaLvtZlqRxckGVgDzmuu7SC
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

*** configure.old       Wed Aug 22 14:49:53 2001
--- configure   Wed Aug 22 14:50:05 2001
***************
*** 5,7 ****
  # We can link X programs with no special library path.
! ac_x_libraries=
  else
--- 5,7 ----
  # We can link X programs with no special library path.
! ac_x_libraries=/usr/X11R6/lib
  else
How-To-Repeat: Attempt to make in kdelibs2.  (kdebase2 also failes, I assume any kde2 package that requires libXext will fail similarly).
Comment 1 Ying-Chieh Liao freebsd_committer freebsd_triage 2001-08-27 12:38:05 UTC
Responsible Changed
From-To: freebsd-ports->kde

over to maintainer
Comment 2 Dmitry Sivachenko freebsd_committer freebsd_triage 2001-11-13 08:50:37 UTC
State Changed
From-To: open->closed

Please be sure you did not define X11BASE env variable. 
make -V X11BASE in any of your port directory should produce '/usr/X11R6'. 
This problem does not exist on fresh 4.4 system.