Date: 3 Jul 2002 14:47:38 -0000 From: Chris Shenton <cshenton@Palimpsest.it.hq.nasa.gov> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/40149: Latest everybuddy port breaks modules, totally unfunctional Message-ID: <20020703144738.97426.qmail@Palimpsest.it.hq.nasa.gov>
next in thread | raw e-mail | index | archive | help
>Number: 40149 >Category: ports >Synopsis: Latest everybuddy port breaks modules, totally unfunctional >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 03 07:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Chris Shenton >Release: FreeBSD 4.6-RC i386 >Organization: >Environment: System: FreeBSD Palimpsest.it.hq.nasa.gov 4.6-RC FreeBSD 4.6-RC #9: Mon Jun 3 16:34:00 EDT 2002 cshenton@Palimpsest.it.hq.nasa.gov:/usr/obj/usr/src/sys/Palimpsest i386 >Description: Everybuddy looks for modules (e.g. for AIM, ICQ) in /usr/X11R6/lib/everybuddy/. The port does install modules there, but everybuddy doesn't find them. Here's the dir: /usr/X11R6/lib/everybuddy/modules: used 2088 available 1440658 drwxr-xr-x 2 root wheel 512 Jul 3 09:58 . drwxr-xr-x 3 root wheel 512 Jul 3 09:58 .. -rwxr-xr-x 1 root wheel 56028 Jul 3 09:58 aim-toc.so -rwxr-xr-x 1 root wheel 13533 Jul 3 09:58 autotrans.so -rwxr-xr-x 1 root wheel 101314 Jul 3 09:58 icq.so [... the rest elided ...] It appears that it's only looking for files of extension ".la". Here's the code from work/src/plugin.c near line 152: /* Find names which end in .la, the expected module extension */ int select_module_entry(const struct dirent *dent) { int len=0; char *ext; len=strlen(dent->d_name); if(len<4) return(0); ext=(char *)dent->d_name; ext+=(len-3); eb_debug(DBG_CORE, "select_module_entry: %s[%s]\n", dent->d_name, ext); if(!strncmp(ext, ".la", 3)) return(1); return(0); } Since the modules the port installed end in .so, no legitimate modules are found, rendering everybuddy useless. >How-To-Repeat: Run everybuddy from a terminal, turn on debugging (in Tools) and watch the console output: plugin.c[255]:load_modules - >Entering plugin.c[152]:select_module_entry - select_module_entry: aim-toc.so[.so] plugin.c[152]:select_module_entry - select_module_entry: icq.so[.so] [...] plugin.c[152]:select_module_entry - select_module_entry: autotrans.so[.so] plugin.c[296]:load_modules - <No modules found in /usr/X11R6//lib/everybuddy/modules, returning. Note that the code doesn't tell you that the file found is NOT a valid module. >Fix: Unknown. I tried tweaking the code to allow it to return(1) when is saw the .so files instead of (Linux-specific) .la files, but that failed. I don't know why. This may be a Everybuddy problem rather than a port problem. I've tried to submit a report to their Bugzilla system but it seems a bit shakey. >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?20020703144738.97426.qmail>