A NOTE has been added to this issue. 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=711 
====================================================================== 
Reported By:                ttessier
Assigned To:                
====================================================================== 
Project:                    DBMail
Issue ID:                   711
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
target:                      
====================================================================== 
Date Submitted:             18-Jun-08 23:08 CEST
Last Modified:              19-Jun-08 16:54 CEST
====================================================================== 
Summary:                    undefined symbol for gmime
Description: 
/bin/bash ./libtool --tag=CC --mode=link gcc  -g -O2
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include  
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include  
-I/usr/local/include/gmime-2.0 -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include   -W -Wall -Wpointer-arith
-Wstrict-prototypes  -export-dynamic -lcrypt -L/usr/local/lib -lglib-2.0
-liconv   -L/usr/local/lib -lgmodule-2.0 -lglib-2.0 -liconv  
-L/usr/local/lib -lgmime-2.0 -lnsl -lgobject-2.0 -lglib-2.0 -liconv -o
dbmail-smtp  main.o libdbmail.la
gcc -g -O2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/gmime-2.0 -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -W -Wall -Wpointer-arith
-Wstrict-prototypes -o .libs/dbmail-smtp main.o  -L/usr/local/lib
-L/usr/lib -L/usr/openwin/lib -L/usr/local/ssl/lib
-L/usr/local/BerkeleyDB.4.2/lib -L/usr/X11R6/lib ./.libs/libdbmail.so
/usr/local/lib/libgmodule-2.0.so /usr/local/lib/libgmime-2.0.so
/usr/local/lib/libgobject-2.0.so /usr/local/lib/libglib-2.0.so
/usr/local/lib/libiconv.so -lcrypt -lresolv -lsocket -lnsl
-R/usr/local/lib/dbmail -R/usr/local/lib
Undefined                       first referenced
 symbol                             in file
g_mime_utils_header_encode_text     ./.libs/libdbmail.so
g_mime_utils_header_decode_text     ./.libs/libdbmail.so
g_mime_stream_file_set_owner        ./.libs/libdbmail.so
g_mime_message_get_mime_part        ./.libs/libdbmail.so
g_mime_utils_header_encode_phrase   ./.libs/libdbmail.so
g_mime_locale_charset               ./.libs/libdbmail.so
g_mime_shutdown                     main.o
ld: fatal: Symbol referencing errors. No output written to
.libs/dbmail-smtp
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `dbmail-smtp'
Current working directory /export/home/dbmail-2.2.10
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='modules '; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/home/dbmail-2.2.10
*** Error code 1
make: Fatal error: Command failed for target `all'
====================================================================== 

---------------------------------------------------------------------- 
 paul - 19-Jun-08 09:09  
---------------------------------------------------------------------- 
please list the version of libgmime you are using. 

---------------------------------------------------------------------- 
 ttessier - 19-Jun-08 14:39  
---------------------------------------------------------------------- 
I tried to use gmime-2.0.0 and gmime-2.4.0 

---------------------------------------------------------------------- 
 paul - 19-Jun-08 16:22  
---------------------------------------------------------------------- 
2.0.0 is way too old.
But since the current unstable version is at 2.3.4, I seriously doubt you
actually tried 2.4.0. Look again plz. 

---------------------------------------------------------------------- 
 ttessier - 19-Jun-08 16:53  
---------------------------------------------------------------------- 
Let me put it this way, the same error appeared on both versions so
something else is wrong. The version that I downloaded was the latest. The
directory that the files were installed into was the gmime-2.4 in libs and
includes which means that the development team is probably preparing for a
2.4 release. Anyways, if either version is creating the same issue it is
most likely not version related. To actually get the version of dbmail to
build and I had to modify the configure to look for 2.4 instead of 2.0
which is a funny thing I thought. Also, the dependencies did not include
asciidoc which I needed and was not picked up by configure. Asciidoc was a
horrible install that I had to rewrite myself to get close to installed.
Then, it turns out that the building of the man section completely failed
with asciidoc. Long story short, I think we need another avenue to look
down than version. My first question is how the previous object build
works and links to the gmime library correctly, however, the second object
fails, but the linking is done entirely different. I don't remember seeing
things linked using the actuall.so filename regularly since the
-l[libname] works. But since I did not develope this software, I dont know
all of the internals of how it is built or how its autoconf is being gen'd.
I also do not know if it is actually properly portable to solaris 10 x86
which could be the problem. However, since the -Rlibpath is used, its
"should" be somewhat ported correctly. 

---------------------------------------------------------------------- 
 ttessier - 19-Jun-08 16:54  
---------------------------------------------------------------------- 
If you have a recommendation for the gmime version, please specify if 2.0
is too old. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
18-Jun-08 23:08 ttessier       New Issue                                    
19-Jun-08 09:09 paul           Note Added: 0002572                          
19-Jun-08 14:39 ttessier       Note Added: 0002574                          
19-Jun-08 16:22 paul           Note Added: 0002576                          
19-Jun-08 16:53 ttessier       Note Added: 0002577                          
19-Jun-08 16:54 ttessier       Note Added: 0002578                          
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to