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

Bug#354824: marked as done (netcdfg-dev: test program not compiles with g++-4.0 and g++-3.4)



Your message dated Sun, 29 Oct 2006 10:39:45 +0100
with message-id <87hcxnlau6.fsf@debian.org>
and subject line Bug#354824: fixed in netcdf 3.6.1-0.1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: netcdfg-dev
Version: 3.5.0-7.1
Severity: normal

Trying to compile test program
tncdf.cc:
#include <netcdfcpp.h>

int main()
{
        NcFile f("t.nc");
        return 0;
}

I get:

lel@iket126181:~/src$ g++-3.3 tncdf.cc -lnetcdf -lnetcdf_c++
lel@iket126181:~/src$ g++-3.4 tncdf.cc -lnetcdf -lnetcdf_c++
/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib/libnetcdf_c++.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage'
collect2: ld returned 1 exit status
lel@iket126181:~/src$ g++-4.0 tncdf.cc -lnetcdf -lnetcdf_c++
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libnetcdf_c++.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage'
collect2: ld returned 1 exit status

So probably some dependancies or recomendations should be set for g++ version.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27-2-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages netcdfg-dev depends on:
ii  libc6-dev                     2.3.5-13   GNU C Library: Development Librari
ii  netcdfg3                      3.5.0-7.1  An interface for scientific data a

netcdfg-dev recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
Source: netcdf
Source-Version: 3.6.1-0.1

This seems to have been related to #187205, which was fixed in
netcdf 3.6.0+3.6.1-beta3-0.1.  In any case, the test program
compiles fine with netcdf 3.6.1-0.1 on g++-4.0 and g++-4.1.

Thanks,

Matej

--- End Message ---

Reply to: