bug-inetutils
[Top][All Lists]
Advanced

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

[bug-inetutils] _argp_program symbols error


From: Sean B. Palmer
Subject: [bug-inetutils] _argp_program symbols error
Date: Thu, 25 Jun 2009 20:09:25 +0100

On OS X 10.4.11, building inetutils-1.6:

gcc -std=gnu99  -g -O2   -o inetd inetd.o -L../libinetutils
-linetutils -L../lib -lgnu -lresolv
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
_argp_program_version
_argp_program_bug_address
collect2: ld returned 1 exit status

This is after applying the following patch to fix an earlier error:

$ diff -Naur inetutils-1.6+orig/ inetutils-1.6/
--- inetutils-1.6+orig/libinetutils/utmp_init.c 2007-04-12
12:23:07.000000000 +0100
+++ inetutils-1.6/libinetutils/utmp_init.c      2009-06-25 19:44:55.000000000 
+0100
@@ -58,7 +58,7 @@
 #if defined(HAVE_STRUCT_UTMP_UT_ID)
   strncpy (utx.ut_id, id, sizeof (utx.ut_id));
 #endif
-#if defined(HAVE_STRUCT_UTMP_UT_USER)
+#if defined(HAVE_STRUCT_UTMPX_UT_USER)
   strncpy (utx.ut_user, user, sizeof (utx.ut_user));
 #else
   strncpy (utx.ut_name, user, sizeof (utx.ut_name));

Courtesy of Alfred M. Szmidt in #gnu on irc.freenode.net.

Alfred has also been helping me with this issue on IRC, and asked me
to confirm the existence of lib/argp.h and lib/argp-pv.c, both of
which exist, and to run the following command on the latter:

$ grep argp_program_version lib/argp-pv.c
const char *argp_program_version;

The full details of my system are:

$ uname -mrsv
Darwin 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT
2007; root:xnu-792.25.20~1/RELEASE_I386 i386

And I'm using Xcode 2.5, Xcode Core: 798.0. The version of inetutils I
have is from here:

http://ftp.gnu.org/gnu/inetutils/inetutils-1.6.tar.gz

$ md5 inetutils-1.6.tar.gz
MD5 (inetutils-1.6.tar.gz) = 23cc24bc77751bf77d50a07a7395f9b3

Thanks,

-- 
Sean B. Palmer, http://inamidst.com/sbp/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]