NetBSD-Bugs archive

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

Re: lib/39986: libmapper_zone.so is trying to call undefined weak symbol



The following reply was made to PR lib/39986; it has been noted by GNATS.

From: Nick Hudson <nick.hudson%gmx.co.uk@localhost>
To: Takehiko NOZAKI <takehiko.nozaki%gmail.com@localhost>
Cc: gnats-bugs%netbsd.org@localhost,
 lib-bug-people%netbsd.org@localhost,
 gnats-admin%netbsd.org@localhost,
 netbsd-bugs%netbsd.org@localhost,
 tech-userlevel%netbsd.org@localhost
Subject: Re: lib/39986: libmapper_zone.so is trying to call undefined weak  
symbol
Date: Sat, 2 Jan 2010 08:47:44 +0000

 On Friday 01 January 2010 18:45:23 Takehiko NOZAKI wrote:
 [...]
 
 >   1. don't use __(de)?register_frame_info but .eh_frame section instead
 >     by adding --eh-frame-hdr option.  it seems that Linux/glibc2 now using
 > it, also FreeBSD, OpenBSD too
 >
 >     $ /usr/pkg/emul/linux/usr/bin/gcc -### -shared -o libbar.so bar.c
 >     ... "--eh-frame-hdr" ...
 
 This is the best solution, imo
 
 >
 >   2. clarify application using dlopen(3) must add -lgcc_s option.
 >
 >     same approach of non ptheaded application loading ptheaded library.
 >     see following discussion:
 >     http://mail-index.netbsd.org/pkgsrc-users/2009/01/17/msg009088.html
 
 Without --eh-frame-hdr this is the solution.
 
 Cheers,
 
 Nick
 


Home | Main Index | Thread Index | Old Index