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:              20-Jun-08 15:48 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. 

---------------------------------------------------------------------- 
 paul - 19-Jun-08 21:45  
---------------------------------------------------------------------- 
Afaik, gmime uses the same stable/unstable release versioning as dbmail
does. 2.3.x is the unstable release branch. Dbmail uses the stable
gmime-2.2.x branch.

ftp://ftp.gnome.org/pub/GNOME/sources/gmime/2.2/gmime-2.2.21.tar.gz 

---------------------------------------------------------------------- 
 ttessier - 20-Jun-08 14:31  
---------------------------------------------------------------------- 
Do you think this has something to do with LD_LIBRARY_PATH or the -L -R
req's for solaris? 

---------------------------------------------------------------------- 
 ttessier - 20-Jun-08 14:35  
---------------------------------------------------------------------- 
this is the docbook warnings btw -
asciidoc -b docbook -d manpage dbmail.txt
WARNING: non-standard docbook backend
WARNING: [quotes] __ missing tag definition: emphasis
WARNING: [quotes] ` missing tag definition: monospaced
WARNING: [quotes] # missing tag definition: unquoted
WARNING: [quotes] ' missing tag definition: emphasis
WARNING: [quotes] ++ missing tag definition: monospaced
WARNING: [quotes] + missing tag definition: monospaced
WARNING: [quotes] * missing tag definition: strong
WARNING: [quotes] ## missing tag definition: unquoted
WARNING: [quotes] ~ missing tag definition: subscript
WARNING: [quotes] ** missing tag definition: strong
WARNING: [quotes] ``|'' missing tag definition: quoted
WARNING: [quotes] _ missing tag definition: emphasis
WARNING: [quotes] ^ missing tag definition: superscript
WARNING: [admonitionparagraph] missing template section
WARNING: [admonitionparagraph] missing template section
WARNING: [admonitionparagraph] missing template section
WARNING: [admonitionparagraph] missing template section
WARNING: [admonitionparagraph] missing template section
WARNING: [verseparagraph] missing template section
WARNING: [paragraph] missing template section
WARNING: [literalparagraph] missing template section
WARNING: [admonitionparagraph] missing template section
WARNING: [admonitionparagraph] missing template section
WARNING: [admonitionparagraph] missing template section
WARNING: [admonitionparagraph] missing template section
WARNING: [admonitionparagraph] missing template section
WARNING: [listdef-bulleted] missing listtag
WARNING: [listdef-bulleted] missing tag itemtag
WARNING: [listdef-bulleted] missing tag texttag
WARNING: [listdef-bulleted2] missing listtag
WARNING: [listdef-bulleted2] missing tag itemtag
WARNING: [listdef-bulleted2] missing tag texttag
WARNING: [listdef-numbered] missing listtag
WARNING: [listdef-numbered] missing tag itemtag
WARNING: [listdef-numbered] missing tag texttag
WARNING: [listdef-numbered2] missing listtag
WARNING: [listdef-numbered2] missing tag itemtag
WARNING: [listdef-numbered2] missing tag texttag
WARNING: [listdef-vlabeled] missing listtag
WARNING: [listdef-vlabeled] missing tag itemtag
WARNING: [listdef-vlabeled] missing tag texttag
WARNING: [listdef-vlabeled] missing entrytag
WARNING: [listdef-vlabeled] missing labeltag
WARNING: [listdef-vlabeled2] missing listtag
WARNING: [listdef-vlabeled2] missing tag itemtag
WARNING: [listdef-vlabeled2] missing tag texttag
WARNING: [listdef-vlabeled2] missing entrytag
WARNING: [listdef-vlabeled2] missing labeltag
WARNING: [listdef-hlabeled] missing listtag
WARNING: [listdef-hlabeled] missing tag itemtag
WARNING: [listdef-hlabeled] missing tag texttag
WARNING: [listdef-hlabeled] missing entrytag
WARNING: [listdef-hlabeled] missing labeltag
WARNING: [listdef-hlabeled2] missing listtag
WARNING: [listdef-hlabeled2] missing tag itemtag
WARNING: [listdef-hlabeled2] missing tag texttag
WARNING: [listdef-hlabeled2] missing entrytag
WARNING: [listdef-hlabeled2] missing labeltag
WARNING: [listdef-qanda] missing listtag
WARNING: [listdef-qanda] missing tag itemtag
WARNING: [listdef-qanda] missing tag texttag
WARNING: [listdef-qanda] missing entrytag
WARNING: [listdef-qanda] missing labeltag
WARNING: [listdef-bibliography] missing listtag
WARNING: [listdef-bibliography] missing tag itemtag
WARNING: [listdef-bibliography] missing tag texttag
WARNING: [listdef-glossary] missing listtag
WARNING: [listdef-glossary] missing tag itemtag
WARNING: [listdef-glossary] missing tag texttag
WARNING: [listdef-glossary] missing entrytag
WARNING: [listdef-glossary] missing labeltag
WARNING: [listdef-callout] missing listtag
WARNING: [listdef-callout] missing tag itemtag
WARNING: [listdef-callout] missing tag texttag
WARNING: [sidebarblock] missing template section
WARNING: [passthroughblock] missing template section
WARNING: [listingblock] missing template section
WARNING: [verseblock] missing template section
WARNING: [literalblock] missing template section
WARNING: [quoteblock] missing template section
WARNING: [admonitionblock] missing template section
WARNING: [admonitionblock] missing template section
WARNING: [admonitionblock] missing template section
WARNING: [admonitionblock] missing template section
WARNING: [admonitionblock] missing template section
WARNING: [exampleblock] missing template section
WARNING: [listingblock] missing template section
WARNING: [music-block] missing template section
WARNING: missing [listingblock] section
WARNING: dbmail.txt: line 8: missing [header] section
WARNING: dbmail.txt: line 11: missing [sect-synopsis] section
WARNING: dbmail.txt: line 13: missing [paragraph] section
WARNING: dbmail.txt: line 24: missing [literalparagraph] section
WARNING: footer.txt: line 3: missing [sect1] section
WARNING: footer.txt: line 5: missing macro section: [http]-inlinemacro
WARNING: footer.txt: line 5: missing [paragraph] section
WARNING: footer.txt: line 8: missing [sect1] section
WARNING: footer.txt: line 10: missing [paragraph] section
WARNING: footer.txt: line 13: missing [sect1] section
WARNING: footer.txt: line 16: missing [paragraph] section
WARNING: footer.txt: line 24: missing [literalparagraph] section
WARNING: dbmail.txt: line 27: missing [footer] section 

---------------------------------------------------------------------- 
 ttessier - 20-Jun-08 15:48  
---------------------------------------------------------------------- 
I was now able to build dbmail, but I modified the gmime build Makefile to
add the -L/usr/local/lib -R/usr/local/lib options to GLIB_LIBS, I modified
the asciidoc install to work on my system, however, it doesnt work still so
I removed the man dir from the makefile and rebuilt 

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                          
19-Jun-08 21:45 paul           Note Added: 0002580                          
20-Jun-08 14:31 ttessier       Note Added: 0002581                          
20-Jun-08 14:35 ttessier       Note Added: 0002582                          
20-Jun-08 15:48 ttessier       Note Added: 0002583                          
======================================================================

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

Reply via email to