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

Bug#657554: marked as done (nss-passwords 0.1-1 fails to build with ld --as-needed)



Your message dated Fri, 10 Feb 2012 04:20:13 +0000
with message-id <E1Rvhy1-0001rw-6C@franck.debian.org>
and subject line Bug#657554: fixed in nss-passwords 0.1.1-1
has caused the Debian Bug report #657554,
regarding nss-passwords 0.1-1 fails to build with ld --as-needed
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
657554: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657554
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: nss-passwords
Severity: important
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu precise ubuntu-patch

Dear maintainer,

nss-passwords 0.1-1 fails to build in ubuntu precise with ld --as-needed.

The entire log can be found here https://launchpadlibrarian.net/89413467/buildlog_ubuntu-precise-i386.nss-passwords_0.1-1_FAILEDTOBUILD.txt.gz

This is a snippet, focusing on the error:

ocamlfind ocamlc -g -package fileutils.str,sqlite3 -ccopt -lnss3 -ccopt -lnssutil3 -ccopt -lsmime3 -ccopt -lssl3 -ccopt -lplds4 -ccopt -lplc4 -ccopt -lnspr4 -ccopt -lpthread -ccopt -ldl -custom -linkpkg -o nss-passwords main.cmo nss_stubs.o main_stubs.o
nss_stubs.o: In function `password_func':
nss_stubs.c:(.text+0x175): undefined reference to `PL_strdup'
nss_stubs.o: In function `caml_nss_cleanup':
nss_stubs.c:(.text+0x1df): undefined reference to `NSS_Shutdown'
nss_stubs.c:(.text+0x200): undefined reference to `PR_Cleanup'
nss_stubs.o: In function `caml_nss_init':
nss_stubs.c:(.text+0x277): undefined reference to `PK11_SetPasswordFunc'
nss_stubs.c:(.text+0x282): undefined reference to `NSS_Init'
nss_stubs.o: In function `caml_do_decrypt':
nss_stubs.c:(.text+0x3af): undefined reference to `NSSBase64_DecodeBuffer'
nss_stubs.c:(.text+0x3dc): undefined reference to `PORT_GetError'
nss_stubs.c:(.text+0x3fd): undefined reference to `SECITEM_FreeItem'
nss_stubs.c:(.text+0x4af): undefined reference to `PK11SDR_Decrypt'
nss_stubs.c:(.text+0x4c5): undefined reference to `SECITEM_ZfreeItem'
nss_stubs.c:(.text+0x507): undefined reference to `SECITEM_ZfreeItem'
nss_stubs.c:(.text+0x529): undefined reference to `PORT_GetError'
collect2: ld returned 1 exit status
File "_none_", line 1, characters 0-1:
Error: Error while building custom runtime system
make[1]: *** [nss-passwords] Error 2



As attachment you can find the patch that solves the problem.

Regards,

Leo.



-- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric-updates
  APT policy: (500, 'oneiric-updates'), (500, 'oneiric'), (100, 'oneiric-backports')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-030200rc7-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Description: Fix FTBFS with ld --as-needed in Makefile.
 And replace "-ccopt" with "-cclib".
 According to the man page of ocamlopt, optiot -cclib is better:
   -cclib -llibname
          Pass the -llibname option to the linker. This causes the 
          given C library to be linked with the program.

Author: Leo Iannacone <l3on@ubuntu.com>
---
 Makefile |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- nss-passwords.orig/Makefile
+++ nss-passwords/Makefile
@@ -1,7 +1,7 @@
 OCAMLC = ocamlfind ocamlc -g -package fileutils.str,sqlite3
 OCAMLOPT = ocamlfind ocamlopt -g -package fileutils.str,sqlite3
 ML_CFLAGS = $(foreach u,$(shell pkg-config --cflags nss),-ccopt $(u))
-ML_LFLAGS = $(foreach u,$(shell pkg-config --libs nss),-ccopt $(u))
+ML_LFLAGS = $(foreach u,$(shell pkg-config --libs nss),-cclib $(u))
 
 .PHONY: all clean
 
@@ -11,7 +11,7 @@ clean:
 	rm -f *~ *.cm[oxi] *.o nss-passwords
 
 nss-passwords: main.cmo nss_stubs.o main_stubs.o
-	$(OCAMLC) $(ML_LFLAGS) -custom -linkpkg -o $@ $^
+	$(OCAMLC) -o $@ $^ $(ML_LFLAGS) -custom -linkpkg
 
 %.cmx: %.ml
 	$(OCAMLOPT) -c $<

--- End Message ---
--- Begin Message ---
Source: nss-passwords
Source-Version: 0.1.1-1

We believe that the bug you reported is fixed in the latest version of
nss-passwords, which is due to be installed in the Debian FTP archive:

