bugGnash - The GNU Flash player - Bugs: bug #23021, gnash-cvs does not build with...

 
 

bug #23021: gnash-cvs does not build with libtool 2.2.2

Submitted by:  Fredrik <fredrikr>
Submitted on:  Tue 22 Apr 2008 04:38:08 PM UTC  
 
Category: buildSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Rob Savoye <rsavoye>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Thu 18 Sep 2008 06:41:23 AM UTC, comment #12:

Gnash built fine here on Gentoo/amd64 with libtool-2.2.4.

-Deleted Account- <geki>
Wed 17 Sep 2008 08:39:10 PM UTC, comment #11:

Can any of the original reporters confirm that this has been fixed in trunk? A reply would be very helpful; we can close the bug then.

Benjamin Wolsey <bwy>
Project Member
Fri 12 Sep 2008 07:19:50 PM UTC, comment #10:

I've made furthur changes to improve this, and now even distcheck works with either libtool 1.x or 2.x.

Rob Savoye <rsavoye>
Project AdministratorIn charge of this item.
Mon 08 Sep 2008 03:10:38 PM UTC, comment #9:

This should now be fixed in trunk. I added support to configure with either libtool 1.x or libtool 2.x. Just note that if switching between versions one should "rm -fr libltdl" first, as libtoolize (2.x) installed some m4 files in macros that will cause conflicts.

Rob Savoye <rsavoye>
Project AdministratorIn charge of this item.
Sun 07 Sep 2008 01:20:00 PM UTC, comment #8:

I have filed a bug in launchpad https://bugs.edge.launchpad.net/ubuntu/+source/gnash/+bug/267417 because this issue is stopping the gnash source package to build on intrepid.

Luis Arias <kaaloo>
 Spam posted by an anonymous
Sat 14 Jun 2008 12:08:11 PM UTC, comment #7:

It looks fine so far.

-Deleted Account- <geki>
Thu 12 Jun 2008 01:07:29 AM UTC, comment #6:

I got libbase built with ltdl from system. I added these configure flags:
'--without-included-ltdl --with-ltdl-include=/usr/include --with-ltdl-lib=/usr/lib'

And this hack:
--- libbase/Makefile.am.orig 2008-06-12 02:47:03.000000000 +0200
+++ libbase/Makefile.am 2008-06-12 02:47:53.000000000 +0200
@@ -21,9 +21,9 @@
pluginsdir = $(prefix)/lib/gnash/plugins

if INSTALL_LTDL
-include_HEADERS = $(top_srcdir)/libltdl/ltdl.h
-LIBLTDLLIB = libltdl.la
-LIBLTDLHEAD = $(top_srcdir)/libltdl/ltdl.h
+#include_HEADERS = $(top_srcdir)/libltdl/ltdl.h
+#LIBLTDLLIB = libltdl.la
+#LIBLTDLHEAD = $(top_srcdir)/libltdl/ltdl.h
endif

sysconf_DATA = gnashrc gnashpluginrc
@@ -163,8 +163,8 @@

libltdlc_la_CPPFLAGS = $(LTDLINCL)
if CONVENIENCE_LTDL
-noinst_LTLIBRARIES = libltdlc.la
-libltdlc_la_SOURCES = $(top_srcdir)/libltdl/ltdl.c
+#noinst_LTLIBRARIES = libltdlc.la
+#libltdlc_la_SOURCES = $(top_srcdir)/libltdl/ltdl.c
endif
CLEANFILES = libltdl.la libltdlc.la gnashrc gnashpluginrc

_
Since ogl renderer fails I cannot finish the build to test.

I wonder why ltdl is built in libbase Makefile.
With libtool-2 you could run 'make' succesfully in libltdl/ and link that static or dynamic library in libbase then or system one via configure switch.
Is that possible with libtool-1? Any drawback with this?

I hope I was clear. ;)

-Deleted Account- <geki>
Sat 17 May 2008 11:12:23 PM UTC, comment #5:

I suggest everyone use my sed scripts in a previous post, instead of the final patch (from sed scripts), which may easily fail with source updates.

${S} is the gentoo ebuild variable, if you don't run gentoo, just set ENV ${S} to your gnash source folder.

Dongxu Li <butdiene>
Fri 16 May 2008 09:12:10 AM UTC, comment #4:

OK, after a lot of messing about, I fixed this up by reverting back to libtool 1.5.x series:

libtool --version
ltmain.sh (GNU libtool) 1.5.26 (1.1220.2.492 2008/01/30 06:40:56)

Nick

Nick Warne <nickw>
Wed 14 May 2008 10:26:31 AM UTC, comment #3:

Ummm. I have just hit this issue as I updated to libtool 2.2.4 recently.

Dongxu Li, please could you post you patch as a file attachment - cutting from here mangles the format.

Thanks,

Nick

Nick Warne <nickw>
Thu 08 May 2008 04:44:46 AM UTC, comment #2:

or a patch for the libltdl folder:

