pkgsrc-Bugs archive

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

pkg/47351: miniexp.cpp:1011: error: expected id-expression before '(' token



>Number:         47351
>Category:       pkg
>Synopsis:       miniexp.cpp:1011: error: expected id-expression before '(' 
>token
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 18 02:00:01 +0000 2012
>Originator:     David Shao
>Release:        DragonFly  3.3-DEVELOPMENT x86_64 i386
>Organization:
>Environment:
DragonFly 3.3-DEVELOPMENT x86_64 i386
>Description:
On DragonFly 3.3-DEVELOPMENT using current pkgsrc master as of

commit bf4bf268a1193e200f24ef7842413517a8dba2d5
Author: pkgsrc fixup <pkgsrc%dragonflybsd.org@localhost>
Date:   Mon Dec 17 13:42:06 2012 -0800

building graphics/djvulibre-lib fails with error message:

libtool: compile:  c++ -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall 
-Wno-non-virtual-dtor -pthread -DTHREADMODEL=POSIXTHREADS 
-I/usr/pkgsrc/graphics/djvulibre-lib/work/.buildlink/include -c miniexp.cpp  
-fPIC -DPIC -o .libs/miniexp.o
miniexp.cpp: In function 'int stdio_fgetc(miniexp_io_t*)':
miniexp.cpp:1011: error: expected id-expression before '(' token
*** Error code 1

The function surrounding line 1011 is:

static int 
stdio_fgetc(miniexp_io_t *io)
{
  if (io == &miniexp_io && !CompatCounter::count)
    return (*minilisp_getc)(); /* compatibility hack */
  FILE *f = (io->data[0]) ? (FILE*)(io->data[0]) : stdin;
  return ::getc(f);
}

with the return ::getc(f) line as line 1011.

Compiling the following produces a workable program in DragonFly:

#include <stdio.h>
#include <iostream>
using namespace std;

int main(void) {
  std::cout << "Read character " <<  "<" << ::getc(stdin) << ">\n";
}

The default C++ compiler is:

# c++ --version
c++ (DragonFly) 4.4.7 2012.03.13

>How-To-Repeat:
On DragonFly 3.3-DEVELOPMENT using current pkgsrc master as of

commit bf4bf268a1193e200f24ef7842413517a8dba2d5
Author: pkgsrc fixup <pkgsrc%dragonflybsd.org@localhost>
Date:   Mon Dec 17 13:42:06 2012 -0800

building graphics/djvulibre-lib 
>Fix:



Home | Main Index | Thread Index | Old Index