Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerald Pfeifer wrote: On Mon, 10 May 2010, Tsurutani Naoki wrote: I just had an idea -- how about the patch below to allow pdftk to build also in a LANG=ja_JP.eucJP setting? It works fine on my host ! Thank you !! Excellent, thank you for the confirmation! Greg, do you approve? (This addresses fifty percent of my open PRs. ;-) Gerald That's OK with me. Thanks for figuring it out! Thank you, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFL7eFK0sRouByUApARAvwbAKCM6nwM5erVX6ILll2IDrDfUEAYiQCgx9oQ LbH93YbalxkbsXBCTz6ZlcE= =aDTw -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5
On Mon, 10 May 2010, Tsurutani Naoki wrote: I just had an idea -- how about the patch below to allow pdftk to build also in a LANG=ja_JP.eucJP setting? It works fine on my host ! Thank you !! Excellent, thank you for the confirmation! Greg, do you approve? (This addresses fifty percent of my open PRs. ;-) Gerald ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5
I just had an idea -- how about the patch below to allow pdftk to build also in a LANG=ja_JP.eucJP setting? Does this work? Gerald Index: Makefile === RCS file: /home/ncvs/ports/print/pdftk/Makefile,v retrieving revision 1.30 diff -u -3 -p -r1.30 Makefile --- Makefile3 May 2010 19:56:44 - 1.30 +++ Makefile9 May 2010 13:17:05 - @@ -37,7 +37,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAM PATCH_WRKSRC= ${WRKDIR}/${DISTNAME} MAKEFILE= Makefile.Generic -MAKE_ENV= GCJ=gcj${CSUFF} GCJH=gcjh${CSUFF} OBJCOPY=${OBJCOPY} +MAKE_ENV= GCJ=gcj${CSUFF} GCJH=gcjh${CSUFF} OBJCOPY=${OBJCOPY} LANG=C MAN1= ${PORTNAME}.1 PLIST_FILES= bin/pdftk ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5
Gerald Pfeifer ger...@pfeifer.com wrote: I just had an idea -- how about the patch below to allow pdftk to build also in a LANG=ja_JP.eucJP setting? Does this work? Gerald Index: Makefile === RCS file: /home/ncvs/ports/print/pdftk/Makefile,v retrieving revision 1.30 diff -u -3 -p -r1.30 Makefile --- Makefile 3 May 2010 19:56:44 - 1.30 +++ Makefile 9 May 2010 13:17:05 - @@ -37,7 +37,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAM PATCH_WRKSRC=${WRKDIR}/${DISTNAME} MAKEFILE=Makefile.Generic -MAKE_ENV=GCJ=gcj${CSUFF} GCJH=gcjh${CSUFF} OBJCOPY=${OBJCOPY} +MAKE_ENV=GCJ=gcj${CSUFF} GCJH=gcjh${CSUFF} OBJCOPY=${OBJCOPY} LANG=C MAN1=${PORTNAME}.1 PLIST_FILES= bin/pdftk It works fine on my host ! Thank you !! --- Tsurutani Naoki turut...@scphys.kyoto-u.ac.jp ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tsurutani Naoki wrote: Greg Larkin glar...@freebsd.org wrote: As far as I can tell, this error is caused by the LANG setting which changes the line: if (value.startsWith(\)) into something that results an unterminated string. I suppose the backslash loses its meaning as an escape character. I found some references to the same error in Google, posted by folks trying to compile software with different LANG settings. I haven't found a general fix yet, but maybe it can be done by building a character string from individual, unescaped characters, then converting them to a java.lang.String object for use in the .startsWith() function. If you could submit a PR to support building with LANG=ja_JP.eucJP, I would be very appreciative! Thank you for your reply. But I have no idea to avoid this... This trouble does not occur while building with gcc42 or any older building processes. Therefore I think this may be a bug of gcc45. Moving to gcc45, this may cause an error. In addition, run-time dependence to gcc library may be necessary as I said in another mail. Hi Tsurutani, Can you file a bug report against gcj45 with the LANG=ja_JP.eucJP setting, using the pdftk problem as an example? That way, the upstream gcc developers will be notified that there's a problem. In the mean time, I am investigating whether it's feasible to add Java support to all of the lang/gcc4* ports so pdftk can use a version older than 4.5, if the gcj binary is already installed. This will also save a lot of time installing a complete gcc just to get the gcj compiler. Thank you, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFL2cj30sRouByUApARArt6AKC/Wj8VdMkI1sRyLt56g/ROTCFsYACgn7tE yhWtxv6W9jg0WJXv0VfCxLU= =sP3a -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tsurutani Naoki wrote: Thank you for your fix. pdftk can be built and executed with gcc42. however, it requires gcc42 when we run pdftk. we need some kinds of RUN_DEPENDS= ${LOCALBASE}/lib/gcc${CSUFF}/libgcj.so:${PORTSDIR}/lang/gcc${CSUFF} in print/pdftk/Makefile, I think. --- Tsurutani Naoki turut...@scphys.kyoto-u.ac.jp Hi Tsurutani, I'm waiting for approval on a patch to gcc45 that adds Java support so I can commit the updated pdftk port that compiles with gcj45. I know that this will cause problems with your LANG setting, but you can work around it by building like this: cd /usr/ports/print/pdftk make _USE_GCC=4.2 USE_GCC=4.2 install clean Thank you, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFL2cpJ0sRouByUApARAmwIAJ95WbBaLbQdBXOAm4a35Xpnorb2gACgstoT lOOc0MgGQoTGtl75PgV3mr0= =oKAH -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5
Thank you for your fix. pdftk can be built and executed with gcc42. however, it requires gcc42 when we run pdftk. we need some kinds of RUN_DEPENDS= ${LOCALBASE}/lib/gcc${CSUFF}/libgcj.so:${PORTSDIR}/lang/gcc${CSUFF} in print/pdftk/Makefile, I think. --- Tsurutani Naoki turut...@scphys.kyoto-u.ac.jp ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tsurutani Naoki wrote: Greg Larkin glar...@freebsd.org wrote: [... original patching instructions deleted ...] [... results of first patch set testing ...] 1. FreeBSD/amd64 8-STABLE : building OK, but failed to run. % uname -a FreeBSD h116.65.226.10.32118.vlan.kuins.net 8.0-STABLE FreeBSD 8.0-STABLE #22: Sat Feb 13 14:06:06 JST 2010 turut...@h116.65.226.10.32118.vlan.kuins.net:/usr/obj/usr/src/sys/POLYMER13 amd64 % pdftk /usr/local/share/doc/OpenEXR/TechnicalIntroduction.pdf output out.pdf owner_pw foopass /libexec/ld-elf.so.1: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.11 required by /usr/local/bin/pdftk not found [...] 3, 4. FreeBSD/i386 8-STABLE : just the same on amd64. % uname -a FreeBSD h120.65.226.10.32118.vlan.kuins.net 8.0-STABLE FreeBSD 8.0-STABLE #22: Sat Feb 13 14:53:25 JST 2010 turut...@h120.65.226.10.32118.vlan.kuins.net:/usr/local/work/usr/obj/usr/src/sys/POLYMER i386 % pdftk /usr/local/share/doc/OpenEXR/TechnicalIntroduction.pdf output suzu.128.pdf owner_pw foopass /libexec/ld-elf.so.1: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.11 required by /usr/local/bin/pdftk not found --- Tsurutani Naoki turut...@scphys.kyoto-u.ac.jp Hello Tsurutani, I have a new patch set for you to build pdftk with gcc 4.5. This one fixes the libstdc++ versioning problem by passing the -Wl,rpath argument to gcj (thank you, Gerald) so pdftk finds the correct shared library. You can find the patch files here: http://people.freebsd.org/~glarkin/diffs/gcc45%2bgcj-2.diff http://people.freebsd.org/~glarkin/diffs/pdftk%2bgcc45-2.diff To apply them, first update your ports tree to get the latest version of lang/gcc45 and fetch the patch files into /usr/ports. Then follow these steps: cd /usr/ports patch gcc45+gcj-2.diff patch pdftk+gcc45-2.diff cd lang/gcc45 make deinstall install clean cd ../../print/pdftk find files -name patch-\*.orig -delete make deinstall install clean Let me know how that works for you, and if everything builds successfully, I'll commit the changes to the ports tree. Thank you, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLzb+p0sRouByUApARAnOtAJ0TxJCPfuTSemZz1QEKU9UWBZcwuQCgo3+m PY3Sz2PDIyUmJFBtKLPiugg= =do8G -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5
On Tue, 13 Apr 2010, Greg Larkin wrote: Ok, I see why there's a problem now. My linker hints were set up in such a way that /usr/local/lib/gcc45 appeared before /usr/lib, so I didn't have the libstdc++.so.6 problem. However, that's not a normal configuration, so we have to fix this another way. Gerald, you ran into this problem a while back and posted a question about it here: http://www.mail-archive.com/freebsd-ports@freebsd.org/msg23261.html There are some other folks with the same problem here (old thread): http://gcc.gnu.org/ml/gcc/2001-03/msg01069.html Did you ever decide on a resolution for this problem? Should I simply create a wrapper script for pdftk that sets LD_LIBRARY_PATH, or is the rpath solution better? The way I have addressed this for C, C++ and from what I can tell all relevant Fortran users of USE_GCC= is by setting the following CFLAGS+=-Wl,-rpath=${LOCALBASE}/lib/${_GCC_BUILD_DEPENDS} LDFLAGS+= -Wl,-rpath=${LOCALBASE}/lib/${_GCC_BUILD_DEPENDS} in Mk/bsd.gcc.mk. Apparently pdftk does not use LDFLAGS (and it not using CFLAGS for Java code is somewhat expected). Is there some similar variable we could set for Java code? JFLAG, JAVAFLAGS,...? Or could you inject the use of CFLAGS or LDFLAGS during linking? Gerald ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerald Pfeifer wrote: On Tue, 13 Apr 2010, Greg Larkin wrote: Ok, I see why there's a problem now. My linker hints were set up in such a way that /usr/local/lib/gcc45 appeared before /usr/lib, so I didn't have the libstdc++.so.6 problem. However, that's not a normal configuration, so we have to fix this another way. Gerald, you ran into this problem a while back and posted a question about it here: http://www.mail-archive.com/freebsd-ports@freebsd.org/msg23261.html There are some other folks with the same problem here (old thread): http://gcc.gnu.org/ml/gcc/2001-03/msg01069.html Did you ever decide on a resolution for this problem? Should I simply create a wrapper script for pdftk that sets LD_LIBRARY_PATH, or is the rpath solution better? The way I have addressed this for C, C++ and from what I can tell all relevant Fortran users of USE_GCC= is by setting the following CFLAGS+=-Wl,-rpath=${LOCALBASE}/lib/${_GCC_BUILD_DEPENDS} LDFLAGS+= -Wl,-rpath=${LOCALBASE}/lib/${_GCC_BUILD_DEPENDS} in Mk/bsd.gcc.mk. Apparently pdftk does not use LDFLAGS (and it not using CFLAGS for Java code is somewhat expected). Is there some similar variable we could set for Java code? JFLAG, JAVAFLAGS,...? Or could you inject the use of CFLAGS or LDFLAGS during linking? Gerald Hi Gerald, Thank you for that pointer, and I'll have a look at the pdftk build process and see if I can do something equivalent during the compile and link phases. If I can get that work, then perhaps the gcc45+gcj patch will be ready to commit and we can leave gcc42+gcj behind! Thank you, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLx8Qg0sRouByUApARAotDAKCYyKTnHJO9zJxkkhYyOO1T2F2gCQCeMywi YS0b3mvOj2ZKphjdqmqVtoE= =41Ip -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tsurutani Naoki wrote: Greg Larkin glar...@freebsd.org wrote: Can you run the following command for me on your system? ldconfig -r | grep gcc45 % ldconfig -r | grep gcc45 search directories: [...] % ldconfig -r | grep libstdc++.so.6 80:-lstdc++.6 = /usr/lib/libstdc++.so.6 848:-lstdc++.6 = /usr/local/lib/compat/pkg/libstdc++.so.6 1146:-lstdc++.6 = /usr/local/lib/gcc/i386-portbld-freebsd8.0/3.4.6/libstdc++.so.6 1148:-lstdc++.6 = /usr/local/lib/gcc44/libstdc++.so.6 1159:-lstdc++.6 = /usr/local/lib/gcc45/libstdc++.so.6 Setting LD_LIBRARY_PATH=/usr/local/lib/gcc45 before running pdftk can avoid this error. I am not familiar with rpath, but something is wrong arround it, I think. gcc can embed some rpath infomation when building pdftk, or we must add some linker option about rpath in building pdftk. In any case, pdftk must have runtime dependence on gcc45... --- 鶴谷直樹 turut...@scphys.kyoto-u.ac.jp Hi Tsurutani, Ok, I see why there's a problem now. My linker hints were set up in such a way that /usr/local/lib/gcc45 appeared before /usr/lib, so I didn't have the libstdc++.so.6 problem. However, that's not a normal configuration, so we have to fix this another way. Gerald, you ran into this problem a while back and posted a question about it here: http://www.mail-archive.com/freebsd-ports@freebsd.org/msg23261.html There are some other folks with the same problem here (old thread): http://gcc.gnu.org/ml/gcc/2001-03/msg01069.html Did you ever decide on a resolution for this problem? Should I simply create a wrapper script for pdftk that sets LD_LIBRARY_PATH, or is the rpath solution better? Tsurutani, in the mean time, can you run pdftk with LD_LIBRARY_PATH set until we decide on the solution? Thank you, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLxLRM0sRouByUApARAvfDAJ93Bm4wyhUlpl7PTZR6Ulpg9J31SQCfTAIu 9QRjwZAlBepsnFpWuGuMvZ8= =KPDi -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5
On Fri, 9 Apr 2010, Gerald Pfeifer wrote: As for the lang/gcc42 issue, I have an idea of how to fix that and will give it try now and share the patch if it works for me. The patch below passes testing for me, and I consider it The Right Thing[TM] directionally, too. The two actual changes are the addition of --with-as=/usr/bin/as and --with-ld=/usr/bin/ld. I have not committed it yet, but am planning on doing so and definitely am interested in whether this changes (improves) things for you. That said, please do not stop on moving from GCC 4.2 to GCC 4.4 when it comes to Java, even in case this patch works for you. :-) Gerald Index: Makefile === RCS file: /home/pcvs/ports/lang/gcc42/Makefile,v retrieving revision 1.356 diff -r1.356 Makefile 56,60c56 CONFIGURE_ARGS+= --disable-nls \ --with-system-zlib \ --with-libiconv-prefix=${LOCALBASE} \ --with-gmp=${LOCALBASE} \ --program-suffix=${SUFFIX} \ --- CONFIGURE_ARGS+=--disable-nls \ 63c59,65 --with-gxx-include-dir=${TARGLIB}/include/c++/ --- --program-suffix=${SUFFIX} \ --with-as=/usr/bin/as \ --with-gmp=${LOCALBASE} \ --with-gxx-include-dir=${TARGLIB}/include/c++/ \ --with-ld=/usr/bin/ld \ --with-libiconv-prefix=${LOCALBASE} \ --with-system-zlib ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tsurutani Naoki wrote: Greg Larkin glar...@freebsd.org wrote: You can find the patches here: http://people.freebsd.org/~glarkin/diffs/gcc45%2bgcj.diff http://people.freebsd.org/~glarkin/diffs/pdftk%2bgcc45.diff Fetch each patch file into /usr/ports and then run: patch gcc45+gcj.diff patch pdftk+gcc45.diff cd print/pdftk make install clean If all goes well, you will be left with a working pdftk executable, successfully compiled with gcj45. If you run into any problems, please let me know and include the output of uname -a and the output from the make process. 1. FreeBSD/amd64 8-STABLE : building OK, but failed to run. % uname -a FreeBSD h116.65.226.10.32118.vlan.kuins.net 8.0-STABLE FreeBSD 8.0-STABLE #22: Sat Feb 13 14:06:06 JST 2010 turut...@h116.65.226.10.32118.vlan.kuins.net:/usr/obj/usr/src/sys/POLYMER13 amd64 % pdftk /usr/local/share/doc/OpenEXR/TechnicalIntroduction.pdf output out.pdf owner_pw foopass /libexec/ld-elf.so.1: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.11 required by /usr/local/bin/pdftk not found Hi Tsurutani, Can you run the following command for me on your system? ldconfig -r | grep gcc45 If there's no output from that command, then something went wrong with the ldconfig stage of the pdftk port installation. Would you mind rebuilding pdftk and capturing the output of make install clean for me? I should be able to tell if something is going wrong during installation. Before you do that, though, please test my theory by doing the following: ldconfig -v -m /usr/local/lib/gcc45 When that command finishes, try running pdftk again. If it works, then we know there's something wrong with the ldconfig step, and the output of the port build/installation will help me troubleshoot it. 2. FreeBSD/amd64 8-STABLE, with LANG=ja_JP.eucJP : building failure. gmake -C /usr/local/work/usr/ports/print/pdftk/work/pdftk-1.41/java_libs/com/lowagie/text; gmake[2]: Entering directory `/usr/local/work/usr/ports/print/pdftk/work/pdftk-1.41/java_libs/com/lowagie/text' /usr/local/bin/gcj45 -L/usr/local/lib -O2 -w --encoding=UTF-8 --classpath=/usr/local/work/usr/ports/print/pdftk/work/pdftk-1.41/java_libs -c Anchor.java -o Anchor.o /usr/local/work/usr/ports/print/pdftk/work/pdftk-1.41/java_libs/com/lowagie/text/markup/MarkupParser.java:186: error: String literal is not properly closed by a double-quote if (value.startsWith(〒) ^^^ ... 112 problems (112 errors) gmake[2]: *** [Anchor.o] Error 1 gmake[2]: Leaving directory `/usr/local/work/usr/ports/print/pdftk/work/pdftk-1.41/java_libs/com/lowagie/text' gmake[1]: *** [itext] Error 2 gmake[1]: Leaving directory `/usr/local/work/usr/ports/print/pdftk/work/pdftk-1.41/java_libs' gmake: *** [java_libs] Error 2 *** Error code 1 (some messages are translated). I'm not sure what's going on here, but I'll have a look at the source file in question to see if there's a problem with it. 3, 4. FreeBSD/i386 8-STABLE : just the same on amd64. % uname -a FreeBSD h120.65.226.10.32118.vlan.kuins.net 8.0-STABLE FreeBSD 8.0-STABLE #22: Sat Feb 13 14:53:25 JST 2010 turut...@h120.65.226.10.32118.vlan.kuins.net:/usr/local/work/usr/obj/usr/src/sys/POLYMER i386 % pdftk /usr/local/share/doc/OpenEXR/TechnicalIntroduction.pdf output suzu.128.pdf owner_pw foopass /libexec/ld-elf.so.1: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.11 required by /usr/local/bin/pdftk not found These errors should be fixed by the same solution as in #1 above. Thank you, Greg --- Tsurutani Naoki turut...@scphys.kyoto-u.ac.jp -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvD44QACgkQ0sRouByUApBzJgCeKdXKrPKinVJzBvhHbgXdViri /5gAni8lxEExcY1EYx8xnGyoVcbKAyVf =nH9T -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerald Pfeifer wrote: On Fri, 9 Apr 2010, Gerald Pfeifer wrote: As for the lang/gcc42 issue, I have an idea of how to fix that and will give it try now and share the patch if it works for me. The patch below passes testing for me, and I consider it The Right Thing[TM] directionally, too. The two actual changes are the addition of --with-as=/usr/bin/as and --with-ld=/usr/bin/ld. I have not committed it yet, but am planning on doing so and definitely am interested in whether this changes (improves) things for you. That said, please do not stop on moving from GCC 4.2 to GCC 4.4 when it comes to Java, even in case this patch works for you. :-) Gerald Index: Makefile === RCS file: /home/pcvs/ports/lang/gcc42/Makefile,v retrieving revision 1.356 diff -r1.356 Makefile 56,60c56 CONFIGURE_ARGS+=--disable-nls \ --with-system-zlib \ --with-libiconv-prefix=${LOCALBASE} \ --with-gmp=${LOCALBASE} \ --program-suffix=${SUFFIX} \ --- CONFIGURE_ARGS+=--disable-nls \ 63c59,65 --with-gxx-include-dir=${TARGLIB}/include/c++/ --- --program-suffix=${SUFFIX} \ --with-as=/usr/bin/as \ --with-gmp=${LOCALBASE} \ --with-gxx-include-dir=${TARGLIB}/include/c++/ \ --with-ld=/usr/bin/ld \ --with-libiconv-prefix=${LOCALBASE} \ --with-system-zlib Thank you Gerald, I'll give that a try with gcc 4.2 and gcc 4.5 installed. I think we're getting close with gcj 4.5, assuming my fix for duplicate Java symbols is acceptable. I need to do some more tinderbox builds and testing and clear up some other errors reported by users, but maybe I'll be able to send you the patches for approval next week. Thank you, Greg -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvD5D8ACgkQ0sRouByUApC4AgCfS/QrY7PTkegsFRJiEE5WdxH5 GcIAoIdY7KkdUV+ORjj0G9iJcipt31jK =HuD1 -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5
Greg Larkin glar...@freebsd.org wrote: Can you run the following command for me on your system? ldconfig -r | grep gcc45 % ldconfig -r | grep gcc45 search directories: /lib:/usr/lib:/usr/lib/compat:/usr/local/lib:/usr/local/lib/compat/pkg:/usr/site/lib:/usr/loc al/lib/compat:/usr/local/lib/evolution/2.28:/usr/local/lib/gcc/i386-portbld- freebsd8.0/3.4.6:/usr/local/lib/gcc44:/usr/local/lib/gcc45:/usr/local/lib/gegl- 0.0:/usr/local/lib/graphviz:/usr/local/lib/mysql:/usr/local/lib/nss:/usr/local/lib/pth:/usr/l ocal/lib/qt4:/usr/local/lib/wine:/usr/local/lib/zsh 1159:-lstdc++.6 = /usr/local/lib/gcc45/libstdc++.so.6 1160:-lmudflap.0 = /usr/local/lib/gcc45/libmudflap.so.0 1161:-lmudflapth.0 = /usr/local/lib/gcc45/libmudflapth.so.0 1162:-lssp.0 = /usr/local/lib/gcc45/libssp.so.0 1163:-lgcc_s.1 = /usr/local/lib/gcc45/libgcc_s.so.1 1164:-lgfortran.3 = /usr/local/lib/gcc45/libgfortran.so.3 1165:-lffi.4 = /usr/local/lib/gcc45/libffi.so.4 1166:-lgcj.11 = /usr/local/lib/gcc45/libgcj.so.11 1167:-lgij.11 = /usr/local/lib/gcc45/libgij.so.11 1168:-lgcj-tools.11 = /usr/local/lib/gcc45/libgcj-tools.so.11 1169:-lgomp.1 = /usr/local/lib/gcc45/libgomp.so.1 % ldconfig -r | grep libstdc++.so.6 80:-lstdc++.6 = /usr/lib/libstdc++.so.6 848:-lstdc++.6 = /usr/local/lib/compat/pkg/libstdc++.so.6 1146:-lstdc++.6 = /usr/local/lib/gcc/i386-portbld-freebsd8.0/3.4.6/libstdc++.so.6 1148:-lstdc++.6 = /usr/local/lib/gcc44/libstdc++.so.6 1159:-lstdc++.6 = /usr/local/lib/gcc45/libstdc++.so.6 Setting LD_LIBRARY_PATH=/usr/local/lib/gcc45 before running pdftk can avoid this error. I am not familiar with rpath, but something is wrong arround it, I think. gcc can embed some rpath infomation when building pdftk, or we must add some linker option about rpath in building pdftk. In any case, pdftk must have runtime dependence on gcc45... --- 鶴谷直樹 turut...@scphys.kyoto-u.ac.jp ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5
On Thu, 8 Apr 2010, Greg Larkin wrote: I maintain the print/pdftk port, and lately it's been getting harder to support compiling it with gcj42 from the lang/gcc42 port. If lang/gcc45 is also installed on the machine, then gcj42 uses the wrong binutils and hilarity ensues. Thanks for pushing on that front, I believe it's the right thing to do. As for the lang/gcc42 issue, I have an idea of how to fix that and will give it try now and share the patch if it works for me. Gerald ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
CFT: print/pdftk port compiled with Java compiler from gcc 4.5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, I maintain the print/pdftk port, and lately it's been getting harder to support compiling it with gcj42 from the lang/gcc42 port. If lang/gcc45 is also installed on the machine, then gcj42 uses the wrong binutils and hilarity ensues. It's been on my task list to enable gcj45 in the lang/gcc45 port and get pdftk compiled with it. I have an experimental patchset that does just that, and I was hoping some folks might test it on various OS versions and architectures. In the mean time, I'll run through the various tinderbox builds that I have available. You can find the patches here: http://people.freebsd.org/~glarkin/diffs/gcc45%2bgcj.diff http://people.freebsd.org/~glarkin/diffs/pdftk%2bgcc45.diff Fetch each patch file into /usr/ports and then run: patch gcc45+gcj.diff patch pdftk+gcc45.diff cd print/pdftk make install clean If all goes well, you will be left with a working pdftk executable, successfully compiled with gcj45. If you run into any problems, please let me know and include the output of uname -a and the output from the make process. Thank you, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLvojr0sRouByUApARAuL0AJ9v5/utZBTVyepCfZe1Q8hzIzjRdwCghMOH 18wwBxJ8gUHGn+W0IOnvxwE= =eNMj -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org