Subject: pkg/37262: misc/koffice fails to build on SPARC Solaris with gcc-4.2.2
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <raymond.meyer@rambler.ru>
List: pkgsrc-bugs
Date: 11/02/2007 11:05:00
>Number:         37262
>Category:       pkg
>Synopsis:       misc/koffice fails to build on SPARC Solaris with gcc-4.2.2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 02 11:05:00 +0000 2007
>Originator:     raymond
>Release:        
>Organization:
>Environment:
SunOS ultra10 5.10 Generic_118833-33 sun4u sparc SUNW,Ultra-5_10
>Description:
/bin/ksh ../../../../libtool --silent --tag=CC --mode=link gcc -DNO_TCL=1 -DNDEBUG -O2  -O -I/opt/pkg/include -I/opt/pkg/include/python2.4 -DLDAP_DEPRECATED -I/usr/include -I/opt/pkg/qt3/include -DGLX_GLXEXT_LEGACY -I/opt/pkg/include/freetype2 -I/opt/pkg/include/krb5 -I/opt/pkg/include/db4  -L/opt/pkg/qt3/lib -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -L/opt/pkg/lib/python2.4/config -Wl,-R/opt/pkg/lib/python2.4/config -L/usr/lib -Wl,-R/usr/lib -Wl,-R/opt/pkg/qt3/lib -L/usr/openwin/lib -Wl,-R/usr/openwin/lib -o ksqlite  shell.o libkexisql3.la
Undefined                       first referenced
 symbol                             in file
fdatasync                           ./.libs/libkexisql3.so
ld: fatal: Symbol referencing errors. No output written to .libs/ksqlite
collect2: ld returned 1 exit status
gmake[5]: *** [ksqlite] Error 1
gmake[5]: Leaving directory `/opt/pkg.obj/misc/koffice/work.ultra10/koffice-1.6.3/kexi/3rdparty/kexisql3/src'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory `/opt/pkg.obj/misc/koffice/work.ultra10/koffice-1.6.3/kexi/3rdparty/kexisql3'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/opt/pkg.obj/misc/koffice/work.ultra10/koffice-1.6.3/kexi/3rdparty'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/opt/pkg.obj/misc/koffice/work.ultra10/koffice-1.6.3/kexi'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/opt/pkg.obj/misc/koffice/work.ultra10/koffice-1.6.3'
gmake: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /opt/pkgsrc/misc/koffice
*** Error code 1

>How-To-Repeat:

>Fix:
To fix undefined symbol fdatasync, it needs -lrt compiler flag