cvs commit: ports/mail/sylpheed-claws Makefile distinfo

Ion-Mihai Tetcu itetcu at people.tecnik93.com
Sun Feb 13 21:56:24 GMT 2005


On Sun, 13 Feb 2005 11:26:58 +0100
Alexander Leidinger <Alexander at Leidinger.net> wrote:

> On Sun, 13 Feb 2005 11:50:41 +0200
> Ion-Mihai Tetcu <itetcu at people.tecnik93.com> wrote:
> 
> > When built with:
> >         'mail/sylpheed-claws' => [
> >                 '-DWITH_PIXBUF',
> >                 '-DWITH_GPGME',
> >                 '-DWITH_COMPFACE',
> >                 '-DWITH_JCONV',
> >                 '-DWITH_ASPELL',
> >                 '-DWITHOUT_THEMES',
> >         ],
> > 
> > the pkg-plist is not correct::
> 
> > tar: lib/sylpheed-claws/plugins/clamav_plugin.so: Could not stat: No such file or directory
> > tar: lib/sylpheed-claws/plugins/clamav_plugin_gtk.so: Could not stat: No such file or directory
> 
> The Makefile contains:
> ---snip---
> .if exists(${LOCALBASE}/include/clamav.h)
> WITH_CLAMAV=            yes 
> .endif
> 
> .if defined(WITH_CLAMAV) || defined(WITH_ALL)
> PLIST_SUB+=             CLAM_PLUG=""
> BUILD_DEPENDS=          ${LOCALBASE}/sbin/clamd:${PORTSDIR}/security/clamav
> .else
> CONFIGURE_ARGS+=        --disable-clamav
> PLIST_SUB+=             CLAM_PLUG="@comment "
> .endif
> ---snip---
> 
> I don't see how this can result in such an error. I don' use clamav, and
> I haven't seen a warning from pkg_deinstall in my tests...
> 
> Any ideas?

De-installed, cleaned by hand to be sure, reinstalled:

 > pkg_info -L sylph\* | grep 'lib/sylpheed-claws/plugins'
/usr/X11R6/lib/sylpheed-claws/plugins/dillo_viewer.so
/usr/X11R6/lib/sylpheed-claws/plugins/trayicon.so
/usr/X11R6/lib/sylpheed-claws/plugins/clamav_plugin.so
/usr/X11R6/lib/sylpheed-claws/plugins/clamav_plugin_gtk.so
/usr/X11R6/lib/sylpheed-claws/plugins/image_viewer.so
/usr/X11R6/lib/sylpheed-claws/plugins/pgpmime.so

 > ls -1 /usr/X11R6/lib/sylpheed-claws/plugins/
dillo_viewer.so
image_viewer.so
pgpmime.so
trayicon.so

So I figured that you test for clamav.h and it is there and the
pkg_plist contains clamav* but the .so is not installed. So:

 # make -DWITH_PIXBUF -DWITH_GPGME -DWITH_COMPFACE -DWITH_JCONV -DWITH_ASPELL -DWITHOUT_THEMES extract configure
===>   sylpheed-claws-1.0.1 depends on file: /usr/local/sbin/clamd - found
 [ ... ]
checking for cl_scanfile in -lclamav... no
checking clamav.h usability... yes
checking clamav.h presence... yes
checking for clamav.h... yes
configure: clamav library not found, will not build clamav plugin
configure: creating ./config.status
sylpheed-claws 1.0.1
 [ ... ]
Plugins       : dillo-viewer image-viewer(gdk-pixbuf) pgpmime trayicon


And here's a config.log snipped:

...................
3070:configure:31996: checking for cl_scanfile in -lclamav
3071:configure:32026: cc -o conftest -O2 -pipe -march=athlon-xp  -I/usr/local/include  conftest.c -
lclamav  -lxpg4 -L/usr/X11R6/lib -L/usr/local/lib >&5
3072:/usr/local/lib/libclamav.so: undefined reference to `pthread_cleanup_pop'
3073:/usr/local/lib/libclamav.so: undefined reference to `pthread_cleanup_push'
3074-configure:32032: $? = 1
3075-configure: failed program was:
3076-| /* confdefs.h.  */
3077-|
3078-| #define PACKAGE_NAME ""
3079-| #define PACKAGE_TARNAME ""
3080-| #define PACKAGE_VERSION ""
3081-| #define PACKAGE_STRING ""
3082-| #define PACKAGE_BUGREPORT ""
3083-| #define CLAWS 1
3084-| #define YYTEXT_POINTER 1
3085-| #define STDC_HEADERS 1
3086-| #define HAVE_SYS_TYPES_H 1
3087-| #define HAVE_SYS_STAT_H 1
3088-| #define HAVE_STDLIB_H 1
3089-| #define HAVE_STRING_H 1
3090-| #define HAVE_MEMORY_H 1
3091-| #define HAVE_STRINGS_H 1
3092-| #define HAVE_INTTYPES_H 1
3093-| #define HAVE_STDINT_H 1
3094-| #define HAVE_UNISTD_H 1
3095-| #define HAVE_DLFCN_H 1
3096-| #ifdef __cplusplus
3097-| extern "C" void std::exit (int) throw (); using std::exit;
3098-| #endif
3099-| #define HAVE_ICONV 1
3100-| #define ICONV_CONST const
3101-| #define HAVE_ALLOCA 1
3102-| #define HAVE_STDLIB_H 1
3103-| #define HAVE_UNISTD_H 1
3104-| #define HAVE_GETPAGESIZE 1
3105-| #define HAVE_MMAP 1
3106-| #define INTDIV0_RAISES_SIGFPE 1
3107-| #define HAVE_INTTYPES_H_WITH_UINTMAX 1
3108-| #define HAVE_STDINT_H_WITH_UINTMAX 1
3109-| #define HAVE_UNSIGNED_LONG_LONG 1
3110-| #define HAVE_UINTMAX_T 1
3111-| #define HAVE_INTTYPES_H 1
3112-| #define HAVE_LIMITS_H 1
3113-| #define HAVE_LOCALE_H 1
3114-| #define HAVE_NL_TYPES_H 1
3115-| #define HAVE_STDDEF_H 1
3116-| #define HAVE_STDLIB_H 1
3117-| #define HAVE_STRING_H 1
3118-| #define HAVE_UNISTD_H 1
3119-| #define HAVE_SYS_PARAM_H 1
3120-| #define HAVE_FEOF_UNLOCKED 1
3121-| #define HAVE_GETC_UNLOCKED 1
3122-| #define HAVE_GETCWD 1
3123-| #define HAVE_GETEGID 1
3124-| #define HAVE_GETEUID 1
3125-| #define HAVE_GETGID 1
3126-| #define HAVE_GETUID 1
3127-| #define HAVE_MUNMAP 1
3128-| #define HAVE_PUTENV 1
3129-| #define HAVE_SETENV 1
3130-| #define HAVE_SETLOCALE 1
3131-| #define HAVE_STPCPY 1
3132-| #define HAVE_STRCASECMP 1
3133-| #define HAVE_STRDUP 1
3134-| #define HAVE_STRTOUL 1
3135-| #define HAVE_TSEARCH 1
3136-| #define HAVE_ICONV 1
3137-| #define ICONV_CONST const
3138-| #define HAVE_LANGINFO_CODESET 1
3139-| #define HAVE_LC_MESSAGES 1
3140-| #define ENABLE_NLS 1
3141-| #define HAVE_GETTEXT 1
3142-| #define HAVE_DCGETTEXT 1
3143-| #define PACKAGE_DATA_DIR "/usr/X11R6/share/sylpheed-claws"
3144-| #define HAVE_LIBXPG4 1
3145-| #define HAVE_DIRENT_D_TYPE 1
3146-| #define HAVE_DIRENT_H 1
3147-| #define STDC_HEADERS 1
3148-| #define HAVE_SYS_WAIT_H 1
3149-| #define HAVE_FCNTL_H 1
3150-| #define HAVE_SYS_FILE_H 1
3151-| #define HAVE_UNISTD_H 1
3152-| #define HAVE_PATHS_H 1
3153-| #define HAVE_SYS_PARAM_H 1
3154-| #define HAVE_SYS_UTSNAME_H 1
3155-| #define HAVE_SYS_SELECT_H 1
3156-| #define HAVE_WCHAR_H 1
3157-| #define HAVE_WCTYPE_H 1
3158-| #define HAVE_LOCALE_H 1
3159-| #define SIZEOF_UNSIGNED_SHORT 2
3160-| #define SIZEOF_UNSIGNED_INT 4
3161-| #define SIZEOF_UNSIGNED_LONG 4
3162-| #define HAVE_ALLOCA 1
3163-| #define HAVE_GETHOSTNAME 1
3164-| #define HAVE_MKDIR 1
3165-| #define HAVE_MKTIME 1
3166-| #define HAVE_SOCKET 1
3167-| #define HAVE_STRSTR 1
3168-| #define HAVE_STRCHR 1
3169-| #define HAVE_WCSSTR 1
3170-| #define HAVE_ISWALNUM 1
3171-| #define HAVE_ISWSPACE 1
3172-| #define HAVE_TOWLOWER 1
3173-| #define HAVE_WCSLEN 1
3174-| #define HAVE_WCSCPY 1
3175-| #define HAVE_WCSNCPY 1
3176-| #define HAVE_UNAME 1
3177-| #define HAVE_FLOCK 1
3178-| #define HAVE_LOCKF 1
3179-| #define HAVE_INET_ATON 1
3180-| #define HAVE_INET_ADDR 1
3181-| #define HAVE_FCHMOD 1
3182-| #define HAVE_MKSTEMP 1
3183-| #define INET6 1
3184-| #define USE_OPENSSL 1
3185-| #define CFG_RC_DIR ".sylpheed"
3186-| #define USE_XIM 1
3187-| #define ASPELL_PATH "/usr/local/share/aspell/"
3188-| #define USE_ASPELL 1
3189-| #define HAVE_LIBCOMPFACE 1
3190-| #define HAVE_PTHREAD_H 1
3191-| #define USE_PTHREAD 1
3192-| #define HAVE_STARTUP_NOTIFICATION 1
3193-| #define USE_GPGME 1
3194-| #define HAVE_GDK_PIXBUF 1
3195-| /* end confdefs.h.  */
3196-|
3197-| /* Override any gcc2 internal prototype to avoid an error.  */
3198-| #ifdef __cplusplus
3199-| extern "C"
3200-| #endif
3201-| /* We use char because int might match the return type of a gcc2
3202-|    builtin and then its argument prototype would still apply.  */
3203-| char cl_scanfile ();
3204-| int
3205-| main ()
3206-| {
3207-| cl_scanfile ();
3208-|   ;
3209-|   return 0;
3210-| }
3211-configure:32057: result: no
3212:configure:32079: checking clamav.h usability
3213-configure:32091: cc -c -O2 -pipe -march=athlon-xp  -I/usr/local/include conftest.c >&5
3214-configure:32097: $? = 0
3215-configure:32100: test -z                    || test ! -s conftest.err
3216-configure:32103: $? = 0
3217-configure:32106: test -s conftest.o
3218-configure:32109: $? = 0
3219-configure:32119: result: yes
3220:configure:32123: checking clamav.h presence
3221-configure:32133: cc -E  -I/usr/local/include conftest.c
3222-configure:32139: $? = 0
3223-configure:32159: result: yes
3224:configure:32194: checking for clamav.h
3225-configure:32201: result: yes
3226:configure:32221: clamav library not found, will not build clamav plugin
3227-configure:32425: creating ./config.status
....................................


-- 
IOnut
Unregistered ;) FreeBSD "user"




More information about the cvs-all mailing list