nss-passwords_0.1.1-1.debian.tar.gz
  to main/n/nss-passwords/nss-passwords_0.1.1-1.debian.tar.gz
nss-passwords_0.1.1-1.dsc
  to main/n/nss-passwords/nss-passwords_0.1.1-1.dsc
nss-passwords_0.1.1-1_amd64.deb
  to main/n/nss-passwords/nss-passwords_0.1.1-1_amd64.deb
nss-passwords_0.1.1.orig.tar.gz
  to main/n/nss-passwords/nss-passwords_0.1.1.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 657554@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stéphane Glondu <glondu@debian.org> (supplier of updated nss-passwords package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 10 Feb 2012 04:55:46 +0100
Source: nss-passwords
Binary: nss-passwords
Architecture: source amd64
Version: 0.1.1-1
Distribution: unstable
Urgency: low
Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
Changed-By: Stéphane Glondu <glondu@debian.org>
Description: 
 nss-passwords - read passwords from a Mozilla keyring
Closes: 657554
Changes: 
 nss-passwords (0.1.1-1) unstable; urgency=low
 .
   * New upstream release
     - fix FTBFS with ld --as-needed (Closes: #657554)
Checksums-Sha1: 
 c0654c876de67881de7a2d1d324ef48b4a29bae9 2134 nss-passwords_0.1.1-1.dsc
 044756f4f3f4e2bf0f5293e069988533344d1c2b 13124 nss-passwords_0.1.1.orig.tar.gz
 a767f01e513a2214142dd733de15f5858538d805 2025 nss-passwords_0.1.1-1.debian.tar.gz
 7522297d518293bff21f9929e03d4e751c5f001a 147816 nss-passwords_0.1.1-1_amd64.deb
Checksums-Sha256: 
 430c87a418a7ebfe88df70f95cae9196d66c2adf95e62cc308e9da3f6c9947a0 2134 nss-passwords_0.1.1-1.dsc
 98a283999eda0f7511713c463b79088030af6f20d3ff422b0829ccd0cbcc51f2 13124 nss-passwords_0.1.1.orig.tar.gz
 f1bea92a8e2021abe48ec279ef1b05684fc8f32cb98665bd734786c47f704793 2025 nss-passwords_0.1.1-1.debian.tar.gz
 00bb8695c32a5cc6dcfb21e6a9a3befe04c7d7d69a7b2f07530e1281cfc27380 147816 nss-passwords_0.1.1-1_amd64.deb
Files: 
 bba178df06ae4b482cd520c29a35b082 2134 misc optional nss-passwords_0.1.1-1.dsc
 0b3c4b81efa48a7ea4e73115d6f0cf6d 13124 misc optional nss-passwords_0.1.1.orig.tar.gz
 61f467eba63445d5e68c226de1cf2d89 2025 misc optional nss-passwords_0.1.1-1.debian.tar.gz
 94a44d348f7c9e4abd8a13a3af161548 147816 misc optional nss-passwords_0.1.1-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCgAGBQJPNJfkAAoJEHhT2k1JiBrTlucP/2EBk1zXjD4YhoiSPSkpOusd
he0Qz+DSW8ecdjxGeoa/JsfgDAvqSkTIVZ+0ebbX+MelyzbakslEECVUsUz8jNuX
AjgAal27WsJPI82OjUJZHPlckzaG/8r7tEhevFiu6cKRCYJ1o3c1CoGuRGr6TFAy
0NlNRgdn2gsUgHjVmlTrxWw2FfhuCp640ExwfDTDreNmfENOmz8QKhFj3/RbuO+3
jgIWot+HoWirqk5LZDaay1YuUU8mzq5vuhLMmt7iqutd0YNJ48ZV5qDKCOeDhiQC
zK1OHJVB8d9kgUkq2ksODiEan78AAnfkf6zKHQoygFL6giaE6mwL8MoF8j80MbE+
qQhkZize+Xus/NYENe4vLTajFatl0Z6hX5eEgH/6P2gF9JwbZf3xHV3KIsVxuiEf
AcLJyNYKPodLqqO3Gz8g7IEJ22rtJRICvaiqtA0Q79naFohOZHvp678xQyyRrKZ/
NDFrDFrG6L2SwkF4Fx3LIZAhpUKfSTK+ssdagMfTMwz15+KbnoMELvJbP8ZkPMSZ
8DXud2NSYkI3YDphN1Tiftjrq6ywN6Ku7/Yvd/b2jkQ7zd7t2CcORb9Zzx16UbQC
YKeoLNGBEOkxx39vdz8a0Jvb2xoaaE+0urUwJacnni2zGMfMC+c5Wg01KvTq+cBe
9hrFVLT6aY9LdlTfoXNp
=/ehM
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: