Bug #2681
closedmissing symbol pidfile_open ?
0%
Description
Hi I am trying out DragonFlyBSD and have missing pidfile_open when using mount.
I noticed this after building world from commit c24de52e9d066f36243cbe68aa1bbd9f7b423d02.
I am also running custom kernel - but the configuration is clone of the default X86_64_GENERIC without the parallel port
I replicated that situation using
/* pidfile_open.c */
#include <libutil.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
/* problem with linking at c24de52e9d066f36243cbe68aa1bbd9f7b423d02 */
int main( int argc, char **argv )
{
struct pidfh *retpid = pidfile_open("pidfile.xxx", 0600, NULL);
if(!retpid)
{
printf("Error pidfile_open %s\n", strerror(errno));
}
return 0;
}
and linked it with
gcc pidfile_open_test.c -o pidfile_open -lutil
file links fine but when running I got
./pidfile_open
/tmp/pidfile_open: Undefined symbol "pidfile_open"
strangely ldd reports
ldd ./pidfile_open-x
./pidfile_open-x:
libutil.so.4 => /usr/lib/libutil.so.4 (0x80082b000)
libc.so.8 => /usr/lib/libc.so.8 (0x800a3c000)
and
readelf -a /usr/lib/libutil.so|grep pidfile_open
152: 0000000000007d75 848 FUNC GLOBAL DEFAULT 9 pidfile_open
what am I missing, or I did something wrong ?
Updated by jorisgio over 10 years ago
Hi, have you run make upgrade after installing world and kernel ?
Updated by bsd4chris over 10 years ago
- Status changed from New to Closed
jorisgio wrote:
Hi, have you run make upgrade after installing world and kernel ?
That is what I have been missing out.
Thank you.