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

Bug#101346: refuses to compile a simple source



Package: g++-3.0
Version: 1:3.0-0pre010613
Severity: important
Tags: sid

This is midly annoying:

> g++-3.0 -o xxx xxx.C
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exist status

This is the xxx.C source:

------------------------------------------------------------------------------

#ifdef SYS_POLL_MISSING /* { */
struct pollfd { int fd; short events; short revents; };
extern "C" int poll(struct pollfd *ufds, unsigned int nfds, int timeout);
#define POLLIN      0x0001
#define POLLPRI     0x0002
#define POLLOUT     0x0004
#define POLLERR     0x0008
#define POLLHUP     0x0010
#define POLLNVAL    0x0020
#else /* } { */
#include <sys/poll.h>
#endif /* } */
int main() {
  struct pollfd fds[3];
  return poll(fds, 3, 700);
}
------------------------------------------------------------------------------

Wichert.

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux fog 2.2.19+ext3+ipsec #1 Thu Apr 12 17:22:37 CEST 2001 i686
Locale: LANG=en_GB.ISO-8859-1, LC_CTYPE=en_GB.ISO-8859-1

Versions of packages g++-3.0 depends on:
ii  gcc-3.0                 1:3.0-0pre010613 The GNU C compiler.               
ii  gcc-3.0-base            1:3.0-0pre010613 The GNU compiler collection (base 
ii  libc6                   2.2.3-6          GNU C Library: Shared libraries an
ii  libstdc++3-dev          1:3.0-0pre010613 The GNU stdc++ library version 3 (




Reply to: