From owner-freebsd-current Wed Feb 13 6:35:38 2002 Delivered-To: freebsd-current@freebsd.org Received: from vbook.express.ru (asplinux.ru [195.133.213.194]) by hub.freebsd.org (Postfix) with ESMTP id F22E437B402; Wed, 13 Feb 2002 06:35:26 -0800 (PST) Received: from vova by vbook.express.ru with local (Exim 3.33 #1) id 16b0VK-000PUb-00; Wed, 13 Feb 2002 17:35:26 +0300 To: FreeBSD-gnats-submit@freebsd.org Subject: libpng port makes bad dynamic library on -CURRENT From: Vladimir B.Grebenschikov Reply-To: Vladimir B.Grebenschikov Cc: current@freebsd.org X-send-pr-version: 3.113 X-GNATS-Notify: Message-Id: Date: Wed, 13 Feb 2002 17:35:27 +0300 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >Submitter-Id: current-users >Originator: Vladimir B. Grebenschikov >Organization: SWsoft >Confidential: no >Synopsis: libpng port makes bad dynamic library on -CURRENT >Severity: non-critical >Priority: medium >Category: ports >Class: sw-bug >Release: FreeBSD 5.0-CURRENT i386 >Environment: System: FreeBSD vbook.express.ru 5.0-CURRENT FreeBSD 5.0-CURRENT #42: Wed Feb 13 14:57:29 MSK 2002 root@walder.sw.ru:/usr/obj/ext/current/src/sys/VBOOK i386 Todays current: % date Wed Feb 13 14:32:09 GMT 2002 % pkg_info -I png\* png-1.2.1 Library for manipulating PNG images % >Description: Programm linked against libpng.so on -CURRNET causes SIGBUS on startup >How-To-Repeat: % cat > trypng.c #include main(int ac, char ** av) { printf("Hello World\n"); } ^D % gcc -o trypng trypng.c -L/usr/local/lib -lpng % ./trypng Bus error (core dumped) % ldd ./trypng ./trypng: libpng.so.5 => lib/xx/libpng.so.5 (0x28068000) libc.so.5 => /usr/lib/libc.so.5 (0x2808a000) libz.so.2 => /usr/lib/libz.so.2 (0x2813d000) libm.so.2 => /usr/lib/libm.so.2 (0x2814a000) % gdb ./trypng GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"... (no debugging symbols found)... (gdb) r Starting program: ./trypng Program received signal SIGBUS, Bus error. 0x280500e2 in ?? () (gdb) bt #0 0x280500e2 in ?? () #1 0x2804db7c in ?? () #2 0x2804c6af in ?? () (gdb) >Fix: Workaround - build libpng on 4.5-RELEASE system and install package on 5.0-CURRENT To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message