G'day,

The IUP sources, in particular iupview, no longer link successfully under
SVN revision r5375, whereas they did under r5374.

A look at the build output line count shows that the build is abandoned
part-way through:

        ~/Desktop $ wc -l iup-r5374.txt iup-r5375.txt
           9070 iup-r5374.txt
           8162 iup-r5375.txt
          17232 total
        ~/Desktop $

Using "tail -n 20" on iup-r5375.txt yields:

-- (cut here) --

iup_view.c: In function 'saveallimagesone_cb':
iup_view.c:431:12: warning: implicit declaration of function 
'iupImageSaveAsTextPacked'; did you mean 'iupImageSaveToString'? 
[-Wimplicit-function-declaration]
       if (!iupImageSaveAsTextPacked(elem, packfile, imgtype, names[i]))
            ^~~~~~~~~~~~~~~~~~~~~~~~
            iupImageSaveToString

Tecmake: linking iupview ...
g++ -o ../bin/Linux415_64/iupview ../obj/iupview/Linux415_64/iup_view.o 
../lib/Linux415_64/libiupim.a ../lib/Linux415_64/libiupimglib.a 
../lib/Linux415_64/libiupcontrols.a /usr/lib/x86_64-linux-gnu/liblua5.1.a 
../lib/Linux415_64/libiupcd.a ../lib/Linux415_64/libiupgl.a 
../lib/Linux415_64/libiup.a ../../cd/lib/Linux415_64/libcd.a 
../../im/lib/Linux415_64/libim.a -L/usr/X11R6/lib64 -lfontconfig -lpng 
-lfreetype -lz -lGLU -lGL -lXext -lX11 -lm -lgtk-3 -latk-1.0 -lgio-2.0 -lgdk-3 
-lpangocairo-1.0 -lpango-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo 
-lgobject-2.0 -lglib-2.0
/usr/bin/ld: ../lib/Linux415_64/libiup.a(iup_thread.o): undefined reference to 
symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from 
command line
collect2: error: ld returned 1 exit status
../tecmake.mak:1659: recipe for target '../bin/Linux415_64/iupview' failed
make[2]: *** [../bin/Linux415_64/iupview] Error 1
Makefile:10: recipe for target 'do_all' failed
make[1]: *** [do_all] Error 2
Makefile:45: recipe for target 'iupview' failed
make: *** [iupview] Error 2
[...]

-- (cut here) --

Some Web (Stack Overflow) searching indicated that DSO is an abbreviation
for "Dynamic Shared Object".

It appears that the "pthread" library needs to be present, at a suitable
place, in the linker command line; or, perhaps, it may need to be specified
more than once, or maybe at a later stage of the command line than at
present.

This condition has persisted in all revisions since r5375; I have used my
"assistant" toolkit to drag in specific revisions to bisect success/fail
builds to locate the IUP r5374/r5375 boundary.  (Currently IUP is at
r5393, I think.)

cheers,

sur-behoffski (Brenton Hoff)
programmer, Grouse Software


_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to