Re: ".... I now ran into the following problem, which looks like a missing 
header file or library."

I initially thought that this might be a header or declaration problem, but it 
now looks like it is a problem with the linker not being able to find the 
instance of the code.

To confirm I went to the "../mailutils/examples" directory :

   $ cd ../mailutils/examples
   $ /usr/local/bin/gcc -g -O2 -o aclck.exe aclck.o  
../mailbox/.libs/libmailutils.a -L/usr/lib /usr/lib/libintl.dll.a 
/usr/lib/libiconv.dll.a -lcrypt -lresolv -lpthread /usr/lib/libgdbm.dll.a
aclck.o: In function `main':
/usr/cvs/mailutils/examples/aclck.c:191: undefined reference to `_rpl_getopt'
/usr/cvs/mailutils/examples/aclck.c:208: undefined reference to `_rpl_optarg'
/usr/cvs/mailutils/examples/aclck.c:211: undefined reference to `_rpl_optarg'
/usr/cvs/mailutils/examples/aclck.c:200: undefined reference to `_rpl_optarg'
/usr/cvs/mailutils/examples/aclck.c:204: undefined reference to `_rpl_optarg'
collect2: ld returned 1 exit status


   $  nm aclck.o | grep _rpl_
         U _rpl_getopt
         U _rpl_optarg

  $  nm /usr/cvs/mailutils/mailbox/.libs/libmailutils.a | grep _rpl_
  return code 1
  $  nm /usr/cvs/mailutils/mailbox/.libs/libmailutils.a | grep getopt
  return code 1


I tried to look in the other library in the gcc invocation line but could not 
find _rpl_getopt using "nm" command.

In which library is it defined in?  Or what am I doing wrong.

regards,
  darel henman


_______________________________________________
Bug-mailutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-mailutils

Reply via email to