Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Oct 2017 16:58:32 +0800
From:      blubee blubeeme <gurenchan@gmail.com>
To:        Baptiste Daroussin <bapt@freebsd.org>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: gnu ltdl and FreeBSD
Message-ID:  <CALM2mEmkO9%2B1dzQ_GK9YW7Rcc7rHFQd4wToF_hSU3nAc0NAgJQ@mail.gmail.com>
In-Reply-To: <20171016085009.exrw2xz4mpfp5s7h@ivaldir.net>
References:  <CALM2mE=Pdqrv_2k7KVTQruZ8cFkQpypvy6Qn5OYfcWR7cv5mJA@mail.gmail.com> <20171016080724.4byyskmlbeloxhmt@ivaldir.net> <CALM2mEme59C4yngg618527OgHa1Bbraw8RiM_e6Z%2B8Z05sYN=w@mail.gmail.com> <20171016085009.exrw2xz4mpfp5s7h@ivaldir.net>

next in thread | previous in thread | raw e-mail | index | archive | help
I've tried passing CONFIGURE_ARGS or removing it, both gives the same error
below.
LIB_DEPENDS=     libltdl.so:devel/libltdl
GNU_CONFIGURE=   yes
CONFIGURE_ARGS= --enable-ltdl-install
USES=            autoreconf gmake libtool

the config.log file is there and it's pretty long as well I am looking
through it but I am not sure what exactly to look for.

Here's a pastebin with that config.log file: https://pastebin.com/NjkgBTeM

both lt_dlinit and lt_dlopen are being used, grep output below.
====================================================================================================
me@blubee:/usr/ports/graphics/utsushi % grep -rn "lt_dlinit"
work/utsushi-c590592/
work/utsushi-c590592/lib/run-time.cpp:370:  lt_dlinit ();
work/utsushi-c590592/drivers/esci/interpreter.cpp:81:  lt_dlinit ();
work/utsushi-c590592/upstream/aclocal/ltdl.m4:152:  AC_CHECK_LIB([ltdl],
[lt_dlinit], [lt_lib_ltdl=yes])
work/utsushi-c590592/upstream/ltdl/ltdl.h:53:LT_SCOPE int    lt_dlinit
(void);
work/utsushi-c590592/upstream/ltdl/ltdl.c:226:lt_dlinit (void)
me@blubee:/usr/ports/graphics/utsushi % grep -rn "lt_dlopen"
work/utsushi-c590592/
work/utsushi-c590592/configure:19663: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
work/utsushi-c590592/configure:19684:    LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
work/utsushi-c590592/configure:19727: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
work/utsushi-c590592/configure:19760: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
work/utsushi-c590592/configure:19802:    LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
work/utsushi-c590592/configure:19818: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
work/utsushi-c590592/configure:19823:  LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
work/utsushi-c590592/configure:19838:  LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
work/utsushi-c590592/configure:19882: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
work/utsushi-c590592/configure.libtool.bak:19663: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
work/utsushi-c590592/configure.libtool.bak:19684:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
work/utsushi-c590592/configure.libtool.bak:19727: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
work/utsushi-c590592/configure.libtool.bak:19760: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
work/utsushi-c590592/configure.libtool.bak:19802:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
work/utsushi-c590592/configure.libtool.bak:19818: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
work/utsushi-c590592/configure.libtool.bak:19823:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
work/utsushi-c590592/configure.libtool.bak:19838:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
work/utsushi-c590592/configure.libtool.bak:19882: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
work/utsushi-c590592/lib/scanner.cpp:81:  handle = lt_dlopenadvise
(plugin.c_str (), advice);
work/utsushi-c590592/lib/scanner.cpp:114:      handle = lt_dlopenext
(p.string ().c_str ());
work/utsushi-c590592/drivers/esci/interpreter.cpp:157:  lt_dlhandle handle
= lt_dlopenext (interpreter.c_str ());
work/utsushi-c590592/autom4te.cache/output.0:19663: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
work/utsushi-c590592/autom4te.cache/output.0:19684:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
work/utsushi-c590592/autom4te.cache/output.0:19727: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
work/utsushi-c590592/autom4te.cache/output.0:19760: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
work/utsushi-c590592/autom4te.cache/output.0:19802:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
work/utsushi-c590592/autom4te.cache/output.0:19818: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
work/utsushi-c590592/autom4te.cache/output.0:19823:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
work/utsushi-c590592/autom4te.cache/output.0:19838:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
work/utsushi-c590592/autom4te.cache/output.0:19882: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
work/utsushi-c590592/autom4te.cache/traces.2:5562: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
work/utsushi-c590592/autom4te.cache/traces.2:5570:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
work/utsushi-c590592/autom4te.cache/traces.2:5575: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])])
work/utsushi-c590592/autom4te.cache/traces.2:5589: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"],
work/utsushi-c590592/autom4te.cache/traces.2:5593:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
work/utsushi-c590592/autom4te.cache/traces.2:5603: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"])
work/utsushi-c590592/autom4te.cache/traces.2:5606:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
work/utsushi-c590592/autom4te.cache/traces.2:5610:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
work/utsushi-c590592/autom4te.cache/traces.2:5617: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"])
work/utsushi-c590592/autom4te.cache/traces.0:2198: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
work/utsushi-c590592/autom4te.cache/traces.0:2206:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
work/utsushi-c590592/autom4te.cache/traces.0:2211: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])])
work/utsushi-c590592/autom4te.cache/traces.0:2225: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"],
work/utsushi-c590592/autom4te.cache/traces.0:2229:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
work/utsushi-c590592/autom4te.cache/traces.0:2239: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"])
work/utsushi-c590592/autom4te.cache/traces.0:2242:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
work/utsushi-c590592/autom4te.cache/traces.0:2246:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
work/utsushi-c590592/autom4te.cache/traces.0:2253: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"])
work/utsushi-c590592/autom4te.cache/output.1:19663: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
work/utsushi-c590592/autom4te.cache/output.1:19684:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
work/utsushi-c590592/autom4te.cache/output.1:19727: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
work/utsushi-c590592/autom4te.cache/output.1:19760: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
work/utsushi-c590592/autom4te.cache/output.1:19802:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
work/utsushi-c590592/autom4te.cache/output.1:19818: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
work/utsushi-c590592/autom4te.cache/output.1:19823:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
work/utsushi-c590592/autom4te.cache/output.1:19838:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
work/utsushi-c590592/autom4te.cache/output.1:19882: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
work/utsushi-c590592/autom4te.cache/output.2:19663: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
work/utsushi-c590592/autom4te.cache/output.2:19684:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
work/utsushi-c590592/autom4te.cache/output.2:19727: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
work/utsushi-c590592/autom4te.cache/output.2:19760: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
work/utsushi-c590592/autom4te.cache/output.2:19802:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
work/utsushi-c590592/autom4te.cache/output.2:19818: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
work/utsushi-c590592/autom4te.cache/output.2:19823:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
work/utsushi-c590592/autom4te.cache/output.2:19838:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
work/utsushi-c590592/autom4te.cache/output.2:19882: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
work/utsushi-c590592/libtool:8530:      # Otherwise, use the dlname, so
that lt_dlopen finds it.
work/utsushi-c590592/upstream/aclocal/ltdl.m4:200:
 _LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir])],
work/utsushi-c590592/upstream/aclocal/ltdl.m4:201:  [nonrecursive],
[_LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir;
lt_libobj_prefix=$lt_ltdl_dir/])],
work/utsushi-c590592/upstream/aclocal/ltdl.m4:669: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
work/utsushi-c590592/upstream/aclocal/ltdl.m4:677:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
work/utsushi-c590592/upstream/aclocal/ltdl.m4:682: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])])
work/utsushi-c590592/upstream/aclocal/ltdl.m4:696: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"],
work/utsushi-c590592/upstream/aclocal/ltdl.m4:700:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
work/utsushi-c590592/upstream/aclocal/ltdl.m4:710: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"])
work/utsushi-c590592/upstream/aclocal/ltdl.m4:713:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
work/utsushi-c590592/upstream/aclocal/ltdl.m4:717:
 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
work/utsushi-c590592/upstream/aclocal/ltdl.m4:724: LT_DLLOADERS="$LT_DLLOADERS
${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"])
work/utsushi-c590592/upstream/ltmain.sh.bak:8021:      # Otherwise, use the
dlname, so that lt_dlopen finds it.
work/utsushi-c590592/upstream/ltmain.sh:8021:      # Otherwise, use the
dlname, so that lt_dlopen finds it.
work/utsushi-c590592/upstream/ltdl/loaders/dlopen.c:70:      vtable->name =
"lt_dlopen";
work/utsushi-c590592/upstream/ltdl/loaders/preopen.c:366:  lt_dlhandle
handle = lt_dlopen (symbol->name);
work/utsushi-c590592/upstream/ltdl/ltdl.h:77:LT_SCOPE lt_dlhandle
lt_dlopen (const
char *filename);
work/utsushi-c590592/upstream/ltdl/ltdl.h:78:LT_SCOPE lt_dlhandle
lt_dlopenext (const char *filename);
work/utsushi-c590592/upstream/ltdl/ltdl.h:79:LT_SCOPE lt_dlhandle
lt_dlopenadvise (const char *filename,
work/utsushi-c590592/upstream/ltdl/ltdl.h:134:  int ref_count; /* number of
times lt_dlopened minus
work/utsushi-c590592/upstream/ltdl/ltdl.c:243: can use _them_ to lt_dlopen
its own modules.  */
work/utsushi-c590592/upstream/ltdl/ltdl.c:953:  cur->deplibs[j] =
lt_dlopenext(names[depcount-1-i]);
work/utsushi-c590592/upstream/ltdl/ltdl.c:1624:lt_dlopen (const char
*filename)
work/utsushi-c590592/upstream/ltdl/ltdl.c:1626:  return lt_dlopenadvise
(filename, NULL);
work/utsushi-c590592/upstream/ltdl/ltdl.c:1635:lt_dlopenext (const char
*filename)
work/utsushi-c590592/upstream/ltdl/ltdl.c:1641:    handle = lt_dlopenadvise
(filename, advise);
work/utsushi-c590592/upstream/ltdl/ltdl.c:1649:lt_dlopenadvise (const char
*filename, lt_dladvise advise)
work/utsushi-c590592/upstream/ltdl/ltdl.c:1899:   passing to lt_dlopenext.
The extensions are stripped so that
work/utsushi-c590592/upstream/ltdl/ltdl.c:1902:   then the same directories
that lt_dlopen would search are examined.  */



It's still pretty much the same error
gmake[4]: Entering directory
'/usr/ports/graphics/utsushi/work/utsushi-c590592/upstream/ltdl'
/bin/sh ../../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H
-DLTDLOPEN=libltdl -DLT_CONFIG_H='<config.h>' -DLTDL -I. -I. -Ilibltdl
-I./libltdl -I/usr/local/include -I/usr/local/include  -O2 -pipe
 -fstack-protector -fno-strict-aliasing -MT loaders/libltdl_la-preopen.lo
-MD -MP -MF loaders/.deps/libltdl_la-preopen.Tpo -c -o
loaders/libltdl_la-preopen.lo `test -f 'loaders/preopen.c' || echo
'./'`loaders/preopen.c
libtool: compile:  cc -DHAVE_CONFIG_H -DLTDLOPEN=libltdl
"-DLT_CONFIG_H=<config.h>" -DLTDL -I. -I. -Ilibltdl -I./libltdl
-I/usr/local/include -I/usr/local/include -O2 -pipe -fstack-protector
-fno-strict-aliasing -MT loaders/libltdl_la-preopen.lo -MD -MP -MF
loaders/.deps/libltdl_la-preopen.Tpo -c loaders/preopen.c  -fPIC -DPIC -o
loaders/.libs/libltdl_la-preopen.o
In file included from loaders/preopen.c:32:
libltdl/lt__private.h:35:12: fatal error: 'config.h' file not found
#  include LT_CONFIG_H
           ^
<command line>:3:21: note: expanded from here
#define LT_CONFIG_H <config.h>


On Mon, Oct 16, 2017 at 4:50 PM, Baptiste Daroussin <bapt@freebsd.org>
wrote:

> On Mon, Oct 16, 2017 at 08:25:57AM +0000, blubee blubeeme wrote:
> > This is what the Makefile looks like, the file still fails:
> >
> > LICENSE=          GPLv3+
> > BUILD_DEPENDS=  gsed:textproc/gsed
> >
> > BINARY_ALIAS=    sed=gsed
> >
> > LIB_DEPENDS=     libltdl.so:devel/libltdl
> > GNU_CONFIGURE=   yes
> > USES=            autoreconf gmake
> >
> > same compile error.
> > That config.h should be auto generated and setup by autoreconf but its
> not.
>
> The config.h is not setup by autoreconf neither generated by autoreconf.
> the run
> of the configure script should generated it except if it fails. Have you
> read
> the config.log (very long and verbose script that explains what happened -
> including failures - during the run of the configure script)
>
> Also you should add "libtool" to your USES line
>
> Best regards,
> Bapt
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALM2mEmkO9%2B1dzQ_GK9YW7Rcc7rHFQd4wToF_hSU3nAc0NAgJQ>