bug-mailutils
[Top][All Lists]
Advanced

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

[bug-mailutils] mail.local build complains of undefined references: mu_p


From: Robby Villegas
Subject: [bug-mailutils] mail.local build complains of undefined references: mu_pop_record and kin
Date: Mon, 2 Jul 2007 04:20:15 -0500

Hi folks,

It's great to see a new release!  I eagerly downloaded this when I saw
your announcement.

There was just one problem during the 'make' process.  During the
build of mail.local, these errors came up:

main.o: In function `main':
/home/Applications/mailutils-1.2/mail.local/main.c:398: undefined
reference to `mu_pop_record'
/home/Applications/mailutils-1.2/mail.local/main.c:398: undefined
reference to `mu_imap_record'
/home/Applications/mailutils-1.2/mail.local/main.c:398: undefined
reference to `mu_mh_record'
/home/Applications/mailutils-1.2/mail.local/main.c:398: undefined
reference to `mu_maildir_record'
/home/Applications/mailutils-1.2/mail.local/main.c:398: undefined
reference to `mu_nntp_record'


To fix this, I edited mail.local/Makefile by adding the POP, IMAP, MH,
MAILDIR, and NNTP libraries to the listing of additional libraries,
like this:

mail_local_LDADD = \
 \
\
../lib/libmuaux.la \
${MU_LIB_SIEVE}\
${MU_LIB_MBOX}\
${MU_LIB_AUTH}\
${MU_LIB_POP}\
${MU_LIB_IMAP}\
${MU_LIB_MH}\
${MU_LIB_MAILDIR}\
${MU_LIB_NNTP}\
\
${MU_LIB_MAILUTILS} \
$(LTLIBINTL) $(LTLIBICONV)

After I did this, the 'make' worked fine, and I now have a happy build
of mailutils 1.2 on my system.


Perhaps those four lines should be in the source .am file, circa this commit?

 
http://cvs.savannah.gnu.org/viewvc/mailutils/mail.local/Makefile.am?root=mailutils&r1=1.25&r2=1.26

I'm not thoroughly conversant with this code base (and there's been a
long hiatus in my use of mailutils), so I am not sure.  Perhaps others
will encounter this problem, though, and hopefully the above will
help.

Robby Villegas



P.S.  Here is the full excerpt of my 'make' output for the mail.local section:

make[3]: Entering directory `/home/Applications/mailutils-1.2/mail.local'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../include -I../lib
-I.. -I../include -I../include/mailutils/gnu -I../mailbox
-DSYSCONFDIR=\"/usr/local/etc\"  -g -O2 -MT main.o -MD -MP -MF
".deps/main.Tpo" -c -o main.o main.c; \
       then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f
".deps/main.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../include -I../lib
-I.. -I../include -I../include/mailutils/gnu -I../mailbox
-DSYSCONFDIR=\"/usr/local/etc\"  -g -O2 -MT mailquota.o -MD -MP -MF
".deps/mailquota.Tpo" -c -o mailquota.o mailquota.c; \
       then mv -f ".deps/mailquota.Tpo" ".deps/mailquota.Po"; else rm
-f ".deps/mailquota.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../include -I../lib
-I.. -I../include -I../include/mailutils/gnu -I../mailbox
-DSYSCONFDIR=\"/usr/local/etc\"  -g -O2 -MT script.o -MD -MP -MF
".deps/script.Tpo" -c -o script.o script.c; \
       then mv -f ".deps/script.Tpo" ".deps/script.Po"; else rm -f
".deps/script.Tpo"; exit 1; fi
/bin/bash ../libtool --tag=CC --mode=link gcc  -g -O2   -o mail.local
main.o mailquota.o script.o ../lib/libmuaux.la ../libsieve/libsieve.la
../libproto/mbox/libmu_mbox.la ../auth/libmuauth.la
../mailbox/libmailutils.la   -lcrypt -lresolv  -lpthread
gcc -g -O2 -o .libs/mail.local main.o mailquota.o script.o
../lib/.libs/libmuaux.a ../libsieve/.libs/libsieve.so
../libproto/mbox/.libs/libmu_mbox.so ../auth/.libs/libmuauth.so
/home/Applications/mailutils-1.2/mailbox/.libs/libmailutils.so
../mailbox/.libs/libmailutils.so -lcrypt -lresolv -lpthread
-Wl,--rpath -Wl,/usr/local/lib
main.o: In function `main':
/home/Applications/mailutils-1.2/mail.local/main.c:398: undefined
reference to `mu_pop_record'
/home/Applications/mailutils-1.2/mail.local/main.c:398: undefined
reference to `mu_imap_record'
/home/Applications/mailutils-1.2/mail.local/main.c:398: undefined
reference to `mu_mh_record'
/home/Applications/mailutils-1.2/mail.local/main.c:398: undefined
reference to `mu_maildir_record'
/home/Applications/mailutils-1.2/mail.local/main.c:398: undefined
reference to `mu_nntp_record'
collect2: ld returned 1 exit status
make[3]: *** [mail.local] Error 1
make[3]: Leaving directory `/home/Applications/mailutils-1.2/mail.local'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Applications/mailutils-1.2/mail.local'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Applications/mailutils-1.2'
make: *** [all] Error 2




reply via email to

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