Date: Wed, 11 Jan 2006 23:11:35 +0200 From: Panagiotis Astithas <past@ebs.gr> To: zlatozar <zlatozar@gmail.com> Cc: freebsd-eclipse@freebsd.org Subject: Re: Eclipse debug crash Message-ID: <43C57487.40309@ebs.gr> In-Reply-To: <6fda18720601101420v5cf15d26q875fbf29728dc781@mail.gmail.com> References: <6fda18720601101420v5cf15d26q875fbf29728dc781@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------030502030007020103000802 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit zlatozar wrote: > Hi all, > > Would you tell me how to fix the following problem: > > /libexec/ld-elf.so.1: > /usr/local/eclipse/plugins/org.eclipse.cdt.core.freebsd.x86_3.0.1/os/freebsd/x86/libpty.so: > Undefined symbol "getpt" > > Eclipse crash when I try to debug simple C project using Eclipse-CDT. > > I use FreeBSD 6.0 on i386. If you need more debug information please let me > know. I believe this patch should fix everything. It contains the previously posted fixes for amd64, as well as the fix for this bug. Let me know how it goes. Cheers, Panagiotis --------------030502030007020103000802 Content-Type: text/x-patch; name="eclipse-cdt.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="eclipse-cdt.patch" diff -ruN /usr/ports/java/eclipse-cdt/Makefile eclipse-cdt/Makefile --- /usr/ports/java/eclipse-cdt/Makefile Tue Jan 3 05:26:38 2006 +++ eclipse-cdt/Makefile Tue Jan 10 09:45:09 2006 @@ -10,7 +10,7 @@ CATEGORIES= java devel MASTER_SITES= http://download.eclipse.org/tools/cdt/releases/eclipse3.1/dist/${PORTVERSION}/ PKGNAMEPREFIX= eclipse- -DISTNAME= org.eclipse.cdt.sdk-${PORTVERSION}-linux.${ECLIPSE_ARCH} +DISTNAME= org.eclipse.cdt.sdk-${PORTVERSION}-linux.x86 DIST_SUBDIR= eclipse MAINTAINER= freebsd-eclipse@FreeBSD.org @@ -31,6 +31,8 @@ ECLIPSE_ARCH= amd64 .else ECLIPSE_ARCH= x86 +PLIST_FILES+= eclipse/plugins/org.eclipse.cdt.core.freebsd.x86_3.0.1/os/freebsd/x86/libpty.so \ + eclipse/plugins/org.eclipse.cdt.core.freebsd.x86_3.0.1/os/freebsd/x86/libspawner.so .endif MAKE_ENV+= ECLIPSE_ARCH=${ECLIPSE_ARCH} \ @@ -44,8 +46,10 @@ @${RM} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.core.freebsd_${PORTVERSION}/*.orig @${RM} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.core_${PORTVERSION}/*.orig @${RM} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.managedbuilder.gnu.ui_${PORTVERSION}/*.orig +.if (${ARCH} == "i386") @(cd ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.source.freebsd.gtk.x86_${PORTVERSION}/src/org.eclipse.cdt.core.freebsd_${PORTVERSION}/library; \ ${SETENV} ${MAKE_ENV} ${GMAKE}) +.endif do-install: @${MKDIR} ${PREFIX}/eclipse diff -ruN /usr/ports/java/eclipse-cdt/files/patch-cdt.core-openpty.c eclipse-cdt/files/patch-cdt.core-openpty.c --- /usr/ports/java/eclipse-cdt/files/patch-cdt.core-openpty.c Tue Jan 3 05:26:38 2006 +++ eclipse-cdt/files/patch-cdt.core-openpty.c Wed Jan 11 22:55:34 2006 @@ -1,5 +1,5 @@ ---- eclipse/plugins/org.eclipse.cdt.source.freebsd.gtk.x86_3.0.1/src/org.eclipse.cdt.core.freebsd_3.0.1/library/openpty.c.orig Sat Dec 3 01:10:16 2005 -+++ eclipse/plugins/org.eclipse.cdt.source.freebsd.gtk.x86_3.0.1/src/org.eclipse.cdt.core.freebsd_3.0.1/library/openpty.c Sat Dec 3 01:13:46 2005 +--- eclipse/plugins/org.eclipse.cdt.source.freebsd.gtk.x86_3.0.1/src/org.eclipse.cdt.core.freebsd_3.0.1/library/openpty.c.orig Wed Jan 11 22:04:49 2006 ++++ eclipse/plugins/org.eclipse.cdt.source.freebsd.gtk.x86_3.0.1/src/org.eclipse.cdt.core.freebsd_3.0.1/library/openpty.c Wed Jan 11 22:52:35 2006 @@ -20,7 +20,6 @@ #include <grp.h> @@ -8,3 +8,12 @@ /** * This is taken from R. W. Stevens book. +@@ -84,7 +83,7 @@ + char *ptr; + + strcpy(pts_name, "/dev/ptmx"); +- fdm = getpt(); ++ fdm = posix_openpt(O_RDWR); + if (fdm < 0) + return -1; + if (grantpt(fdm) < 0) { /* grant access to slave */ diff -ruN /usr/ports/java/eclipse-cdt/pkg-plist eclipse-cdt/pkg-plist --- /usr/ports/java/eclipse-cdt/pkg-plist Tue Jan 3 05:28:05 2006 +++ eclipse-cdt/pkg-plist Tue Jan 10 09:44:27 2006 @@ -531,8 +531,6 @@ eclipse/plugins/org.eclipse.cdt.core_3.0.1/plugin.properties eclipse/plugins/org.eclipse.cdt.core_3.0.1/about.html eclipse/plugins/org.eclipse.cdt.core_3.0.1/plugin.xml -eclipse/plugins/org.eclipse.cdt.core.freebsd.x86_3.0.1/os/freebsd/x86/libspawner.so -eclipse/plugins/org.eclipse.cdt.core.freebsd.x86_3.0.1/os/freebsd/x86/libpty.so eclipse/plugins/org.eclipse.cdt.core.freebsd.x86_3.0.1/about.html eclipse/plugins/org.eclipse.cdt.core.freebsd.x86_3.0.1/fragment.xml eclipse/plugins/org.eclipse.cdt.core.freebsd_3.0.1/cdt_linux.jar --------------030502030007020103000802--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43C57487.40309>