diff -urd gnash.old/libltdl/argz_.h gnash.new/libltdl/argz_.h
--- gnash.old/libltdl/argz_.h 2008-05-07 23:29:13.957254157 -0500
+++ gnash.new/libltdl/argz_.h 2008-05-07 22:59:06.509255000 -0500
@@ -47,18 +47,18 @@
extern "C" {
#endif

-LT_SCOPE error_t argz_append (char *pargz, size_t pargz_len,
+extern error_t argz_append (char *pargz, size_t pargz_len,
const char *buf, size_t buf_len);
-LT_SCOPE error_t argz_add (char *pargz, size_t pargz_len,
+extern error_t argz_add (char *pargz, size_t pargz_len,
const char *str);
-LT_SCOPE error_t argz_create_sep(const char *str, int delim,
+extern error_t argz_create_sep(const char *str, int delim,
char *pargz, size_t pargz_len);
-LT_SCOPE error_t argz_insert (char *pargz, size_t pargz_len,
+extern error_t argz_insert (char *pargz, size_t pargz_len,
char before, const char entry);
-LT_SCOPE char argz_next (char argz, size_t argz_len,
+extern char argz_next (char argz, size_t argz_len,
const char *entry);
-LT_SCOPE void argz_stringify (char *argz, size_t argz_len, int sep);
-LT_SCOPE size_t argz_count (const char *argz, size_t argz_len);
+extern void argz_stringify (char *argz, size_t argz_len, int sep);
+extern size_t argz_count (const char *argz, size_t argz_len);

#if defined(__cplusplus)
}
diff -urd gnash.old/libltdl/config.h gnash.new/libltdl/config.h
--- gnash.old/libltdl/config.h 2008-05-07 23:30:17.643254123 -0500
+++ gnash.new/libltdl/config.h 2008-05-07 23:07:28.428004000 -0500
@@ -2,6 +2,7 @@
/* config-h.in. Generated from configure.ac by autoheader. */

/* Define to 1 if you have the `argz_add' function. */
+#define LT_SCOPE extern
#define HAVE_ARGZ_ADD 1

/* Define to 1 if you have the `argz_append' function. */
diff -urd gnash.old/libltdl/config.log gnash.new/libltdl/config.log
--- gnash.old/libltdl/config.log 2008-05-07 23:30:17.855268570 -0500
+++ gnash.new/libltdl/config.log 2008-05-07 22:30:35.680018000 -0500
@@ -293,7 +293,7 @@
configure:10226: result: immediate
configure:10345: checking for shl_load
configure:10401: x86_64-pc-linux-gnu-gcc -o conftest -O3 -march=nocona -fomit-frame-pointer -fexpensive-optimizations -pipe -Wl,-O1 -Wl,--as-needed -Wl,-L/usr/kde/3.5/lib64 -lkdeui -I/usr/share/libtool/libltdl/libltdl conftest.c >&5
diff -urd gnash.old/libltdl/libltdl/lt__alloc.h gnash.new/libltdl/libltdl/lt__alloc.h
--- gnash.old/libltdl/libltdl/lt__alloc.h 2008-05-07 23:29:14.178254172 -0500
+++ gnash.new/libltdl/libltdl/lt__alloc.h 2008-05-07 23:10:18.531254000 -0500
@@ -44,14 +44,14 @@
} LT_STMT_END

/* If set, this function is called when memory allocation has failed. */
-LT_SCOPE void (*lt__alloc_die) (void);
+extern void (*lt__alloc_die) (void);

-LT_SCOPE void *lt__malloc (size_t n);
-LT_SCOPE void *lt__zalloc (size_t n);
-LT_SCOPE void lt__realloc (void mem, size_t n);
-LT_SCOPE void lt__memdup (void const mem, size_t n);
+extern void *lt__malloc (size_t n);
+extern void *lt__zalloc (size_t n);
+extern void lt__realloc (void mem, size_t n);
+extern void lt__memdup (void const mem, size_t n);

-LT_SCOPE char lt__strdup (const char string);
+extern char lt__strdup (const char string);

LT_END_C_DECLS

diff -urd gnash.old/libltdl/libltdl/lt__dirent.h gnash.new/libltdl/libltdl/lt__dirent.h
--- gnash.old/libltdl/libltdl/lt__dirent.h 2008-05-07 23:29:14.197269158 -0500
+++ gnash.new/libltdl/libltdl/lt__dirent.h 2008-05-07 23:10:18.531254000 -0500
@@ -34,7 +34,7 @@
#if defined(LT_CONFIG_H)
# include LT_CONFIG_H
#else
-# include <config.h>
+# include "../config.h"
#endif

#include "lt_system.h"
@@ -74,9 +74,9 @@
} DIR;

-LT_SCOPE DIR opendir (const char path);
-LT_SCOPE struct dirent readdir (DIR entry);
-LT_SCOPE void closedir (DIR *entry);
+extern DIR opendir (const char path);
+extern struct dirent readdir (DIR entry);
+extern void closedir (DIR *entry);

LT_END_C_DECLS

diff -urd gnash.old/libltdl/libltdl/lt_dlloader.h gnash.new/libltdl/libltdl/lt_dlloader.h
--- gnash.old/libltdl/libltdl/lt_dlloader.h 2008-05-07 23:29:14.312254583 -0500
+++ gnash.new/libltdl/libltdl/lt_dlloader.h 2008-05-07 23:10:18.531254000 -0500
@@ -70,19 +70,19 @@
lt_dlloader_priority priority;
} lt_dlvtable;

-LT_SCOPE int lt_dlloader_add (const lt_dlvtable *vtable);
-LT_SCOPE lt_dlloader lt_dlloader_next (const lt_dlloader loader);
+extern int lt_dlloader_add (const lt_dlvtable *vtable);
+extern lt_dlloader lt_dlloader_next (const lt_dlloader loader);

-LT_SCOPE lt_dlvtable lt_dlloader_remove (char name);
-LT_SCOPE const lt_dlvtable lt_dlloader_find (char name);
-LT_SCOPE const lt_dlvtable *lt_dlloader_get (lt_dlloader loader);
+extern lt_dlvtable lt_dlloader_remove (char name);
+extern const lt_dlvtable lt_dlloader_find (char name);
+extern const lt_dlvtable *lt_dlloader_get (lt_dlloader loader);

/* Type of a function to get a loader's vtable: */
typedef const lt_dlvtable *lt_get_vtable (lt_user_data data);

#ifdef LT_DEBUG_LOADERS
-LT_SCOPE void lt_dlloader_dump (void);
+extern void lt_dlloader_dump (void);
#endif

LT_END_C_DECLS
diff -urd gnash.old/libltdl/libltdl/lt_error.h gnash.new/libltdl/libltdl/lt_error.h
--- gnash.old/libltdl/libltdl/lt_error.h 2008-05-07 23:29:14.352254359 -0500
+++ gnash.new/libltdl/libltdl/lt_error.h 2008-05-07 23:10:18.532254000 -0500
@@ -76,8 +76,8 @@
#define LT_ERROR_LEN_MAX (41)

/* These functions are only useful from inside custom module loaders. */
-LT_SCOPE int lt_dladderror (const char *diagnostic);
-LT_SCOPE int lt_dlseterror (int errorcode);
+extern int lt_dladderror (const char *diagnostic);
+extern int lt_dlseterror (int errorcode);

LT_END_C_DECLS
diff -urd gnash.old/libltdl/libltdl/lt__glibc.h gnash.new/libltdl/libltdl/lt__glibc.h
--- gnash.old/libltdl/libltdl/lt__glibc.h 2008-05-07 23:29:14.217269605 -0500
+++ gnash.new/libltdl/libltdl/lt__glibc.h 2008-05-07 23:10:18.532254000 -0500
@@ -34,7 +34,7 @@
#if defined(LT_CONFIG_H)
# include LT_CONFIG_H
#else
-# include <config.h>
+# include "../config.h"
#endif

#if !defined(HAVE_ARGZ_H) || !defined(HAVE_WORKING_ARGZ)
@@ -78,6 +78,6 @@
# define slist_box lt__slist_box
# define slist_unbox lt__slist_unbox

-#include <slist.h>
+#include "slist.h"

#endif /!defined(LT__GLIBC_H)/
diff -urd gnash.old/libltdl/libltdl/lt__private.h gnash.new/libltdl/libltdl/lt__private.h
--- gnash.old/libltdl/libltdl/lt__private.h 2008-05-07 23:29:14.241254078 -0500
+++ gnash.new/libltdl/libltdl/lt__private.h 2008-05-07 23:10:18.533253000 -0500
@@ -34,7 +34,7 @@
#if defined(LT_CONFIG_H)
# include LT_CONFIG_H
#else
-# include <config.h>
+# include "../config.h"
#endif

#include <stdio.h>
@@ -54,7 +54,7 @@
#include "lt__glibc.h"

/* ...and all exported interfaces. */
-#include "ltdl.h"
+#include "../ltdl.h"

#if defined(WITH_DMALLOC)
# include <dmalloc.h>
@@ -90,7 +90,7 @@
extern int errno;
#endif

-LT_SCOPE void lt__alloc_die_callback (void);
+extern void lt__alloc_die_callback (void);

/* For readability: */
@@ -139,9 +139,9 @@
#define LT__SETERRORSTR(errormsg) lt__set_last_error(errormsg)
#define LT__SETERROR(errorcode) LT__SETERRORSTR(LT__STRERROR(errorcode))

-LT_SCOPE const char *lt__error_string (int errorcode);
-LT_SCOPE const char *lt__get_last_error (void);
-LT_SCOPE const char lt__set_last_error (const char errormsg);
+extern const char *lt__error_string (int errorcode);
+extern const char *lt__get_last_error (void);
+extern const char lt__set_last_error (const char errormsg);

LT_END_C_DECLS

diff -urd gnash.old/libltdl/libltdl/lt__strl.h gnash.new/libltdl/libltdl/lt__strl.h
--- gnash.old/libltdl/libltdl/lt__strl.h 2008-05-07 23:29:14.278255150 -0500
+++ gnash.new/libltdl/libltdl/lt__strl.h 2008-05-07 23:10:18.533253000 -0500
@@ -34,7 +34,7 @@
#if defined(LT_CONFIG_H)
# include LT_CONFIG_H
#else
-# include <config.h>
+# include "../config.h"
#endif

#include <string.h>
@@ -42,12 +42,12 @@

#if !defined(HAVE_STRLCAT)
# define strlcat(dst,src,dstsize) lt_strlcat(dst,src,dstsize)
-LT_SCOPE size_t lt_strlcat(char dst, const char src, const size_t dstsize);
+extern size_t lt_strlcat(char dst, const char src, const size_t dstsize);
#endif /* !defined(HAVE_STRLCAT) */

#if !defined(HAVE_STRLCPY)
# define strlcpy(dst,src,dstsize) lt_strlcpy(dst,src,dstsize)
-LT_SCOPE size_t lt_strlcpy(char dst, const char src, const size_t dstsize);
+extern size_t lt_strlcpy(char dst, const char src, const size_t dstsize);
#endif /* !defined(HAVE_STRLCPY) */

#endif /!defined(LT__STRL_H)/
diff -urd gnash.old/libltdl/libltdl/slist.h gnash.new/libltdl/libltdl/slist.h
--- gnash.old/libltdl/libltdl/slist.h 2008-05-07 23:29:14.390256186 -0500
+++ gnash.new/libltdl/libltdl/slist.h 2008-05-07 23:10:18.534254000 -0500
@@ -45,7 +45,7 @@
# include <libltdl/lt__glibc.h>
# include <libltdl/lt_system.h>
#else
-# define LT_SCOPE
+# define LT_SCOPE extern
#endif

#if defined(__cplusplus)
@@ -61,27 +61,27 @@
typedef int SListCompare (const SList item1, const SList item2,
void *userdata);

-LT_SCOPE SList slist_concat (SList head, SList *tail);
-LT_SCOPE SList slist_cons (SList item, SList *slist);
+extern SList slist_concat (SList head, SList *tail);
+extern SList slist_cons (SList item, SList *slist);

-LT_SCOPE SList slist_delete (SList slist, void (delete_fct) (void item));
-LT_SCOPE void slist_remove (SList phead, SListCallback find,
+extern SList slist_delete (SList slist, void (delete_fct) (void item));
+extern void slist_remove (SList phead, SListCallback find,
void *matchdata);
-LT_SCOPE SList slist_reverse (SList slist);
-LT_SCOPE SList slist_sort (SList slist, SListCompare *compare,
+extern SList slist_reverse (SList slist);
+extern SList slist_sort (SList slist, SListCompare *compare,
void *userdata);

-LT_SCOPE SList slist_tail (SList slist);
-LT_SCOPE SList slist_nth (SList slist, size_t n);
-LT_SCOPE void slist_find (SList slist, SListCallback *find,
+extern SList slist_tail (SList slist);
+extern SList slist_nth (SList slist, size_t n);
+extern void slist_find (SList slist, SListCallback *find,
void *matchdata);
-LT_SCOPE size_t slist_length (SList *slist);
+extern size_t slist_length (SList *slist);

-LT_SCOPE void slist_foreach (SList slist, SListCallback *foreach,
+extern void slist_foreach (SList slist, SListCallback *foreach,
void *userdata);

-LT_SCOPE SList slist_box (const void userdata);
-LT_SCOPE void slist_unbox (SList item);
+extern SList slist_box (const void userdata);
+extern void slist_unbox (SList item);

#if defined(__cplusplus)
}
diff -urd gnash.old/libltdl/ltdl.c gnash.new/libltdl/ltdl.c
--- gnash.old/libltdl/ltdl.c 2008-05-07 23:29:14.559254202 -0500
+++ gnash.new/libltdl/ltdl.c 2008-05-07 23:12:00.911003000 -0500
@@ -29,9 +29,9 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

-#include "lt__private.h"
-#include "lt_system.h"
-#include "lt_dlloader.h"
+#include "libltdl/lt__private.h"
+#include "libltdl/lt_system.h"
+#include "libltdl/lt_dlloader.h"

/* --- MANIFEST CONSTANTS --- */
@@ -200,7 +200,7 @@
#define preloaded_symbols LT_CONC3(lt_, LTDLOPEN, _LTX_preloaded_symbols)

LT_BEGIN_C_DECLS
-LT_SCOPE const lt_dlvtable * get_vtable (lt_user_data data);
+extern const lt_dlvtable * get_vtable (lt_user_data data);
LT_END_C_DECLS
#ifdef HAVE_LIBDLLOADER
extern lt_dlsymlist preloaded_symbols;
diff -urd gnash.old/libltdl/ltdl.h gnash.new/libltdl/ltdl.h
--- gnash.old/libltdl/ltdl.h 2008-05-07 23:29:14.525254699 -0500
+++ gnash.new/libltdl/ltdl.h 2008-05-07 23:12:00.911003000 -0500
@@ -33,9 +33,9 @@
#if !defined(LTDL_H)
#define LTDL_H 1

-#include <libltdl/lt_system.h>
-#include <libltdl/lt_error.h>
-#include <libltdl/lt_dlloader.h>
+#include "libltdl/lt_system.h"
+#include "libltdl/lt_error.h"
+#include "libltdl/lt_dlloader.h"

LT_BEGIN_C_DECLS

@@ -50,36 +50,36 @@
typedef struct lt__handle lt_dlhandle; / A loaded module. */

/* Initialisation and finalisation functions for libltdl. */
-LT_SCOPE int lt_dlinit (void);
-LT_SCOPE int lt_dlexit (void);
+extern int lt_dlinit (void);
+extern int lt_dlexit (void);

/* Module search path manipulation. */
-LT_SCOPE int lt_dladdsearchdir (const char *search_dir);
-LT_SCOPE int lt_dlinsertsearchdir (const char *before,
+extern int lt_dladdsearchdir (const char *search_dir);
+extern int lt_dlinsertsearchdir (const char *before,
const char *search_dir);
-LT_SCOPE int lt_dlsetsearchpath (const char *search_path);
-LT_SCOPE const char *lt_dlgetsearchpath (void);
-LT_SCOPE int lt_dlforeachfile (
+extern int lt_dlsetsearchpath (const char *search_path);
+extern const char *lt_dlgetsearchpath (void);
+extern int lt_dlforeachfile (
const char *search_path,
int (func) (const char filename, void *data),
void *data);

/* User module loading advisors. */
-LT_SCOPE int lt_dladvise_init (lt_dladvise *advise);
-LT_SCOPE int lt_dladvise_destroy (lt_dladvise *advise);
-LT_SCOPE int lt_dladvise_ext (lt_dladvise *advise);
-LT_SCOPE int lt_dladvise_resident (lt_dladvise *advise);
-LT_SCOPE int lt_dladvise_local (lt_dladvise *advise);
-LT_SCOPE int lt_dladvise_global (lt_dladvise *advise);
+extern int lt_dladvise_init (lt_dladvise *advise);
+extern int lt_dladvise_destroy (lt_dladvise *advise);
+extern int lt_dladvise_ext (lt_dladvise *advise);
+extern int lt_dladvise_resident (lt_dladvise *advise);
+extern int lt_dladvise_local (lt_dladvise *advise);
+extern int lt_dladvise_global (lt_dladvise *advise);

/* Portable libltdl versions of the system dlopen() API. */
-LT_SCOPE lt_dlhandle lt_dlopen (const char *filename);
-LT_SCOPE lt_dlhandle lt_dlopenext (const char *filename);
-LT_SCOPE lt_dlhandle lt_dlopenadvise (const char *filename,
+extern lt_dlhandle lt_dlopen (const char *filename);
+extern lt_dlhandle lt_dlopenext (const char *filename);
+extern lt_dlhandle lt_dlopenadvise (const char *filename,
lt_dladvise advise);
-LT_SCOPE void lt_dlsym (lt_dlhandle handle, const char name);
-LT_SCOPE const char *lt_dlerror (void);
-LT_SCOPE int lt_dlclose (lt_dlhandle handle);
+extern void lt_dlsym (lt_dlhandle handle, const char name);
+extern const char *lt_dlerror (void);
+extern int lt_dlclose (lt_dlhandle handle);

@@ -95,9 +95,9 @@

typedef int lt_dlpreload_callback_func (lt_dlhandle handle);

-LT_SCOPE int lt_dlpreload (const lt_dlsymlist *preloaded);
-LT_SCOPE int lt_dlpreload_default (const lt_dlsymlist *preloaded);
-LT_SCOPE int lt_dlpreload_open (const char *originator,
+extern int lt_dlpreload (const lt_dlsymlist *preloaded);
+extern int lt_dlpreload_default (const lt_dlsymlist *preloaded);
+extern int lt_dlpreload_open (const char *originator,
lt_dlpreload_callback_func *func);

#define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols
@@ -116,12 +116,12 @@
typedef void * lt_dlinterface_id;
typedef int lt_dlhandle_interface (lt_dlhandle handle, const char *id_string);

-LT_SCOPE lt_dlinterface_id lt_dlinterface_register (const char *id_string,
+extern lt_dlinterface_id lt_dlinterface_register (const char *id_string,
lt_dlhandle_interface *iface);
-LT_SCOPE void lt_dlinterface_free (lt_dlinterface_id key);
-LT_SCOPE void * lt_dlcaller_set_data (lt_dlinterface_id key,
+extern void lt_dlinterface_free (lt_dlinterface_id key);
+extern void * lt_dlcaller_set_data (lt_dlinterface_id key,
lt_dlhandle handle, void *data);
-LT_SCOPE void * lt_dlcaller_get_data (lt_dlinterface_id key,
+extern void * lt_dlcaller_get_data (lt_dlinterface_id key,
lt_dlhandle handle);

@@ -138,21 +138,21 @@
locally. */
} lt_dlinfo;

-LT_SCOPE const lt_dlinfo *lt_dlgetinfo (lt_dlhandle handle);
+extern const lt_dlinfo *lt_dlgetinfo (lt_dlhandle handle);

-LT_SCOPE lt_dlhandle lt_dlhandle_iterate (lt_dlinterface_id iface,
+extern lt_dlhandle lt_dlhandle_iterate (lt_dlinterface_id iface,
lt_dlhandle place);
-LT_SCOPE lt_dlhandle lt_dlhandle_fetch (lt_dlinterface_id iface,
+extern lt_dlhandle lt_dlhandle_fetch (lt_dlinterface_id iface,
const char *module_name);
-LT_SCOPE int lt_dlhandle_map (lt_dlinterface_id iface,
+extern int lt_dlhandle_map (lt_dlinterface_id iface,
int (func) (lt_dlhandle handle, void data),
void *data);

/* Deprecated module residency management API. */
-LT_SCOPE int lt_dlmakeresident (lt_dlhandle handle);
-LT_SCOPE int lt_dlisresident (lt_dlhandle handle);
+extern int lt_dlmakeresident (lt_dlhandle handle);
+extern int lt_dlisresident (lt_dlhandle handle);

#define lt_ptr void *

Dongxu Li <butdiene>
Thu 08 May 2008 04:42:57 AM UTC, comment #1:

I don't know libtool. I tried brutal force to make it build with libtool-2.2.4 by following,

sed -i -e 's/define LT_SCOPE$/define LT_SCOPE extern/g' "${S}"/libltdl/libltdl/*.h
sed -i -e 's/^LT_SCOPE /extern /g' "${S}"/libltdl/*.c
sed -i -e 's/^LT_SCOPE /extern /g' "${S}"/libltdl/*.h
sed -i -e 's/^LT_SCOPE /extern /g' "${S}"/libltdl/libltdl/*.h
sed -i -e 's/#include "ltdl.h"/#include "..\/ltdl.h"/g' "${S}"/libltdl/libltdl/*.h
sed -i -e 's/include <libltdl\/lt_system.h>/include "libltdl\/lt_system.h"/g' "${S}"/libltdl/ltdl.[ch]
sed -i -e 's/include <libltdl\/lt_error.h>/include "libltdl\/lt_error.h"/g' "${S}"/libltdl/ltdl.[ch]
sed -i -e 's/include <libltdl\/lt_dlloader.h>/include "libltdl\/lt_dlloader.h"/g' "${S}"/libltdl/ltdl.[ch]
sed -i -e 's/include "lt_dlloader.h"/include "libltdl\/lt_dlloader.h"/g' "${S}"/libltdl/ltdl.[ch]
sed -i -e 's/^#include <slist.h>/#include "slist.h"/g' "${S}"/libltdl/libltdl/*.h
sed -i -e 's/include <config.h>/include "..\/config.h"/g' "${S}"/libltdl/libltdl/*.h
sed -i -e 's/^#include "lt__private.h"/#include "libltdl\/lt__private.h"/g' "${S}"/libltdl/ltdl.c
sed -i -e 's/^#include "lt_system.h"/#include "libltdl\/lt_system.h"/g' "${S}"/libltdl/ltdl.c

Dongxu Li <butdiene>
Tue 22 Apr 2008 04:38:08 PM UTC, original submission:

make all-recursive
make[1]: Entering directory `/tmp/gnash-work/src/gnash'
Making all in libbase
make[2]: Entering directory `/tmp/gnash-work/src/gnash/libbase'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -march=native -O2 -pipe -fPIC -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -MT libltdlc_la-ltdl.lo -MD -MP -MF .deps/libltdlc_la-ltdl.Tpo -c -o libltdlc_la-ltdl.lo `test -f '../libltdl/ltdl.c' || echo './'`../libltdl/ltdl.c
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DPLUGINSDIR=\"/usr/lib/gnash/plugins\" -I.. -I. -I.. -I../libnet -I../libamf -I../server -I../server/swf -pthread -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/local/include/boost-1_35 -march=native -O2 -pipe -fPIC -pthread -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -fvisibility-inlines-hidden -MT libgnashbase_la-extension.lo -MD -MP -MF .deps/libgnashbase_la-extension.Tpo -c -o libgnashbase_la-extension.lo `test -f 'extension.cpp' || echo './'`extension.cpp
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DPLUGINSDIR=\"/usr/lib/gnash/plugins\" -I.. -I. -I.. -I../libnet -I../libamf -I../server -I../server/swf -pthread -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/local/include/boost-1_35 -march=native -O2 -pipe -fPIC -pthread -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -fvisibility-inlines-hidden -MT libgnashbase_la-image.lo -MD -MP -MF .deps/libgnashbase_la-image.Tpo -c -o libgnashbase_la-image.lo `test -f 'image.cpp' || echo './'`image.cpp
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -march=native -O2 -pipe -fPIC -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -MT libltdlc_la-ltdl.lo -MD -MP -MF .deps/libltdlc_la-ltdl.Tpo -c ../libltdl/ltdl.c -fPIC -DPIC -o .libs/libltdlc_la-ltdl.o
../libltdl/ltdl.c:32:25: error: lt__private.h: No such file or directory
../libltdl/ltdl.c:33:23: error: lt_system.h: No such file or directory
../libltdl/ltdl.c:34:25: error: lt_dlloader.h: No such file or directory
../libltdl/ltdl.c:68: error: 'LT_OBJDIR' undeclared here (not in a function)
../libltdl/ltdl.c:104: error: expected declaration specifiers or '...' before 'size_t'
../libltdl/ltdl.c:105: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../libltdl/ltdl.c:107: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../libltdl/ltdl.c:111: error: expected ')' before '*' token
../libltdl/ltdl.c:116: error: expected ')' before 'handle'
../libltdl/ltdl.c:118: error: expected ')' before '*' token
../libltdl/ltdl.c:121: error: expected ')' before '*' token
../libltdl/ltdl.c:125: error: expected ')' before 'handle'
../libltdl/ltdl.c:126: error: expected declaration specifiers or '...' before 'size_t'
../libltdl/ltdl.c:128: error: expected declaration specifiers or '...' before 'size_t'
../libltdl/ltdl.c:130: error: expected declaration specifiers or '...' before 'size_t'
../libltdl/ltdl.c:131: warning: 'struct dirent' declared inside parameter list
../libltdl/ltdl.c:131: warning: its scope is only this definition or declaration, which is probably not what you want
../libltdl/ltdl.c:135: error: expected declaration specifiers or '...' before 'size_t'
../libltdl/ltdl.c:142: error: expected ')' before '*' token
../libltdl/ltdl.c:146: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'handles'
../libltdl/ltdl.c:154: warning: no previous prototype for 'lt__alloc_die_callback'
../libltdl/ltdl.c: In function 'lt__alloc_die_callback':
../libltdl/ltdl.c:155: warning: implicit declaration of function 'LT__SETERROR'
../libltdl/ltdl.c:155: error: 'NO_MEMORY' undeclared (first use in this function)
../libltdl/ltdl.c:155: error: (Each undeclared identifier is reported only once
../libltdl/ltdl.c:155: error: for each function it appears in.)
../libltdl/ltdl.c: At top level:
../libltdl/ltdl.c:171: error: expected ')' before '*' token
../libltdl/ltdl.c:203: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'LT_SCOPE'
../libltdl/ltdl.c:210: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
../libltdl/ltdl.c:251: warning: no previous prototype for 'lt_dlexit'
../libltdl/ltdl.c: In function 'lt_dlexit':
../libltdl/ltdl.c:253: error: 'lt_dlloader' undeclared (first use in this function)
../libltdl/ltdl.c:253: error: 'loader' undeclared (first use in this function)
../libltdl/ltdl.c:253: error: invalid operands to binary *
../libltdl/ltdl.c:253: warning: statement with no effect
../libltdl/ltdl.c:254: error: 'lt__handle' undeclared (first use in this function)
../libltdl/ltdl.c:254: error: 'handle' undeclared (first use in this function)
../libltdl/ltdl.c:254: error: invalid operands to binary *
../libltdl/ltdl.c:254: error: expected expression before ')' token
../libltdl/ltdl.c:254: error: invalid operands to binary *
../libltdl/ltdl.c:254: warning: statement with no effect
../libltdl/ltdl.c:259: error: 'SHUTDOWN' undeclared (first use in this function)
../libltdl/ltdl.c:269: error: 'handles' undeclared (first use in this function)
../libltdl/ltdl.c:269: error: expected expression before ')' token
../libltdl/ltdl.c:269: error: invalid operands to binary *
../libltdl/ltdl.c:269: error: request for member 'info' in something not a structure or union
../libltdl/ltdl.c:269: error: request for member 'is_resident' in something not a structure or union
../libltdl/ltdl.c:271: error: expected expression before ')' token
../libltdl/ltdl.c:271: error: invalid operands to binary *
../libltdl/ltdl.c:271: error: request for member 'next' in something not a structure or union
../libltdl/ltdl.c:271: warning: statement with no effect
../libltdl/ltdl.c:277: error: 'cur' undeclared (first use in this function)
../libltdl/ltdl.c:277: error: invalid operands to binary *
../libltdl/ltdl.c:277: error: expected expression before ')' token
../libltdl/ltdl.c:277: error: invalid operands to binary *
../libltdl/ltdl.c:277: warning: statement with no effect
../libltdl/ltdl.c:282: error: 'tmp' undeclared (first use in this function)
../libltdl/ltdl.c:282: error: invalid operands to binary *
../libltdl/ltdl.c:282: warning: statement with no effect
../libltdl/ltdl.c:283: error: request for member 'next' in something not a structure or union
../libltdl/ltdl.c:283: warning: statement with no effect
../libltdl/ltdl.c:284: error: expected expression before ')' token
../libltdl/ltdl.c:284: error: invalid operands to binary *
../libltdl/ltdl.c:284: error: request for member 'info' in something not a structure or union
../libltdl/ltdl.c:284: error: request for member 'is_resident' in something not a structure or union
../libltdl/ltdl.c:287: error: request for member 'info' in something not a structure or union
../libltdl/ltdl.c:287: error: request for member 'ref_count' in something not a structure or union
../libltdl/ltdl.c:287: warning: comparison between pointer and integer
../libltdl/ltdl.c:289: warning: implicit declaration of function 'lt_dlclose'
../libltdl/ltdl.c:299: error: expected expression before ')' token
../libltdl/ltdl.c:299: error: invalid operands to binary *
../libltdl/ltdl.c:299: error: request for member 'next' in something not a structure or union
../libltdl/ltdl.c:303: error: expected expression before ')' token
../libltdl/ltdl.c:303: error: invalid operands to binary *
../libltdl/ltdl.c:303: warning: statement with no effect
../libltdl/ltdl.c:317: warning: implicit declaration of function 'LT__SETERRORSTR'
../libltdl/ltdl.c:320: error: expected expression before ')' token
../libltdl/ltdl.c:320: error: invalid operands to binary *
../libltdl/ltdl.c:322: error: 'next' undeclared (first use in this function)
../libltdl/ltdl.c:322: error: invalid operands to binary *
../libltdl/ltdl.c:322: error: expected expression before ')' token
../libltdl/ltdl.c:322: error: invalid operands to binary *
../libltdl/ltdl.c:322: warning: statement with no effect
../libltdl/ltdl.c:323: error: 'lt_dlvtable' undeclared (first use in this function)
../libltdl/ltdl.c:323: error: 'vtable' undeclared (first use in this function)
../libltdl/ltdl.c:323: error: invalid operands to binary *
../libltdl/ltdl.c:323: error: expected expression before ')' token
../libltdl/ltdl.c:323: error: invalid operands to binary *
../libltdl/ltdl.c:323: warning: statement with no effect
../libltdl/ltdl.c:325: warning: implicit declaration of function 'lt_dlloader_remove'
../libltdl/ltdl.c:325: error: request for member 'name' in something not a structure or union
../libltdl/ltdl.c:325: warning: cast discards qualifiers from pointer target type
../libltdl/ltdl.c:327: warning: implicit declaration of function 'FREE'
../libltdl/ltdl.c:333: warning: implicit declaration of function 'LT__GETERROR'
../libltdl/ltdl.c:338: warning: statement with no effect
../libltdl/ltdl.c: At top level:
../libltdl/ltdl.c:353: error: expected ')' before '*' token
../libltdl/ltdl.c:472: error: expected ')' before '*' token
../libltdl/ltdl.c:521: error: expected ')' before '*' token
../libltdl/ltdl.c: In function 'canonicalize_path':
../libltdl/ltdl.c:569: warning: implicit declaration of function 'assert'
../libltdl/ltdl.c:572: warning: implicit declaration of function 'MALLOC'
../libltdl/ltdl.c:572: error: expected expression before 'char'
../libltdl/ltdl.c:572: warning: assignment makes pointer from integer without a cast
../libltdl/ltdl.c:577: error: 'size_t' undeclared (first use in this function)
../libltdl/ltdl.c:577: warning: statement with no effect
../libltdl/ltdl.c:577: error: expected ';' before 'dest'
../libltdl/ltdl.c:578: warning: statement with no effect
../libltdl/ltdl.c:578: error: expected ';' before 'src'
../libltdl/ltdl.c:579: error: 'src' undeclared (first use in this function)
../libltdl/ltdl.c:579: error: array subscript is not an integer
../libltdl/ltdl.c:579: error: 'LT_EOS_CHAR' undeclared (first use in this function)
../libltdl/ltdl.c:579: error: lvalue required as increment operand
../libltdl/ltdl.c:584: error: array subscript is not an integer
../libltdl/ltdl.c:584: error: 'LT_PATHSEP_CHAR' undeclared (first use in this function)
../libltdl/ltdl.c:586: error: 'dest' undeclared (first use in this function)
../libltdl/ltdl.c:587: error: array subscript is not an integer
../libltdl/ltdl.c:588: error: array subscript is not an integer
../libltdl/ltdl.c:593: error: array subscript is not an integer
../libltdl/ltdl.c:593: warning: comparison between pointer and integer
../libltdl/ltdl.c:599: error: lvalue required as increment operand
../libltdl/ltdl.c:599: error: array subscript is not an integer
../libltdl/ltdl.c:599: error: array subscript is not an integer
../libltdl/ltdl.c:599: warning: statement with no effect
../libltdl/ltdl.c:604: error: array subscript is not an integer
../libltdl/ltdl.c:605: error: array subscript is not an integer
../libltdl/ltdl.c:609: error: array subscript is not an integer
../libltdl/ltdl.c:609: warning: comparison between pointer and integer
../libltdl/ltdl.c:611: error: lvalue required as increment operand
../libltdl/ltdl.c:611: error: array subscript is not an integer
../libltdl/ltdl.c:611: warning: statement with no effect
../libltdl/ltdl.c:616: error: array subscript is not an integer
../libltdl/ltdl.c:616: warning: statement with no effect
../libltdl/ltdl.c: At top level:
../libltdl/ltdl.c:626: error: expected declaration specifiers or '...' before 'size_t'
../libltdl/ltdl.c: In function 'argzize_path':
../libltdl/ltdl.c:628: error: 'error_t' undeclared (first use in this function)
../libltdl/ltdl.c:628: warning: statement with no effect
../libltdl/ltdl.c:628: error: expected ';' before 'error'
../libltdl/ltdl.c:632: error: 'pargz_len' undeclared (first use in this function)
../libltdl/ltdl.c:634: error: 'error' undeclared (first use in this function)
../libltdl/ltdl.c:634: warning: implicit declaration of function 'argz_create_sep'
../libltdl/ltdl.c:634: error: 'LT_PATHSEP_CHAR' undeclared (first use in this function)
../libltdl/ltdl.c:638: error: 'ENOMEM' undeclared (first use in this function)
../libltdl/ltdl.c:639: error: 'NO_MEMORY' undeclared (first use in this function)
../libltdl/ltdl.c:642: error: 'UNKNOWN' undeclared (first use in this function)
../libltdl/ltdl.c: In function 'foreach_dirinpath':
../libltdl/ltdl.c:661: error: 'size_t' undeclared (first use in this function)
../libltdl/ltdl.c:661: warning: statement with no effect
../libltdl/ltdl.c:661: error: expected ';' before 'filenamesize'
../libltdl/ltdl.c:662: warning: statement with no effect
../libltdl/ltdl.c:662: error: expected ';' before 'lenbase'
../libltdl/ltdl.c:663: warning: statement with no effect
../libltdl/ltdl.c:663: error: expected ';' before 'argz_len'
../libltdl/ltdl.c:670: error: 'FILE_NOT_FOUND' undeclared (first use in this function)
../libltdl/ltdl.c:677: error: 'argz_len' undeclared (first use in this function)
../libltdl/ltdl.c:677: error: too many arguments to function 'argzize_path'
../libltdl/ltdl.c:682: warning: implicit declaration of function 'argz_next'
../libltdl/ltdl.c:682: warning: assignment makes pointer from integer without a cast
../libltdl/ltdl.c:684: warning: statement with no effect
../libltdl/ltdl.c:684: error: expected ';' before 'lendir'
../libltdl/ltdl.c:686: error: 'lendir' undeclared (first use in this function)
../libltdl/ltdl.c:686: error: 'lenbase' undeclared (first use in this function)
../libltdl/ltdl.c:686: error: invalid operands to binary +
../libltdl/ltdl.c:686: error: 'filenamesize' undeclared (first use in this function)
../libltdl/ltdl.c:689: error: invalid operands to binary +
../libltdl/ltdl.c:689: warning: statement with no effect
../libltdl/ltdl.c:690: error: expected expression before 'char'
../libltdl/ltdl.c:690: warning: assignment makes pointer from integer without a cast
../libltdl/ltdl.c:696: warning: implicit declaration of function 'strcpy'
../libltdl/ltdl.c:696: warning: incompatible implicit declaration of built-in function 'strcpy'
../libltdl/ltdl.c:700: error: array subscript is not an integer
../libltdl/ltdl.c:700: warning: comparison between pointer and integer
../libltdl/ltdl.c:701: error: lvalue required as increment operand
../libltdl/ltdl.c:701: error: array subscript is not an integer
../libltdl/ltdl.c:701: warning: statement with no effect
../libltdl/ltdl.c:702: error: invalid operands to binary +
../libltdl/ltdl.c:702: warning: passing argument 1 of 'strcpy' discards qualifiers from pointer target type
../libltdl/ltdl.c: In function 'find_file_callback':
../libltdl/ltdl.c:727: error: 'FILE' undeclared (first use in this function)
../libltdl/ltdl.c:727: error: 'pfile' undeclared (first use in this function)
../libltdl/ltdl.c:727: error: invalid operands to binary *
../libltdl/ltdl.c:727: error: expected expression before ')' token
../libltdl/ltdl.c:727: error: invalid operands to binary *
../libltdl/ltdl.c:727: warning: statement with no effect
../libltdl/ltdl.c:734: warning: implicit declaration of function 'fopen'
../libltdl/ltdl.c:734: error: 'LT_READTEXT_MODE' undeclared (first use in this function)
../libltdl/ltdl.c:734: error: assignment of read-only location
../libltdl/ltdl.c:736: warning: implicit declaration of function 'strrchr'
../libltdl/ltdl.c:736: warning: incompatible implicit declaration of built-in function 'strrchr'
../libltdl/ltdl.c:739: error: 'LT_EOS_CHAR' undeclared (first use in this function)
../libltdl/ltdl.c:739: warning: assignment makes integer from pointer without a cast
../libltdl/ltdl.c:742: warning: implicit declaration of function 'lt__strdup'
../libltdl/ltdl.c:742: warning: assignment makes pointer from integer without a cast
../libltdl/ltdl.c:724: warning: unused parameter 'data2'
../libltdl/ltdl.c: At top level:
../libltdl/ltdl.c:749: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../libltdl/ltdl.c: In function 'find_handle_callback':
../libltdl/ltdl.c:762: error: 'lt_dlhandle' undeclared (first use in this function)
../libltdl/ltdl.c:762: error: 'handle' undeclared (first use in this function)
../libltdl/ltdl.c:762: error: invalid operands to binary *
../libltdl/ltdl.c:762: error: expected expression before ')' token
../libltdl/ltdl.c:762: error: invalid operands to binary *
../libltdl/ltdl.c:762: warning: statement with no effect
../libltdl/ltdl.c:763: warning: implicit declaration of function 'access'
../libltdl/ltdl.c:763: error: 'R_OK' undeclared (first use in this function)
../libltdl/ltdl.c:764: error: 'lt_dladvise' undeclared (first use in this function)
../libltdl/ltdl.c:764: warning: statement with no effect
../libltdl/ltdl.c:764: error: expected ';' before 'advise'
../libltdl/ltdl.c:772: warning: implicit declaration of function 'tryall_dlopen'
../libltdl/ltdl.c:772: error: 'advise' undeclared (first use in this function)
../libltdl/ltdl.c:773: error: assignment of read-only location
../libltdl/ltdl.c:773: warning: statement with no effect
../libltdl/ltdl.c:760: warning: unused parameter 'data'
../libltdl/ltdl.c:760: warning: unused parameter 'data2'
../libltdl/ltdl.c: At top level:
../libltdl/ltdl.c:780: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../libltdl/ltdl.c:796: error: expected ')' before 'handle'
../libltdl/ltdl.c:960: error: expected ')' before 'handle'
../libltdl/ltdl.c: In function 'trim':
../libltdl/ltdl.c:986: warning: incompatible implicit declaration of built-in function 'strrchr'
../libltdl/ltdl.c:987: error: 'size_t' undeclared (first use in this function)
../libltdl/ltdl.c:987: warning: statement with no effect
../libltdl/ltdl.c:987: error: expected ';' before 'len'
../libltdl/ltdl.c:995: error: 'len' undeclared (first use in this function)
../libltdl/ltdl.c:995: warning: comparison between pointer and integer
../libltdl/ltdl.c:997: error: expected expression before 'char'
../libltdl/ltdl.c:997: warning: assignment makes pointer from integer without a cast
../libltdl/ltdl.c:1001: warning: implicit declaration of function 'memcpy'
../libltdl/ltdl.c:1001: warning: incompatible implicit declaration of built-in function 'memcpy'
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DPLUGINSDIR=\"/usr/lib/gnash/plugins\" -I.. -I. -I.. -I../libnet -I../libamf -I../server -I../server/swf -pthread -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/local/include/boost-1_35 -march=native -O2 -pipe -fPIC -pthread -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -fvisibility-inlines-hidden -MT libgnashbase_la-extension.lo -MD -MP -MF .deps/libgnashbase_la-extension.Tpo -c extension.cpp -fPIC -DPIC -o .libs/libgnashbase_la-extension.o
../libltdl/ltdl.c:1002: error: 'LT_EOS_CHAR' undeclared (first use in this function)
../libltdl/ltdl.c:1002: warning: assignment makes integer from pointer without a cast
../libltdl/ltdl.c: At top level:
../libltdl/ltdl.c:1015: error: expected ')' before '*' token
../libltdl/ltdl.c:1129: error: expected ')' before '*' token
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DPLUGINSDIR=\"/usr/lib/gnash/plugins\" -I.. -I. -I.. -I../libnet -I../libamf -I../server -I../server/swf -pthread -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/local/include/boost-1_35 -march=native -O2 -pipe -fPIC -pthread -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -fvisibility-inlines-hidden -MT libgnashbase_la-image.lo -MD -MP -MF .deps/libgnashbase_la-image.Tpo -c image.cpp -fPIC -DPIC -o .libs/libgnashbase_la-image.o
../libltdl/ltdl.c: In function 'file_not_found':
../libltdl/ltdl.c:1478: warning: implicit declaration of function 'LT__STRERROR'
../libltdl/ltdl.c:1478: error: 'FILE_NOT_FOUND' undeclared (first use in this function)
../libltdl/ltdl.c:1478: warning: comparison between pointer and integer
../libltdl/ltdl.c: In function 'has_library_ext':
../libltdl/ltdl.c:1494: warning: incompatible implicit declaration of built-in function 'strrchr'
../libltdl/ltdl.c:1496: warning: implicit declaration of function 'streq'
../libltdl/ltdl.c: At top level:
../libltdl/ltdl.c:1512: error: expected ')' before '*' token
../libltdl/ltdl.c:1520: error: expected ')' before '*' token
../libltdl/ltdl.c:1528: error: expected ')' before '*' token
../libltdl/ltdl.c:1536: error: expected ')' before '*' token
../libltdl/ltdl.c:1544: error: expected ')' before '*' token
../libltdl/ltdl.c:1552: error: expected ')' before '*' token
../libltdl/ltdl.c:1561: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lt_dlopen'
../libltdl/ltdl.c:1572: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lt_dlopenext'
../libltdl/ltdl.c:1586: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lt_dlopenadvise'
../libltdl/ltdl.c:1645: error: expected declaration specifiers or '...' before 'size_t'
../libltdl/ltdl.c: In function 'lt_argz_insert':
../libltdl/ltdl.c:1648: error: 'error_t' undeclared (first use in this function)
../libltdl/ltdl.c:1648: warning: statement with no effect
../libltdl/ltdl.c:1648: error: expected ';' before 'error'
../libltdl/ltdl.c:1653: error: 'error' undeclared (first use in this function)
../libltdl/ltdl.c:1653: warning: implicit declaration of function 'argz_insert'
../libltdl/ltdl.c:1653: error: 'pargz_len' undeclared (first use in this function)
../libltdl/ltdl.c:1653: warning: statement with no effect
../libltdl/ltdl.c:1655: warning: implicit declaration of function 'argz_append'
../libltdl/ltdl.c:1655: warning: implicit declaration of function 'strlen'
../libltdl/ltdl.c:1655: warning: incompatible implicit declaration of built-in function 'strlen'
../libltdl/ltdl.c:1655: warning: statement with no effect
../libltdl/ltdl.c:1661: error: 'ENOMEM' undeclared (first use in this function)
../libltdl/ltdl.c:1662: error: 'NO_MEMORY' undeclared (first use in this function)
../libltdl/ltdl.c:1665: error: 'UNKNOWN' undeclared (first use in this function)
../libltdl/ltdl.c: At top level:
../libltdl/ltdl.c:1675: error: expected declaration specifiers or '...' before 'size_t'
../libltdl/ltdl.c: In function 'lt_argz_insertinorder':
../libltdl/ltdl.c:1680: error: 'pargz_len' undeclared (first use in this function)
../libltdl/ltdl.c:1684: warning: assignment makes pointer from integer without a cast
../libltdl/ltdl.c:1686: warning: implicit declaration of function 'strcmp'
../libltdl/ltdl.c:1692: warning: passing argument 2 of 'lt_argz_insert' discards qualifiers from pointer target type
../libltdl/ltdl.c:1692: error: too many arguments to function 'lt_argz_insert'
../libltdl/ltdl.c: At top level:
../libltdl/ltdl.c:1696: error: expected declaration specifiers or '...' before 'size_t'
../libltdl/ltdl.c:1697: warning: 'struct dirent' declared inside parameter list
../libltdl/ltdl.c:1698: error: conflicting types for 'lt_argz_insertdir'
../libltdl/ltdl.c:131: error: previous declaration of 'lt_argz_insertdir' was here
../libltdl/ltdl.c: In function 'lt_argz_insertdir':
../libltdl/ltdl.c:1700: error: 'size_t' undeclared (first use in this function)
../libltdl/ltdl.c:1700: warning: statement with no effect
../libltdl/ltdl.c:1700: error: expected ';' before 'buf_len'
../libltdl/ltdl.c:1702: warning: statement with no effect
../libltdl/ltdl.c:1702: error: expected ';' before 'end_offset'
../libltdl/ltdl.c:1703: warning: statement with no effect
../libltdl/ltdl.c:1703: error: expected ';' before 'dir_len'
../libltdl/ltdl.c:1707: error: 'pargz_len' undeclared (first use in this function)
../libltdl/ltdl.c:1710: error: 'dir_len' undeclared (first use in this function)
../libltdl/ltdl.c:1710: warning: implicit declaration of function 'LT_STRLEN'
../libltdl/ltdl.c:1710: warning: statement with no effect
../libltdl/ltdl.c:1711: error: dereferencing pointer to incomplete type
../libltdl/ltdl.c:1711: error: request for member 'd_name' in something not a structure or union
../libltdl/ltdl.c:1711: warning: implicit declaration of function 'D_NAMLEN'
../libltdl/ltdl.c:1711: warning: assignment discards qualifiers from pointer target type
../libltdl/ltdl.c:1716: error: dereferencing pointer to incomplete type
../libltdl/ltdl.c:1716: error: request for member 'd_name' in something not a structure or union
../libltdl/ltdl.c:1717: warning: implicit declaration of function 'strchr'
../libltdl/ltdl.c:1717: warning: incompatible implicit declaration of built-in function 'strchr'
../libltdl/ltdl.c:1727: error: dereferencing pointer to incomplete type
../libltdl/ltdl.c:1727: error: request for member 'd_name' in something not a structure or union
../libltdl/ltdl.c:1736: error: 'end_offset' undeclared (first use in this function)
../libltdl/ltdl.c:1736: error: dereferencing pointer to incomplete type
../libltdl/ltdl.c:1736: error: request for member 'd_name' in something not a structure or union
../libltdl/ltdl.c:1736: warning: statement with no effect
../libltdl/ltdl.c:1737: error: 'buf_len' undeclared (first use in this function)
../libltdl/ltdl.c:1737: error: invalid operands to binary +
../libltdl/ltdl.c:1737: warning: statement with no effect
../libltdl/ltdl.c:1738: error: expected expression before 'char'
../libltdl/ltdl.c:1738: warning: assignment makes pointer from integer without a cast
../libltdl/ltdl.c:1744: warning: incompatible implicit declaration of built-in function 'strcpy'
../libltdl/ltdl.c:1745: warning: implicit declaration of function 'strcat'
../libltdl/ltdl.c:1745: warning: incompatible implicit declaration of built-in function 'strcat'
../libltdl/ltdl.c:1746: warning: implicit declaration of function 'strncat'
../libltdl/ltdl.c:1746: warning: incompatible implicit declaration of built-in function 'strncat'
../libltdl/ltdl.c:1746: error: dereferencing pointer to incomplete type
../libltdl/ltdl.c:1746: error: request for member 'd_name' in something not a structure or union
../libltdl/ltdl.c:1746: warning: passing argument 3 of 'strncat' makes integer from pointer without a cast
../libltdl/ltdl.c:1747: error: array subscript is not an integer
../libltdl/ltdl.c:1747: error: 'LT_EOS_CHAR' undeclared (first use in this function)
../libltdl/ltdl.c:1747: warning: statement with no effect
../libltdl/ltdl.c:1750: error: too many arguments to function 'lt_argz_insertinorder'
../libltdl/ltdl.c: At top level:
../libltdl/ltdl.c:1759: error: expected declaration specifiers or '...' before 'size_t'
../libltdl/ltdl.c: In function 'list_files_by_dir':
../libltdl/ltdl.c:1761: error: 'DIR' undeclared (first use in this function)
../libltdl/ltdl.c:1761: error: 'dirp' undeclared (first use in this function)
../libltdl/ltdl.c:1761: error: invalid operands to binary *
../libltdl/ltdl.c:1761: warning: statement with no effect
../libltdl/ltdl.c:1766: error: 'pargz_len' undeclared (first use in this function)
../libltdl/ltdl.c:1769: warning: implicit declaration of function 'opendir'
../libltdl/ltdl.c:1769: warning: statement with no effect
../libltdl/ltdl.c:1774: warning: implicit declaration of function 'readdir'
../libltdl/ltdl.c:1774: warning: assignment makes pointer from integer without a cast
../libltdl/ltdl.c:1775: error: dereferencing pointer to incomplete type
../libltdl/ltdl.c:1775: error: request for member 'd_name' in something not a structure or union
../libltdl/ltdl.c:1776: warning: passing argument 3 of 'lt_argz_insertdir' from incompatible pointer type
../libltdl/ltdl.c:1776: error: too many arguments to function 'lt_argz_insertdir'
../libltdl/ltdl.c:1782: warning: implicit declaration of function 'closedir'
../libltdl/ltdl.c: In function 'foreachfile_callback':
../libltdl/ltdl.c:1800: error: 'size_t' undeclared (first use in this function)
../libltdl/ltdl.c:1800: warning: statement with no effect
../libltdl/ltdl.c:1800: error: expected ';' before 'argz_len'
../libltdl/ltdl.c:1802: error: 'argz_len' undeclared (first use in this function)
../libltdl/ltdl.c:1802: error: too many arguments to function 'list_files_by_dir'
../libltdl/ltdl.c:1809: warning: assignment makes pointer from integer without a cast
../libltdl/ltdl.c: At top level:
../libltdl/ltdl.c:1831: warning: no previous prototype for 'lt_dlforeachfile'
../libltdl/ltdl.c: In function 'lt_dlforeachfile':
../libltdl/ltdl.c:1849: warning: implicit declaration of function 'getenv'
../libltdl/ltdl.c:1850: warning: passing argument 1 of 'foreach_dirinpath' makes pointer from integer without a cast
../libltdl/ltdl.c: At top level:
../libltdl/ltdl.c:1873: error: expected ')' before 'handle'
../libltdl/ltdl.c:1937: error: expected ')' before 'place'
../libltdl/ltdl.c:2033: warning: no previous prototype for 'lt_dlerror'
../libltdl/ltdl.c: In function 'lt_dlerror':
../libltdl/ltdl.c:2039: error: 'NULL' undeclared (first use in this function)
../libltdl/ltdl.c: In function 'lt_dlpath_insertdir':
../libltdl/ltdl.c:2048: error: 'size_t' undeclared (first use in this function)
../libltdl/ltdl.c:2048: warning: statement with no effect
../libltdl/ltdl.c:2048: error: expected ';' before 'argz_len'
../libltdl/ltdl.c:2067: warning: assignment makes pointer from integer without a cast
../libltdl/ltdl.c:2076: error: 'argz_len' undeclared (first use in this function)
../libltdl/ltdl.c:2076: error: too many arguments to function 'argzize_path'
../libltdl/ltdl.c:2090: warning: incompatible implicit declaration of built-in function 'strlen'
../libltdl/ltdl.c:2095: warning: passing argument 2 of 'lt_argz_insert' from incompatible pointer type
../libltdl/ltdl.c:2095: error: too many arguments to function 'lt_argz_insert'
../libltdl/ltdl.c:2101: warning: implicit declaration of function 'argz_stringify'
../libltdl/ltdl.c:2101: error: 'LT_PATHSEP_CHAR' undeclared (first use in this function)
../libltdl/ltdl.c:2102: warning: implicit declaration of function 'MEMREASSIGN'
../libltdl/ltdl.c: At top level:
../libltdl/ltdl.c:2113: warning: no previous prototype for 'lt_dladdsearchdir'
../libltdl/ltdl.c:2127: warning: no previous prototype for 'lt_dlinsertsearchdir'
../libltdl/ltdl.c: In function 'lt_dlinsertsearchdir':
../libltdl/ltdl.c:2135: error: 'INVALID_POSITION' undeclared (first use in this function)
../libltdl/ltdl.c:2143: warning: cast discards qualifiers from pointer target type
../libltdl/ltdl.c: At top level:
../libltdl/ltdl.c:2154: warning: no previous prototype for 'lt_dlsetsearchpath'
../libltdl/ltdl.c:2172: warning: no previous prototype for 'lt_dlgetsearchpath'
../libltdl/ltdl.c:2181: error: expected ')' before 'handle'
../libltdl/ltdl.c:2199: error: expected ')' before 'handle'
../libltdl/ltdl.c:2216: error: expected specifier-qualifier-list before 'lt_dlhandle_interface'
../libltdl/ltdl.c:2220: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lt_dlinterface_register'
../libltdl/ltdl.c:2238: error: expected ')' before 'key'
../libltdl/ltdl.c:2246: error: expected ')' before 'key'
../libltdl/ltdl.c:2293: error: expected ')' before 'key'
../libltdl/ltdl.c:2315: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../libltdl/ltdl.c:2329: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lt_dlhandle_iterate'
../libltdl/ltdl.c:2353: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lt_dlhandle_fetch'
../libltdl/ltdl.c:2371: error: expected ')' before 'iface'
make[2]: *** [libltdlc_la-ltdl.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DPLUGINSDIR=\"/usr/lib/gnash/plugins\" -I.. -I. -I.. -I../libnet -I../libamf -I../server -I../server/swf -pthread -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/local/include/boost-1_35 -march=native -O2 -pipe -fPIC -pthread -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -fvisibility-inlines-hidden -MT libgnashbase_la-image.lo -MD -MP -MF .deps/libgnashbase_la-image.Tpo -c image.cpp -o libgnashbase_la-image.o >/dev/null 2>&1
mv -f .deps/libgnashbase_la-image.Tpo .deps/libgnashbase_la-image.Plo
In file included from /usr/local/include/boost-1_35/boost/thread/pthread/mutex.hpp:18,
from /usr/local/include/boost-1_35/boost/thread/mutex.hpp:16,
from /usr/local/include/boost-1_35/boost/thread/pthread/thread.hpp:14,
from /usr/local/include/boost-1_35/boost/thread/thread.hpp:17,
from log.h:34,
from extension.cpp:41:
/usr/local/include/boost-1_35/boost/thread/pthread/timespec.hpp: In function 'timespec boost::detail::get_timespec(const boost::system_time&)':
/usr/local/include/boost-1_35/boost/thread/pthread/timespec.hpp:18: warning: missing initializer for member 'timespec::tv_nsec'
In file included from /usr/local/include/boost-1_35/boost/thread/pthread/condition_variable_fwd.hpp:12,
from /usr/local/include/boost-1_35/boost/thread/pthread/thread_data.hpp:14,
from /usr/local/include/boost-1_35/boost/thread/pthread/condition_variable.hpp:14,
from /usr/local/include/boost-1_35/boost/thread/condition_variable.hpp:16,
from /usr/local/include/boost-1_35/boost/thread/pthread/thread.hpp:15,
from /usr/local/include/boost-1_35/boost/thread/thread.hpp:17,
from log.h:34,
from extension.cpp:41:
/usr/local/include/boost-1_35/boost/thread/xtime.hpp: In function 'boost::xtime boost::get_xtime(const boost::system_time&)':
/usr/local/include/boost-1_35/boost/thread/xtime.hpp:59: warning: missing initializer for member 'boost::xtime::nsec'
extension.cpp: In member function 'bool gnash::Extension::scanDir(const char*)':
extension.cpp:208: warning: unused variable 'libsdir'
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DPLUGINSDIR=\"/usr/lib/gnash/plugins\" -I.. -I. -I.. -I../libnet -I../libamf -I../server -I../server/swf -pthread -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/local/include/boost-1_35 -march=native -O2 -pipe -fPIC -pthread -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -fvisibility-inlines-hidden -MT libgnashbase_la-extension.lo -MD -MP -MF .deps/libgnashbase_la-extension.Tpo -c extension.cpp -o libgnashbase_la-extension.o >/dev/null 2>&1
mv -f .deps/libgnashbase_la-extension.Tpo .deps/libgnashbase_la-extension.Plo
make[2]: Leaving directory `/tmp/gnash-work/src/gnash/libbase'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/gnash-work/src/gnash'
make: *** [all] Error 2

Fredrik <fredrikr>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bwy (Posted a comment)
  • -unavailable- added by rsavoye (Posted a comment)
  • -unavailable- added by kaaloo (Posted a comment)
  • -unavailable- added by geki (Posted a comment)
  • -unavailable- added by nickw (Posted a comment)
  • -unavailable- added by butdiene (Posted a comment)
  • -unavailable- added by geki
  • -unavailable- added by fredrikr (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 18 Sep 2008 06:48:02 AM UTCbwyStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Fri 12 Sep 2008 07:19:50 PM UTCrsavoyeStatusNone=>Ready For Test
      Assigned toNone=>rsavoye
    Tue 06 May 2008 02:05:22 PM UTCgekiCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1