[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdf-devel] UUID implementation trouble
From: |
Albert Meroño Peñuela |
Subject: |
Re: [pdf-devel] UUID implementation trouble |
Date: |
Thu, 17 Feb 2011 21:16:05 +0100 |
OK, both problems are solved. The linkage failure with the external
libuuid library, as Brad pointed, was due to a lacking linker variable
in this line in src/Makefile.am (added $(LTLIBUUID) and worked fine):
libgnupdf_la_LDFLAGS = $(top_builddir)/lib/libgnu.la \
$(LTLIBUUID) $(LTLIBPTHREAD) $(LTLIBM) \
$(LTLIBJBIG2DEC) $(LTLIBJPEG) $(LTLIBCURL) \
$(LIBGCRYPT_LIBS) $(LTLIBGPG_ERROR) $(LTLIBGCRYPT) \
$(LTLIBCHECK) $(LTLIBICONV)
The public header issue was due to: a) lack of the corresponding
entrance in the PUBLIC_HDRS variable; b) absence of the /* BEGIN
PUBLIC */ and /* END PUBLIC */ marks in public datatypes and functions
in src/base/pdf-types-uuid.h
I can go on now on this, thanks for the help!
Albert
2011/2/17 Albert Meroño Peñuela <address@hidden>:
> diff outputs this:
>
> configure.ac
>
> 104a105,107
>> dnl libuuid
>> AC_LIB_HAVE_LINKFLAGS([uuid])
>>
> 395a399,402
>> fi
>> if test "x$HAVE_LIBUUID" != "xyes"; then
>> missing_libs="$missing_libs
>> libuuid"
>
> src/Makefile.am
>
> 35c35,36
> < base/pdf-types-pmon.h
> ---
>> base/pdf-types-pmon.h \
>> base/pdf-types-uuid.c base/pdf-types-uuid.h
> 99c100
> < $(TYPES_MODULE_SOURCES) \
> ---
>> OA $(TYPES_MODULE_SOURCES) \
>
> Is there something missing / wrong?
>
> Thanks in advance,
>
> Albert
>
> 2011/2/16 Jose E. Marchesi <address@hidden>:
>>
>> > The failing reference is a call to the linked libbuid library. I have
>> > modified src/Makefile.am, adding both pdf-types-uuid.[ch] in
>> > TYPES_MODULE_SOURCES. I have also added uuid as a requirement to check
>> > during the bootsrap at ./configure.ac (the configure script checks
>> > correctly if libuuid is present or not).
>> You need to add the library location / name to the linker too (almost
>> certainly called something like LIB_UUID or UUID_LIB).
>>
>> Can you post your current changes to src/Makefile.am as a diff? That will
>> probably make it easier to provide useful advice.
>>
>> Please also include the changes to configure.ac
>>
>> --
>> Jose E. Marchesi address@hidden
>> GNU Project http://www.gnu.org
>>
>