Re: 64-bits problem

On Friday 02 March 2007 02:05, Sergio Monteiro Basto wrote:
> On Thu, 2007-03-01 at 09:14 +0000, Regis Boudin wrote:
> > Patch already merged in CVS.
>
> thanks, now I have this problems with --disable-annot:
> g++  -o ../bin/amaya wxdialog/AuthentDlgWX.o wxdialog/CheckedListDlgWX.o
> wxdialog/CreateTableDlgWX.o wxdialog/DocInfoDlgWX.o
> wxdialog/EnumListDlgWX.o wxdialog/HRefDlgWX.o wxdialog/ImageDlgWX.o
> wxdialog/InitConfirmDlgWX.o wxdialog/ListDlgWX.o wxdialog/ListEditDlgWX.o
> wxdialog/NewTemplateDocDlgWX.o wxdialog/MakeIdDlgWX.o wxdialog/NumDlgWX.o
> wxdialog/ObjectDlgWX.o wxdialog/OpenDocDlgWX.o wxdialog/PreferenceDlgWX.o
> wxdialog/PrintDlgWX.o wxdialog/SaveAsDlgWX.o wxdialog/SearchDlgWX.o
> wxdialog/SelectOperatorDlgWX.o wxdialog/SelectFenceAttributesDlgWX.o
> wxdialog/SelectIntegralDlgWX.o wxdialog/SpellCheckDlgWX.o
> wxdialog/StyleDlgWX.o wxdialog/TextDlgWX.o wxdialog/TitleDlgWX.o
> wxdialogapi.o EDITORAPP.o HTMLAPP.o TextFileAPP.o XLinkAPP.o XMLAPP.o
> AHTURLTools.o EDITORactions.o EDITimage.o EDITstyle.o HTMLactions.o
> HTMLbook.o HTMLedit.o HTMLform.o HTMLhistory.o HTMLimage.o
> HTMLpresentation.o HTMLsave.o HTMLtable.o html2thot.o init.o insertelem.o
> libmanag.o MENUconf.o XLinkbuilder.o XLinkedit.o mydictionary.o templates.o
> trans.o transparse.o UIcss.o Xml2thot.o Xmlbuilder.o XHTMLbuilder.o
> XPointer.o XPointerparse.o  AHTBridge.o AHTFWrite.o answer.o query.o
> AHTMemConv.o AHTInit.o anim.o animbuilder..o SVGAPP.o SVGbuilder.o
> SVGedit.o TimelineAPP.o MathMLAPP.o MathMLbuilder.o Mathedit.o 
> ../libwww/Library/src/HTHome.o   libCSS.a  ../davlib/davlib.a   
> -L../thotlib -L.. -lThotEditor     -ljpeg -lpng -lz 
> -L../libwww/Library/src/.libs  -lwwwzip -lwwwapp -lwwwhtml -lwwwhttp
> -lwwwmime -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwtrans
> -lwwwcore -lwwwutils -lwwwdav -L../libwww/modules/md5/.libs -lmd5
> ../libwww/modules/expat/.libs/libexpat.a -ldl      -L/usr/lib64
> -L/usr/lib64 -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11
> -lm -lgdk_imlib .../libwww/Library/src/.libs/libwwwcore.a(HTWWWStr.o): In
> function `HTMessageIdStr': HTWWWStr.c:(.text+0xedd): warning: the use of
> `tmpnam' is dangerous, better use `mkstemp'
> .../libwww/Library/src/.libs/libwwwcore.a(HTInet.o): In function
> `HTGetTmpFileName': HTInet.c:(.text+0x155): warning: the use of `tempnam'
> is dangerous, better use `mkstemp'
> .../thotlib/libThotEditor.a(pnghandler.o): In function `ReadPng(_IO_FILE*,
> int*, int*, int*, int*, XColor**, int*, bool*, bool*)':
> pnghandler.c:(.text+0x799): undefined reference to `png_read_destroy'
> collect2: ld returned 1 exit status
> make[1]: *** [../bin/amaya] Error 1
> make[1]: Leaving directory
> `/usr/src/redhat/BUILD/amaya-9.54/Amaya9.54/Amaya/gtk-build/amaya' make:
> *** [amaya_prog] Error 2

pnghandler.c has no relation with --enable-annot or --disable-annot
Could you try to comment the line 221 in Amaya/thotlib/image/pnghandler.c

     ppbRowPointers = NULL; 
     /* clean up after the read, and free any memory allocated */
-    png_read_destroy (png_ptr, info_ptr, (png_info*) NULL);
+    //png_read_destroy (png_ptr, info_ptr, (png_info*) NULL);
    /* Free all of the memory associated with the png_ptr and info_ptr */
    png_destroy_read_struct (&png_ptr, &info_ptr, (png_infopp)NULL);

Normally png_destroy_read_struct should do the work
Let me know if it works.

> and with --enable-annot
> g++ -O2 -Wall -x c++ -D__cplusplus -DHAVE_CONFIG_H -DANNOTATIONS -I..
> -I../amaya  -I../../annotlib/f -I../../amaya -I../../amaya/f -I../libwww
> -I../../../libwww/Library/src -I../../../libwww/modules/expat/lib
> -I../../../redland/librdf -I../../../redland/raptor -I../../thotlib/include
> -I../../thotlib/internals/var -I../../thotlib/internals/h
> -I../../thotlib/internals/f   -I/usr/include/gtk-1.2
> -I/usr/include/glib-1.2 -I/usr/lib64/glib/include -I/usr/include  -D_UNIX  
> -DXML_GENERIC -D_GTK     -DAM_REDLAND -I../../../redland/librdf
> -I../../../redland/raptor  -DBOOKMARKS -c ../../annotlib/BMtools..c -o
> BMtools.o /usr/bin/ar rc libAnnot.a AnnotAPP.o ANNOTevent.o ANNOTfiles.o
> ANNOTlink.o ANNOTtools.o AHTrdf2annot.o ANNOTmenu.o ANNOTschemas.o
> TopicsAPP.o BMevent.o BMmenu.o BMfile.o BMview.o BMtools.o /usr/bin/ar:
> TopicsAPP.o: No such file or directory
> make[2]: *** [libAnnot.a] Error 1
> make[2]: Leaving directory
> `/usr/src/redhat/BUILD/amaya-9.54/Amaya9.54/Amaya/gtk-build/annotlib'
> make[1]: *** [../annotlib/libAnnot.a] Error 2
> make[1]: Leaving directory
> `/usr/src/redhat/BUILD/amaya-9.54/Amaya9.54/Amaya/gtk-build/amaya' make:
> *** [amaya_prog] Error 2

It could be due to a change of options.
I suggest you remove your obj sub-directory and restart  a "../configure"
without any option

     Irène.
-----
Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail: Irene.Vatton@inria.fr       655 avenue de l'Europe
Tel.: +33 4 76 61 53 61             Montbonnot
Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France

Received on Friday, 2 March 2007 10:27:15 UTC