configure error: Cannot find ltdl.h

David Brock david at tubits.com
Fri Nov 18 12:47:59 EST 2005


Good suggestion (I hadn't though it might be that simple).
I'm using tcsh, so my syntax was slightly different, but it failed the 
same way, *however*, when I jumped into tcsh, in case there were some 
other ENV variables that might be fiddling with my success, I saw a 
different error result:

$ CFLAGS='-I /usr/local/include' LDFLAGS='-L /usr/local/lib' ./configure 
--enable-error-on-warning --enable-compile-warnings 
--prefix=/home/dmbrock/bin --enable-debug --enable-ofx

{snip}

checking ltdl.h usability... yes
checking ltdl.h presence... no
configure: WARNING: ltdl.h: accepted by the compiler, rejected by the 
preprocessor!
configure: WARNING: ltdl.h: proceeding with the compiler's result
checking for ltdl.h... yes
./configure.lineno: 21356: Syntax error: word unexpected (expecting ")")

{end}

Of course, that line number in that file is whitespace.

Arg!


Derek Atkins wrote:

> Well, you might just need to say:
>
> CFLAGS='-I /usr/local/include" LDFLAGS="-L /usr/local/lib" ./configure 
> ...
>
> -derek
>
> Quoting David Brock <david at tubits.com>:
>
>> Derek:
>>
>> It seems to say pretty much the same thing, in more detail.  "ltdl.h 
>> not found".  Below are lots of bits of the config.log file.  
>> Hopefully this can tell more to you than it does to me.  I've snipped 
>> a lot, but it looks like the pertinent parts are (line numbers are 
>> included, showing the extent of the snips), are below.  This is 
>> everything around the ltdl.h messages, including  the contents of the 
>> file, it seems.
>>
>> I had a problem with the presence of automake, autoheaders, autoconf, 
>> and aclocal, so the "missing --run" lines in the "Output Variables" 
>> section concerned me, so I included it.  The problem with 
>> auto[conf|make|headers] and aclocal were resolved by installing the 
>> gnu- versions of those programs, as the FreeBSD ports tree versions 
>> are more prone to causing problems with compiles taking place outisde 
>> the FBSD ports tree, as this is.  Installing the gnu-versions of 
>> those prots addressed the issue, as expected, yet these "missing" 
>> lines still appear.  Maybe a red herring...
>>
>> I appreciate any insight.
>>
>> ;-David
>>
>>
>> {snip}
>>   1316 configure:21127: checking if scanf supports %lld conversions
>>   1317 configure:21165: gcc -o conftest -g -O2   conftest.c  >&5
>>   1318 configure:21168: $? = 0
>>   1319 configure:21170: ./conftest
>>   1320 configure:21173: $? = 0
>>   1321 configure:21187: result: yes
>>   1322 configure:21221: checking ltdl.h usability
>>   1323 configure:21233: gcc -c -g -O2  conftest.c >&5
>>   1324 conftest.c:80:18: ltdl.h: No such file or directory
>>   1325 configure:21239: $? = 1
>>   1326 configure: failed program was:   1327 | /* confdefs.h.  */
>>   1328 |
>>   1329 | #define PACKAGE_NAME ""
>>   1330 | #define PACKAGE_TARNAME ""
>>   1331 | #define PACKAGE_VERSION ""
>>   1332 | #define PACKAGE_STRING ""
>>   1333 | #define PACKAGE_BUGREPORT ""
>>   1334 | #define PACKAGE "gnucash"
>>   1335 | #define VERSION "1.9.0"
>>   1336 | #define GNUCASH_MAJOR_VERSION 1
>>   1337 | #define GNUCASH_MINOR_VERSION 9
>>   1338 | #define GNUCASH_MICRO_VERSION 0
>>   1339 | #define GETTEXT_PACKAGE "gnucash"
>>   1340 | #define STDC_HEADERS 1
>>   1341 | #define HAVE_SYS_TYPES_H 1
>>   1342 | #define HAVE_SYS_STAT_H 1
>>   1343 | #define HAVE_STDLIB_H 1    1344 | #define HAVE_STRING_H 1
>>   1345 | #define HAVE_MEMORY_H 1
>>   1346 | #define HAVE_STRINGS_H 1
>>   1347 | #define HAVE_INTTYPES_H 1    1348 | #define HAVE_STDINT_H 1
>>   1349 | #define HAVE_UNISTD_H 1
>>   1350 | #define HAVE_DLFCN_H 1
>>   1351 | #ifdef __cplusplus
>>   1352 | extern "C" void std::exit (int) throw (); using std::exit;
>>   1353 | #endif
>>   1354 | #define STDC_HEADERS 1
>>   1355 | #define HAVE_LIMITS_H 1
>>   1356 | #define HAVE_STPCPY 1
>>   1357 | #define HAVE_MEMCPY 1
>>   1358 | #define HAVE_TIMEGM 1
>>   1359 | #define HAVE_TOWUPPER 1
>>   1360 | #define HAVE_SETENV 1
>>   1361 | #define HAVE_IEEEFP_H 1
>>   1362 | #define HAVE_RANDOM 1
>>   1363 | #define HAVE_DRAND48 1
>>   1364 | #define HAVE_MEMMOVE 1
>>   1365 | #define HAVE_MKDTEMP 1
>>   1366 | #define HAVE_UNAME 1
>>   1367 | #define HAVE_TIMES 1
>>   1368 | #define HAVE_SYSCONF 1
>>   1369 | #define HAVE_STRUCT_TM_GMTOFF 1
>>   1370 | #define HAVE_SCANF_LLD 1
>>   1371 | /* end confdefs.h.  */
>>   1372 | #include <stdio.h>
>>   1373 | #if HAVE_SYS_TYPES_H
>>   1374 | # include <sys/types.h>
>>   1375 | #endif
>>   1376 | #if HAVE_SYS_STAT_H
>>   1377 | # include <sys/stat.h>
>>   1378 | #endif
>>   1379 | #if STDC_HEADERS
>>   1380 | # include <stdlib.h>
>>   1381 | # include <stddef.h>
>>   1382 | #else
>>   1383 | # if HAVE_STDLIB_H
>>   1384 | #  include <stdlib.h>
>>   1385 | # endif
>>   1386 | #endif
>>   1387 | #if HAVE_STRING_H
>>   1388 | # if !STDC_HEADERS && HAVE_MEMORY_H
>>   1389 | #  include <memory.h>
>>   1390 | # endif
>>   1391 | # include <string.h>
>>   1392 | #endif
>>   1393 | #if HAVE_STRINGS_H
>>   1394 | # include <strings.h>   1395 | #endif
>>   1396 | #if HAVE_INTTYPES_H
>>   1397 | # include <inttypes.h>
>>   1398 | #else
>>   1399 | # if HAVE_STDINT_H
>>   1400 | #  include <stdint.h>
>>   1401 | # endif
>>   1402 | #endif
>>   1403 | #if HAVE_UNISTD_H
>>   1404 | # include <unistd.h>    1405 | #endif
>>   1406 | #include <ltdl.h>
>>   1407 configure:21262: result: no
>>   1408 configure:21266: checking ltdl.h presence
>>   1409 configure:21276: gcc -E  conftest.c
>>   1410 conftest.c:46:18: ltdl.h: No such file or directory
>>   1411 configure:21282: $? = 1
>>   1412 configure: failed program was:
>>   1413 | /* confdefs.h.  */
>>   1414 |
>>   1415 | #define PACKAGE_NAME ""
>>   1416 | #define PACKAGE_TARNAME ""
>>   1417 | #define PACKAGE_VERSION ""
>>   1418 | #define PACKAGE_STRING ""
>>   1419 | #define PACKAGE_BUGREPORT ""
>>   1420 | #define PACKAGE "gnucash"
>>   1421 | #define VERSION "1.9.0"
>>   1422 | #define GNUCASH_MAJOR_VERSION 1
>>   1423 | #define GNUCASH_MINOR_VERSION 9
>>   1424 | #define GNUCASH_MICRO_VERSION 0
>>   1425 | #define GETTEXT_PACKAGE "gnucash"
>>   1426 | #define STDC_HEADERS 1
>>   1427 | #define HAVE_SYS_TYPES_H 1
>>   1428 | #define HAVE_SYS_STAT_H 1
>>   1429 | #define HAVE_STDLIB_H 1
>>   1430 | #define HAVE_STRING_H 1
>>   1431 | #define HAVE_MEMORY_H 1
>>   1432 | #define HAVE_STRINGS_H 1
>>   1433 | #define HAVE_INTTYPES_H 1
>>   1434 | #define HAVE_STDINT_H 1
>>   1435 | #define HAVE_UNISTD_H 1
>>   1436 | #define HAVE_DLFCN_H 1
>>   1437 | #ifdef __cplusplus
>>   1438 | extern "C" void std::exit (int) throw (); using std::exit;
>>   1439 | #endif
>>   1440 | #define STDC_HEADERS 1
>>   1441 | #define HAVE_LIMITS_H 1
>>   1442 | #define HAVE_STPCPY 1
>>   1443 | #define HAVE_MEMCPY 1   1444 | #define HAVE_TIMEGM 1
>>   1445 | #define HAVE_TOWUPPER 1
>>   1446 | #define HAVE_SETENV 1   1447 | #define HAVE_IEEEFP_H 1
>>   1448 | #define HAVE_RANDOM 1
>>   1449 | #define HAVE_DRAND48 1
>>   1450 | #define HAVE_MEMMOVE 1
>>   1451 | #define HAVE_MKDTEMP 1
>>   1452 | #define HAVE_UNAME 1
>>   1453 | #define HAVE_TIMES 1    1454 | #define HAVE_SYSCONF 1
>>   1455 | #define HAVE_STRUCT_TM_GMTOFF 1
>>   1456 | #define HAVE_SCANF_LLD 1
>>   1457 | /* end confdefs.h.  */
>>   1458 | #include <ltdl.h>
>>   1459 configure:21302: result: no
>>   1460 configure:21337: checking for ltdl.h
>>   1461 configure:21344: result: no    1462 configure:21358: error: 
>> Cannot find ltdl.h -- libtool-devel not installed?
>>
>> {snip}
>>
>>   1589 ## ----------------- ##    1590 ## Output variables. ##
>>   1591 ## ----------------- ##
>>   1592
>>   1593 ACLOCAL='${SHELL} /usr/home/dmbrock/src/gnucash-trunk/missing 
>> --run aclocal-1.9'
>>   1594 AMDEPBACKSLASH='\'
>>   1595 AMDEP_FALSE='#'
>>   1596 AMDEP_TRUE=''
>>   1597 AMTAR='${SHELL} /usr/home/dmbrock/src/gnucash-trunk/missing 
>> --run tar'
>>   1598 AR='ar'
>>   1599 ART_CFLAGS=''
>>   1600 ART_LIBS=''
>>   1601 AUTOCONF='${SHELL} /usr/home/dmbrock/src/gnucash-trunk/missing 
>> --run autoconf'
>>   1602 AUTOHEADER='${SHELL} 
>> /usr/home/dmbrock/src/gnucash-trunk/missing --run autoheader'
>>   1603 AUTOMAKE='${SHELL} /usr/home/dmbrock/src/gnucash-trunk/missing 
>> --run automake-1.9'
>>
>> {snip}
>>
>>   1740 MAKEINFO='${SHELL} /usr/home/dmbrock/src/gnucash-trunk/missing 
>> --run makeinfo'
>>
>> {snip}
>>
>>   1843 ## ----------- ##
>>   1844 ## confdefs.h. ##
>>   1845 ## ----------- ##
>>   1846
>>   1847 #define GETTEXT_PACKAGE "gnucash"
>>   1848 #define GNUCASH_MAJOR_VERSION 1
>>   1849 #define GNUCASH_MICRO_VERSION 0
>>   1850 #define GNUCASH_MINOR_VERSION 9
>>   1851 #define HAVE_DLFCN_H 1
>>   1852 #define HAVE_DRAND48 1
>>   1853 #define HAVE_IEEEFP_H 1
>>   1854 #define HAVE_INTTYPES_H 1
>>   1855 #define HAVE_LIMITS_H 1
>>   1856 #define HAVE_MEMCPY 1
>>   1857 #define HAVE_MEMMOVE 1
>>   1858 #define HAVE_MEMORY_H 1
>>   1859 #define HAVE_MKDTEMP 1
>>   1860 #define HAVE_RANDOM 1
>>   1861 #define HAVE_SCANF_LLD 1
>>   1862 #define HAVE_SETENV 1
>>   1863 #define HAVE_STDINT_H 1   1864 #define HAVE_STDLIB_H 1
>>   1865 #define HAVE_STPCPY 1
>>   1866 #define HAVE_STRINGS_H 1
>>   1867 #define HAVE_STRING_H 1
>>   1868 #define HAVE_STRUCT_TM_GMTOFF 1
>>   1869 #define HAVE_SYSCONF 1
>>   1870 #define HAVE_SYS_STAT_H 1
>>   1871 #define HAVE_SYS_TYPES_H 1
>>   1872 #define HAVE_TIMEGM 1
>>   1873 #define HAVE_TIMES 1
>>   1874 #define HAVE_TOWUPPER 1
>>   1875 #define HAVE_UNAME 1
>>   1876 #define HAVE_UNISTD_H 1
>>   1877 #define PACKAGE "gnucash"
>>   1878 #define PACKAGE_BUGREPORT ""
>>   1879 #define PACKAGE_NAME ""
>>   1880 #define PACKAGE_STRING ""
>>   1881 #define PACKAGE_TARNAME ""
>>   1882 #define PACKAGE_VERSION ""
>>   1883 #define STDC_HEADERS 1
>>   1884 #define STDC_HEADERS 1
>>   1885 #define VERSION "1.9.0"
>>   1886 #endif
>>   1887 #ifdef __cplusplus
>>   1888 extern "C" void std::exit (int) throw (); using std::exit;
>>   1889
>>   1890 configure: exit 1
>>
>> {end}
>>
>> Derek Atkins wrote:
>>
>>> What does config.log have to say about the test?
>>>
>>> -derek
>>>
>>> Quoting david at tubits.com:
>>>
>>>>
>>>>
>>>> I'm trying to build the latest 1.9 code (from the svn trunk) on 
>>>> FreeBSD 5.4-STABLE but I'm getting a strange configure error:
>>>>
>>>>> ./configure --enable-error-on-warning --enable-compile-warnings
>>>>
>>>>
>>>>
>>>> --enable-debug --enable-ofx
>>>> checking for a BSD-compatible install... /usr/bin/install -c
>>>> {snip}
>>>> checking ltdl.h usability... no
>>>> checking ltdl.h presence... no
>>>> checking for ltdl.h... no
>>>> configure: error: Cannot find ltdl.h -- libtool-devel not installed?
>>>>
>>>>>
>>>>
>>>> While there isn't a port or package that I can find called 
>>>> "libtool-devel", google suggests installing libltdl15, for which 
>>>> the pkg-list includes "include/ltdl.h".  Looks good so far, but, I 
>>>> *have* installed libltdl15.  Furthermore:
>>>>
>>>>> locate ltdl.h
>>>>
>>>>
>>>>
>>>> /usr/local/include/ltdl.h
>>>> /usr/local/share/libtool13/libltdl/ltdl.h
>>>> /usr/local/share/libtool15/libltdl/ltdl.h
>>>>
>>>>>
>>>> and still the same configure error above.
>>>>
>>>> It appears like the ltdl.h file is right where it's supposed to be, 
>>>> but configure doesn't see it.  I even tried adding 
>>>> --includedir=/usr/local/include but there's no difference.
>>>>
>>>> What am I missing??
>>>>
>>>> ;-David
>>>>
>>>>
>>>> _______________________________________________
>>>> gnucash-user mailing list
>>>> gnucash-user at gnucash.org
>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>



More information about the gnucash-user mailing list