Package: libnecpp0 Version: 1.4.0+cvs20091005-2 Severity: normal Tags: upstream patch
When compiling an app wich uses libnecc, I get an undefined reference to nec_kh_card(...). On examining the code, the function is declared but never defined. As this function may not be used for now, it would be good to add it an empty function body ( { } ) until it's implemented. The attached patch does exactly this. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libnecpp0 depends on: ii libblas3gf [libblas.so.3gf] 1.2-8 Basic Linear Algebra Reference imp ii libc6 2.11.2-6 Embedded GNU C Library: Shared lib ii libgcc1 1:4.4.5-2 GCC support library ii liblapack3gf [liblapack.so.3g 3.2.2-1 library of linear algebra routines ii libstdc++6 4.4.5-2 The GNU Standard C++ Library v3 libnecpp0 recommends no packages. libnecpp0 suggests no packages. -- no debconf information
--- libNEC.cpp 2010-10-11 14:24:37.000000000 -0300 +++ libNEC.cpp.fix 2010-10-11 14:25:53.000000000 -0300 @@ -226,7 +226,7 @@ /* "kh" card, matrix integration limit */ -void nec_kh_card(nec_context* in_context, double tmp1); +void nec_kh_card(nec_context* in_context, double tmp1) {}; void nec_ne_card(nec_context* in_context, int itmp1, int itmp2, int itmp3, int itmp4, double tmp1, double tmp2, double tmp3, double tmp4, double tmp5, double tmp6) {