From owner-freebsd-gecko@FreeBSD.ORG Sat Jan 29 05:32:49 2011 Return-Path: Delivered-To: freebsd-gecko@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F832106566C for ; Sat, 29 Jan 2011 05:32:49 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 17ECB8FC0A for ; Sat, 29 Jan 2011 05:32:48 +0000 (UTC) Received: by ywp6 with SMTP id 6so1425616ywp.13 for ; Fri, 28 Jan 2011 21:32:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=DVBlojHh5ema5n59+1yZY+ePqydgJ798EjSYVL3alyU=; b=l0fEyrdgy0NXbwB7g3RTmykAEQwz2HhB/zXlFCNUO2Klz8E+Nhnvaufxn9yGDACtHA DHHjfSjcbGtQkybArma5gL17O1ReXh505vAhPJE/jHRxspHDm9uUquDQSuxAvABXPzYP YWbir185LldI57d8AbSOwQKaScl5BFMBs2VpU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=toaIauVVsqnw8YAa4U5L0aJ9nNG6dNA1rL/k+RXq5WkttOvTDd96B3l13rd1X81SML iDBhD6We6L4lpk2TMErKIBAJEtKVWDxI7F9n11Yf1q2IX9dtXhxSLJqhtDDJvZJW1Gko j8R5w2eaQ72R0IddXn684LLx0K3MUhoww31WU= Received: by 10.150.144.17 with SMTP id r17mr5164103ybd.343.1296279167768; Fri, 28 Jan 2011 21:32:47 -0800 (PST) Received: from localhost (tor-exit-router40-readme.formlessnetworking.net [199.48.147.40]) by mx.google.com with ESMTPS id w24sm610462ybk.9.2011.01.28.21.32.26 (version=SSLv3 cipher=RC4-MD5); Fri, 28 Jan 2011 21:32:47 -0800 (PST) From: Anonymous To: Alexey Shuvaev References: <20110128235851.GB95980__43023.8948589706$1296260540$gmane$org@lexx.ifp.tuwien.ac.at> Date: Sat, 29 Jan 2011 08:32:07 +0300 In-Reply-To: <20110128235851.GB95980__43023.8948589706$1296260540$gmane$org@lexx.ifp.tuwien.ac.at> (Alexey Shuvaev's message of "Sat, 29 Jan 2011 00:58:51 +0100") Message-ID: <86aaikxoko.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-gecko@FreeBSD.org Subject: Re: [WORKAROUND] www/seamonkey2 on CURRENT X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2011 05:32:49 -0000 Alexey Shuvaev writes: > Hello! > > It seems www/seamonkey2 is broken on CURRENT for at least 1 month now [1]. > Examining build log and reproducing it locally, the problem is in the > usage of libiconv in nsNativeCharsetUtils.cpp. The linker fails to > produce libxpcom_core.so although -L/usr/local/lib and -liconv > are specified [2]. Examining this further I found that nsNativeCharsetUtils.o > produced with [3] fails to link with libiconv alone too [4] (note > still unresolved libiconv references). > I'm not a compiler/linker guru and do not understand what is happening > here. As a workaroud I use the attached patch which disables the usage > of libiconv in nsNativeCharsetUtils.cpp. > [...] > /usr/bin/ld: aaa: hidden symbol `libiconv_open' isn't defined /head per r215840 has working -fvisibility=hidden, i.e. config/gcc_hidden.h. Try following diff, it should enable patching iconv.h wrapper in bsd.gecko.mk @${ECHO_CMD} "#pragma GCC system_header" >> ${MOZSRC}/${subdir}/iconv.h @${ECHO_CMD} "#pragma GCC visibility push(default)" >> ${MOZSRC}/${subdir}/iconv.h @${ECHO_CMD} "#include \"${LOCALBASE}/include/iconv.h\"" >> ${MOZSRC}/${subdir}/iconv.h @${ECHO_CMD} "#pragma GCC visibility pop" >> ${MOZSRC}/${subdir}/iconv.h %% Index: www/seamonkey2/Makefile =================================================================== RCS file: /a/.cvsup/ports/www/seamonkey2/Makefile,v retrieving revision 1.315 diff -u -p -r1.315 Makefile --- www/seamonkey2/Makefile 10 Dec 2010 13:31:12 -0000 1.315 +++ www/seamonkey2/Makefile 29 Jan 2011 05:22:11 -0000 @@ -28,11 +28,10 @@ ALL_TARGET= default MAKE_JOBS_SAFE= yes MOZ_PIS_SCRIPTS= moz_pis_S50cleanhome MAKE_ENV= LD_LIBRARY_PATH=${WRKSRC}/dist/bin -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/cairo" +CONFIGURE_ENV= LOCALBASE=${LOCALBASE} CPPFLAGS="-I${LOCALBASE}/include/cairo" \ + ac_cv_func__Unwind_Backtrace=no USE_GCC= 4.2+ -CONFIGURE_ENV= LOCALBASE=${LOCALBASE} - MOZ_EXTENSIONS= default MOZ_OPTIONS+= --with-default-mozilla-five-home=${PREFIX}/lib/${MOZILLA} \ --enable-svg \ @@ -121,11 +120,6 @@ post-patch: ${WRKSRC}/mozilla/storage/build/Makefile.in @${REINPLACE_CMD} -e '/accessibility.typeaheadfind.enablesound/s/true/false/' \ ${WRKSRC}/mozilla/modules/libpref/src/init/all.js - @${REINPLACE_CMD} -e 's||\"${LOCALBASE}/include/iconv.h\"|g' \ - ${WRKSRC}/configure \ - ${WRKSRC}/mozilla/configure \ - ${WRKSRC}/mozilla/intl/uconv/native/nsNativeUConvService.cpp \ - ${WRKSRC}/mozilla/xpcom/io/nsNativeCharsetUtils.cpp @${REINPLACE_CMD} -e 's|libgnome-2.so.0|libgnome-2.so|' \ ${WRKSRC}/mozilla/toolkit/xre/nsNativeAppSupportUnix.cpp \ ${WRKSRC}/mozilla/modules/libpr0n/decoders/icon/gtk/nsIconChannel.cpp %%