Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Nov 2002 00:59:01 +0100 (CET)
From:      Thierry Thomas <thierry@pompo.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/45176: devel/allegro: `allegro-config --libs` reports uninstalled lib.
Message-ID:  <20021109235901.48B50750D@graf.pompo.net>

next in thread | raw e-mail | index | archive | help

>Number:         45176
>Category:       ports
>Synopsis:       devel/allegro: `allegro-config --libs` reports uninstalled lib.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 09 16:10:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 4.7-RC i386
>Organization:
Kabbale Eros
>Environment:
Current ports tree.

	
>Description:
	To build a program with allegro, you may run allegro-config to locate
	its includes and libs, but `allegro-config --libs' reports alleg-4.0.2,
	which does not exist.

>How-To-Repeat:
	. Install the port devel/allegro
	. run `allegro-config --libs`
	  => it reports:
	  -L/usr/local/lib -L/usr/X11R6/lib -s -Wl,-export-dynamic -pthread -lalleg-4.0.2 -lalleg_unsharable
	. make a program with this line => it will abort:
	  /usr/libexec/elf/ld: cannot find -lalleg-4.0.2
	. you can check with `ldconfig -r|grep alleg`:
	  410:-lalleg.4 => /usr/local/lib/liballeg.so.4

>Fix:

	I don't know: either patch /usr/local/bin/allegro-config, or add an
	alias alleg.4 / alleg-4.0.2. Patching allegro-config should be better.

--- misc/allegro-config.in.orig Wed Jul  3 22:19:19 2002
+++ misc/allegro-config.in      Sat Nov  9 22:27:50 2002
@@ -10,6 +10,7 @@
 #  This is heavily based on a similar script from GTK.
 
 version=4.0.2
+major=4
 
 prefix=@prefix@
 exec_prefix=$prefix
@@ -157,7 +158,7 @@
    if test "$static_libs" = "yes"; then
       echo $libdirs $allegro_ldflags -l${lib_type} $allegro_libs
    else
-      echo $libdirs $allegro_ldflags -l${lib_type}-${version} -l${lib_type}_unsharable
+      echo $libdirs $allegro_ldflags -l${lib_type}-${major} -l${lib_type}_unsharable
    fi
 fi
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021109235901.48B50750D>