>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
System: FreeBSD vbook.express.ru 5.0-CURRENT FreeBSD 5.0-CURRENT #42: Wed Feb 13 
14:57:29 MSK 2002 [EMAIL PROTECTED]:/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


Programm linked against libpng.so on -CURRNET causes SIGBUS on startup


% cat > trypng.c
#include <stdio.h>

main(int ac, char ** av)
  printf("Hello World\n");
% gcc -o trypng trypng.c -L/usr/local/lib -lpng
% ./trypng
Bus error (core dumped)
% ldd ./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
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 ?? ()


Workaround - build libpng on 4.5-RELEASE system and install package on

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message
  • ... Vladimir B . Grebenschikov
    • ... Андрей Чернов
      • ... David O'Brien
        • ... Андрей Чернов
        • ... David O'Brien
          • ... Terry Lambert
          • ... Alexander N. Kabaev
            • ... Terry Lambert
            • ... Bjoern Fischer
        • ... Peter Schultz

Reply via email to