Errors compiling cups

Soren Frank Munch sfm at u5.com
Sat Sep 17 04:37:36 PDT 2005


I had the same problem and figured out the below solution.
Go to the directory where you have unpacked CUPS. Do the below patch for the file "configure" before you run it. This worked for me under FreeBSD 5.4 + cups-1.1.23

HIH,
Soren Frank Munch

In configure find this section:


-----------------------------------------
                        # This is gcc 3.x, and it knows of libsupc++, so we need it
                        CXXLIBS="-lsupc++"
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                        ;;
        esac

        CXX="$CC"

        if test -z "$OPTIM"; then
-----------------------------------------



Then, after "esac" add the below lines (don't remove/change anything else), then run configure etc. as usual.

# Simple workaround if compiling (e.g. under FreeBSD 5.x)
# fails with this message:
# undefined reference to __cxxabiv1::__unexpected_handler'
# We simply use libstdc++ by adding next line:
#
# Read above comment "Starting with GCC 3.0..." for more on this.
#
        CXXLIBS="-lstdc++"








> Hello All!
>
> Im trying to compile cups in a FreeBSD-5.3
>
> I have tried cups-1.2.22 and .23 but im getting the same error:
>
> -bash-2.05b# make
> Making all in cups...
> Making all in backend...
> Making all in berkeley...
> Making all in cgi-bin...
> Making all in filter...
> Making all in man...
> Making all in man/es...
> Making all in man/fr...
> Making all in pdftops...
> Linking pdftops...
> /usr/lib/libsupc++.a(eh_throw.o)(.text.__cxa_throw+0x1a): In function `__cxa_thr
> ow':
> : undefined reference to `__cxxabiv1::__unexpected_handler'
> /usr/lib/libsupc++.a(eh_throw.o)(.text.__cxa_throw+0x22): In function `__cxa_thr
> ow':
> : undefined reference to `__cxxabiv1::__terminate_handler'
> /usr/lib/libsupc++.a(eh_terminate.o)(.text._ZSt9terminatev+0x8): In function `st
> d::terminate()':
> : undefined reference to `__cxxabiv1::__terminate_handler'
> /usr/lib/libsupc++.a(eh_terminate.o)(.text._ZSt10unexpectedv+0x8): In function `
> std::unexpected()':
> : undefined reference to `__cxxabiv1::__unexpected_handler'
> /usr/lib/libsupc++.a(eh_terminate.o)(.text._ZSt13set_terminatePFvvE+0x4): In fun
> ction `std::set_terminate(void (*)())':
> : undefined reference to `__cxxabiv1::__terminate_handler'
> /usr/lib/libsupc++.a(eh_terminate.o)(.text._ZSt13set_terminatePFvvE+0xd): In fun
> ction `std::set_terminate(void (*)())':
> : undefined reference to `__cxxabiv1::__terminate_handler'
> /usr/lib/libsupc++.a(eh_terminate.o)(.text._ZSt14set_unexpectedPFvvE+0x4): In fu
> nction `std::set_unexpected(void (*)())':
> : undefined reference to `__cxxabiv1::__unexpected_handler'
> /usr/lib/libsupc++.a(eh_terminate.o)(.text._ZSt14set_unexpectedPFvvE+0xd): In fu
> nction `std::set_unexpected(void (*)())':
> : undefined reference to `__cxxabiv1::__unexpected_handler'
> *** Error code 1
>
> Stop in /usr/home/user/cups-1.1.22/pdftops.
> *** Error code 1
>
> Stop in /usr/home/user/cups-1.1.22.
>
> Some idea?







More information about the cups mailing list