[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    libaudiofile requires libm [AIX patch: AC_CHECK_LIB, KDE_CHECK_LIB can't find libaudiofile]
From:       Thiago Macieira <thiago.macieira () poli ! usp ! br>
Date:       2001-04-01 22:58:26
[Download RAW message or body]

Carsten Griwodz wrote:

> Hi !
> 
> Env: AIX 4.3.3, today's CVS head.
> 
> I noticed that arts' configure doesn't recognize libaudiofile although
> someone has made it compile on AIX. My impression is that this is more
> general.

Just using the same topic, but a different problem.

Running kdelibs configure on my system (Linux, with glibc 2.2) can't 
detect the presence of libaudiofile, even though it's there. The reason 
why it cannot be found is that the linking process returns an error that 
is not related to the presence or abscense of libaudiofile.

That happens because libaudiofile uses symbols from libm (math library), 
which needs to be named in the command-line after libaudiofile for the 
linking process to work -- or GNU ld will complain about unresolved 
symbols from libm to libc.

The following patch solves the problem, but I don't know how it should 
be implemented. Is libm a standard or a GNU libc library?

-- 
   Thiago Macieira - UFOT Registry number: 1001
  thiagom@mail.com talha@geocities.com
    ICQ UIN: 1967141  PGP: 0x8F2978D5 and 0xEA9037A5
      Registered Linux user #65028

13/392. You broke your little ships. -- Lily Sloane, Star Trek: First 
Contact

["arts_configure.diff" (text/plain)]

Index: configure.in.in
===================================================================
RCS file: /home/kde/kdelibs/arts/configure.in.in,v
retrieving revision 1.30
diff -u -3 -p -r1.30 configure.in.in
--- configure.in.in     2001/03/21 03:19:51     1.30
+++ configure.in.in     2001/04/01 22:50:45
@@ -45,7 +45,9 @@ AC_DEFUN(AC_CHECK_LIBAUDIOFILE,
       AC_DEFINE(HAVE_LIBAUDIOFILE, 1,
         [Define if you have libaudiofile (required for playing wavs with aRts)])
       arts_audiolib_found=yes
-    ])
+    ],
+    /bin/true,
+    -lm)
   ])
   AM_CONDITIONAL(HAVE_WAVSUPPORT,  test "x$arts_audiolib_found" = "xyes")
   AC_SUBST(LIBAUDIOFILE)

>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic