pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pdf-devel] "Hello" and questions


From: Pablo Vasquez
Subject: [pdf-devel] "Hello" and questions
Date: Tue, 7 Jul 2009 11:15:14 +0000

Hello all. I recently came by the gnupdf site and got quite interested in the project, and also read its in need of contribution.
I have some experience as a C coder under linux and (much, much less) in w32, and I think it's time to give something back to the always-giving open source community.
I've read the information for newcomers and hacker's guide, also started reading the library architecture guide.
Already got the bazaar source and been fiddling a bit with it.
I'm really new to this mailing-list thingie, and may need corrections and advise on ethics and such stuff, for that I apologise.
So... Hello!

And now the questions if they can be called such.

uname -a
Linux nariz 2.6.30 #10 SMP Thu Jun 18 18:12:13 ART 2009 i686 GNU/Linux

Looking at FS#85 in the tasks list, started trying to reproduce the issue, but haven't even got it to cleanly cross-compile to w32.
First, I would like to know if that's the way to go, I mean, compiling through mingw32 and using wine. At least it seems so according to http://lists.gnu.org/archive/html/pdf-devel/2009-01/msg00023.html.
I've downloaded, compiled and installed w32 versions of libgcrypt and libgpg-error with prefix /usr/i586-mingw32msvc.
Created a w32build dir in trunk and in there:

../configure --host=i586-mingw32msvc --with-libgcrypt-prefix=/usr/i586-mingw32msvc --with-zlib=/usr/i586-mingw32msvc

Running make brings

[...]
/bin/sh ../libtool --tag=CC   --mode=compile i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I../../src  -I../../lib -I../../src/base -I../../src/object -I../../src/document -I/usr/i586-mingw32msvc/include -Wall -fno-strict-aliasing   -g -O2 -MT pdf-fsys-disk.lo -MD -MP -MF .deps/pdf-fsys-disk.Tpo -c -o pdf-fsys-disk.lo `test -f 'base/pdf-fsys-disk.c' || echo '../../src/'`base/pdf-fsys-disk.c
 i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../lib -I../../src/base -I../../src/object -I../../src/document -I/usr/i586-mingw32msvc/include -Wall -fno-strict-aliasing -g -O2 -MT pdf-fsys-disk.lo -MD -MP -MF .deps/pdf-fsys-disk.Tpo -c ../../src/base/pdf-fsys-disk.c  -DDLL_EXPORT -DPIC -o .libs/pdf-fsys-disk.o
../../src/base/pdf-fsys-disk.c: In function '__pdf_fsys_disk_get_status_from_errno':
../../src/base/pdf-fsys-disk.c:1442: error: 'EOVERFLOW' undeclared (first use in this function)
../../src/base/pdf-fsys-disk.c:1442: error: (Each undeclared identifier is reported only once
../../src/base/pdf-fsys-disk.c:1442: error: for each function it appears in.)
../../src/base/pdf-fsys-disk.c:1451: error: 'ETXTBSY' undeclared (first use in this function)
make[2]: *** [pdf-fsys-disk.lo] Error 1
make[2]: Leaving directory `/home/code/lignupdf/w32/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/code/lignupdf/w32/src'
make: *** [all-recursive] Error 1
[...]

Which I "hotfixed" commenting lines 1442 and 1451 of src/base/pdf-fsys-disk.c just to go on.

Running make again gives:

[...]
/bin/sh ../libtool --tag=CC   --mode=link i586-mingw32msvc-gcc -Wall -fno-strict-aliasing   -g -O2 -no-undefined -L/usr/i586-mingw32msvc/lib -o libgnupdf.la -rpath /usr/local/lib pdf-global.lo pdf-base.lo pdf-alloc.lo pdf-types.lo pdf-fp.lo pdf-fp-func.lo pdf-fsys.lo pdf-fsys-disk.lo pdf-stm.lo pdf-stm-be.lo pdf-stm-filter.lo pdf-stm-f-null.lo pdf-stm-f-ahex.lo pdf-stm-f-rl.lo pdf-stm-f-v2.lo pdf-stm-f-aesv2.lo pdf-stm-f-md5.lo pdf-stm-f-flate.lo   pdf-error.lo pdf-list.lo pdf-text-context.lo pdf-text-encoding.lo pdf-text-host-encoding.lo pdf-text-filter.lo pdf-text-ucd-case.lo pdf-text-ucd-combclass.lo pdf-text-ucd-wordbreak.lo pdf-text-ucd-gencat.lo pdf-text-ucd-proplist.lo pdf-text.lo pdf-hash.lo pdf-hash-helper.lo pdf-time-context.lo pdf-time-string.lo pdf-time.lo pdf-crypt.lo pdf-crypt-c-aesv2.lo pdf-crypt-c-v2.lo pdf-token.lo pdf-token-reader.lo ../lib/libgnu.la  -lm -lz
i586-mingw32msvc-gcc -shared  .libs/pdf-global.o .libs/pdf-base.o .libs/pdf-alloc.o .libs/pdf-types.o .libs/pdf-fp.o .libs/pdf-fp-func.o .libs/pdf-fsys.o .libs/pdf-fsys-disk.o .libs/pdf-stm.o .libs/pdf-stm-be.o .libs/pdf-stm-filter.o .libs/pdf-stm-f-null.o .libs/pdf-stm-f-ahex.o .libs/pdf-stm-f-rl.o .libs/pdf-stm-f-v2.o .libs/pdf-stm-f-aesv2.o .libs/pdf-stm-f-md5.o .libs/pdf-stm-f-flate.o .libs/pdf-error.o .libs/pdf-list.o .libs/pdf-text-context.o .libs/pdf-text-encoding.o .libs/pdf-text-host-encoding.o .libs/pdf-text-filter.o .libs/pdf-text-ucd-case.o .libs/pdf-text-ucd-combclass.o .libs/pdf-text-ucd-wordbreak.o .libs/pdf-text-ucd-gencat.o .libs/pdf-text-ucd-proplist.o .libs/pdf-text.o .libs/pdf-hash.o .libs/pdf-hash-helper.o .libs/pdf-time-context.o .libs/pdf-time-string.o .libs/pdf-time.o .libs/pdf-crypt.o .libs/pdf-crypt-c-aesv2.o .libs/pdf-crypt-c-v2.o .libs/pdf-token.o .libs/pdf-token-reader.o -Wl,--whole-archive ../lib/.libs/libgnu.a -Wl,--no-whole-archive  -L/usr/i586-mingw32msvc/lib -lz  -o .libs/libgnupdf-0.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libgnupdf.dll.a
Creating library file: .libs/libgnupdf.dll.a
.libs/pdf-stm-f-md5.o: In function `pdf_crypt_md_write':
/root/code/lignupdf/w32/src/../../src/base/pdf-crypt.h:299: undefined reference to `_gcry_md_write'
.libs/pdf-stm-f-md5.o: In function `pdf_crypt_md_read':
/root/code/lignupdf/w32/src/../../src/base/pdf-crypt.h:309: undefined reference to `_gcry_md_get_algo_dlen'
/root/code/lignupdf/w32/src/../../src/base/pdf-crypt.h:314: undefined reference to `_gcry_md_ctl'
/root/code/lignupdf/w32/src/../../src/base/pdf-crypt.h:322: undefined reference to `_gcry_md_read'
/root/code/lignupdf/w32/src/../../src/base/pdf-crypt.h:331: undefined reference to `_gcry_md_reset'
.libs/pdf-stm-f-md5.o: In function `pdf_crypt_md_new':
/root/code/lignupdf/w32/src/../../src/base/pdf-crypt.h:272: undefined reference to `_gcry_md_open'
/root/code/lignupdf/w32/src/../../src/base/pdf-crypt.h:280: undefined reference to `_gcry_md_close'
.libs/pdf-crypt.o: In function `pdf_crypt_md_read':
/root/code/lignupdf/w32/src/../../src/base/pdf-crypt.h:309: undefined reference to `_gcry_md_get_algo_dlen'
/root/code/lignupdf/w32/src/../../src/base/pdf-crypt.h:314: undefined reference to `_gcry_md_ctl'

[SEVERAL MORE LIBGCRYPT UNDEFINED REFERENCES]

collect2: ld returned 1 exit status
make[2]: *** [libgnupdf.la] Error 1
make[2]: Leaving directory `/home/code/lignupdf/w32/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/code/lignupdf/w32/src'
make: *** [all-recursive] Error 1

Which I "hotfixed" running 

make LDFLAGS=-lgcrypt

And building finished successfully, so to speak.

So, are these issues known or is there something wrong with my environment?
Is something else required to build the tests correctly?
How was libgnupdf built in the report citated in FS#85?

I'll get on with it anyway, but thought it would be good to ask.

Thanks.
Pablo.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]