pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/39747: misc/openoffice3 compile (link) error on NetBSD 3.0



>Number:         39747
>Category:       pkg
>Synopsis:       misc/openoffice3 compile (link) error on NetBSD 3.0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 16 11:35:00 +0000 2008
>Originator:     Robert Elz
>Release:        NetBSD 4.0_STABLE  (using 3.0 RELEASE, and pkgsrc current 
>today)
>Organization:
        Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 4.0_STABLE NetBSD 4.0_STABLE 
(JADE-1.696-20080517) #9: Fri May 23 18:55:13 ICT 2008 
kre%jade.coe.psu.ac.th@localhost:/usr/obj/4/kernels/JADE i386
Architecture: i386
Machine: i386
>Description:
        openoffice3 (or one of it slibraries) uses the trunc() function
        from libm that dod not appear until NetBSD 4

>How-To-Repeat:
        Build misc/openoffice3 on a NetBSD 3.0 (3.anything probably) system.
        I use pkg_comp with the NetBSD 3.0 (release) sets installed, and
        libkver to simulate a 3.0 user environment.

        Expect to see ...

creating libraptor.la
(cd .libs && rm -f libraptor.la && ln -s ../libraptor.la libraptor.la)
make[2]: Leaving directory 
`/pkg_comp/obj/pkgsrc/misc/openoffice3/default/OOO300_m9/redland/unxbsdi3.pro/misc/build/raptor-1.4.17/src'
make[1]: Leaving directory 
`/pkg_comp/obj/pkgsrc/misc/openoffice3/default/OOO300_m9/redland/unxbsdi3.pro/misc/build/raptor-1.4.17/src'
Making all in utils
make[1]: Entering directory 
`/pkg_comp/obj/pkgsrc/misc/openoffice3/default/OOO300_m9/redland/unxbsdi3.pro/misc/build/raptor-1.4.17/utils'
cc -DHAVE_CONFIG_H -I. -I../src  -I../src  -DRAPTOR_INTERNAL=1 
-I/usr/pkg/include -I/usr/pkg/include/libxml2 -I/usr/pkg/include/libxml2 
-I/pkg_comp/obj/pkgsrc/misc/openoffice3/default/OOO300_m9/solver/300/unxbsdi3.pro/inc/external
  -O2 -pthread -I/usr/pkg/include -I/usr/pkg/gcc34/include 
-I/usr/pkg/gcc34/lib/gcc/i386--netbsdelf3.0/3.4.6/include 
-I/usr/pkg/include/python2.4 -I/usr/pkg/include/db4 
-I/usr/pkg/include/freetype2 -I/usr/include/krb5 -I/usr/include 
-I/usr/X11R6/include -MT rapper.o -MD -MP -MF .deps/rapper.Tpo -c -o rapper.o 
rapper.c
mv -f .deps/rapper.Tpo .deps/rapper.Po
/bin/ksh ../libtool --tag=CC   --mode=link cc  -O2 -pthread -I/usr/pkg/include 
-I/usr/pkg/gcc34/include 
-I/usr/pkg/gcc34/lib/gcc/i386--netbsdelf3.0/3.4.6/include 
-I/usr/pkg/include/python2.4 -I/usr/pkg/include/db4 
-I/usr/pkg/include/freetype2 -I/usr/include/krb5 -I/usr/include 
-I/usr/X11R6/include  -L/usr/pkg/gcc34/lib/gcc/i386--netbsdelf3.0/3.4.6 
-Wl,-R/usr/pkg/gcc34/lib/gcc/i386--netbsdelf3.0/3.4.6 -L/usr/pkg/gcc34/lib 
-Wl,-R/usr/pkg/gcc34/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib 
-L/usr/pkg/gcc34/lib/gcc/i386--netbsdelf3.0/3.4.6/ 
-Wl,-R/usr/pkg/gcc34/lib/gcc/i386--netbsdelf3.0/3.4.6/ 
-L/usr/pkg/lib/python2.4/config -Wl,-R/usr/pkg/lib/python2.4/config -L/usr/lib 
-Wl,-R/usr/lib -L/usr/X11R6/lib -pthread -Wl,-R/usr/X11R6/lib 
-L/pkg_comp/obj/pkgsrc/misc/openoffice3/default/OOO300_m9/solver/300/unxbsdi3.pro/lib
 -o rapper rapper.o  ../src/libraptor.la -lm -Wl,-R/usr/pkg/lib -L/usr/pkg/lib 
-lxml2 -lz -lm -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lxslt -lxml2 -lz -lm 
mkdir .libs
cc -O2 -pthread -I/usr/pkg/include -I/usr/pkg/gcc34/include 
-I/usr/pkg/gcc34/lib/gcc/i386--netbsdelf3.0/3.4.6/include 
-I/usr/pkg/include/python2.4 -I/usr/pkg/include/db4 
-I/usr/pkg/include/freetype2 -I/usr/include/krb5 -I/usr/include 
-I/usr/X11R6/include -Wl,-R/usr/pkg/gcc34/lib/gcc/i386--netbsdelf3.0/3.4.6 
-Wl,-R/usr/pkg/gcc34/lib -Wl,-R/usr/pkg/lib 
-Wl,-R/usr/pkg/gcc34/lib/gcc/i386--netbsdelf3.0/3.4.6/ 
-Wl,-R/usr/pkg/lib/python2.4/config -Wl,-R/usr/lib -pthread 
-Wl,-R/usr/X11R6/lib -o .libs/rapper rapper.o -Wl,-R/usr/pkg/lib 
-Wl,-R/usr/pkg/lib  -L/usr/pkg/gcc34/lib/gcc/i386--netbsdelf3.0/3.4.6 
-L/usr/pkg/gcc34/lib -L/usr/pkg/lib 
-L/usr/pkg/gcc34/lib/gcc/i386--netbsdelf3.0/3.4.6/ 
-L/usr/pkg/lib/python2.4/config -L/usr/lib -L/usr/X11R6/lib 
-L/pkg_comp/obj/pkgsrc/misc/openoffice3/default/OOO300_m9/solver/300/unxbsdi3.pro/lib
 ../src/.libs/libraptor.so /usr/pkg/lib/libxslt.so /usr/pkg/lib/libxml2.so 
/usr/pkg/lib/libz.so -lm  -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/p!
 kg/lib
../src/.libs/libraptor.so: undefined reference to `trunc'
collect2: ld returned 1 exit status
make[1]: *** [rapper] Error 1
make[1]: Leaving directory 
`/pkg_comp/obj/pkgsrc/misc/openoffice3/default/OOO300_m9/redland/unxbsdi3.pro/misc/build/raptor-1.4.17/utils'
make: *** [all-recursive] Error 1
dmake:  Error code 2, while making 
'../unxbsdi3.pro/misc/build/so_built_so_raptor'

ERROR: Error 65280 occurred while making 
/pkg_comp/obj/pkgsrc/misc/openoffice3/default/OOO300_m9/redland/raptor
rmdir /tmp/3924
dmake:  Error code 1, while making 'build_instsetoo_native'
*** Error code 255

Stop.
make: stopped in /usr/pkgsrc/misc/openoffice3
WARNING: *** Please consider adding fortran to USE_LANGUAGES in the package 
Makefile.
*** Error code 1

Stop.

>Fix:
        Find a workaround/replacement for trunc() (it is not a very
        cmplicated function...)



Home | Main Index | Thread Index | Old Index