Git Product home page Git Product logo

Comments (6)

snipershady avatar snipershady commented on August 30, 2024

Do you know of any way to fix this issue?

The environment I've used to set up the software is Debian 12.6

from star.

zk-P avatar zk-P commented on August 30, 2024

I also meet this problem, waiting for the solution

from star.

zk-P avatar zk-P commented on August 30, 2024

Do you know of any way to fix this issue?

The environment I've used to set up the software is Debian 12.6

When I return to Version 2.7.10a, 'make' command runs well without any error.

from star.

snipershady avatar snipershady commented on August 30, 2024

I've the same problem with 2.7.10a

waiting for a solution

from star.

ConYel avatar ConYel commented on August 30, 2024

same issue on alpine

STAR.cpp: In function 'void usage(int)':
STAR.cpp:52:45: error: 'parametersDefault' was not declared in this scope
   52 |         cout.write(reinterpret_cast<char *>(parametersDefault),
      |                                             ^~~~~~~~~~~~~~~~~
STAR.cpp:53:20: error: 'parametersDefault_len' was not declared in this scope
   53 |                    parametersDefault_len);
      |                    ^~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:100: STAR.o] Error 1

from star.

ConYel avatar ConYel commented on August 30, 2024

I don't know if it is from xxd -i as in the last version it doesn't have -i option anymore:

xxd --help
BusyBox v1.33.1 () multi-call binary.

Usage: xxd [-pr] [-g N] [-c N] [-n LEN] [-s OFS] [FILE]

Hex dump FILE (or stdin)

	-g N		Bytes per group
	-c N		Bytes per line
	-p		Show only hex bytes, assumes -c30
	-l LENGTH	Show only first LENGTH bytes
	-s OFFSET	Skip OFFSET bytes
	-r		Reverse (with -p, assumes no offsets in input)

relevant? #1931 (comment)

following error after solving the above

In file included from SharedMemory.cpp:5:
SharedMemory.h:142:27: error: expected ')' before 'key'
  142 |         SharedMemory(key_t key, bool unloadLast);
      |                     ~     ^~~~
      |                           )
SharedMemory.h:160:9: error: 'key_t' does not name a type
  160 |         key_t _key;
      |         ^~~~~
SharedMemory.h:161:9: error: 'key_t' does not name a type
  161 |         key_t _counterKey;
      |         ^~~~~
SharedMemory.cpp:22:1: error: no declaration matches 'SharedMemory::SharedMemory(key_t, bool)'
   22 | SharedMemory::SharedMemory(key_t key, bool unloadLast): _key(key), _counterKey(key+1), _unloadLast(unloadLast), _err(&cerr)
      | ^~~~~~~~~~~~
SharedMemory.h:85:7: note: candidates are: 'constexpr SharedMemory::SharedMemory(const SharedMemory&)'
   85 | class SharedMemory
      |       ^~~~~~~~~~~~
SharedMemory.h:85:7: note:                 'SharedMemory::SharedMemory()'
SharedMemory.h:85:7: note: 'class SharedMemory' defined here
SharedMemory.cpp: In member function 'std::string SharedMemory::GetPosixObjectKey()':
SharedMemory.cpp:90:19: error: '_key' was not declared in this scope; did you mean 'key'?
   90 |     key << "/" << _key;
      |                   ^~~~
      |                   key
SharedMemory.cpp: In member function 'std::string SharedMemory::CounterName()':
SharedMemory.cpp:97:45: error: '_key' was not declared in this scope
   97 |     counterName << "/shared_use_counter" << _key;
      |                                             ^~~~
SharedMemory.cpp: In member function 'void SharedMemory::CreateAndInitSharedObject(size_t)':
SharedMemory.cpp:109:19: error: '_key' was not declared in this scope
  109 |     _shmID=shmget(_key, toReserve, IPC_CREAT | IPC_EXCL | SHM_NORESERVE | 0666); //        _shmID = shmget(shmKey, shmSize, IPC_CREAT | SHM_NORESERVE | SHM_HUGETLB | 0666);
      |                   ^~~~
SharedMemory.cpp: In member function 'void SharedMemory::OpenIfExists()':
SharedMemory.cpp:141:23: error: '_key' was not declared in this scope
  141 |         _shmID=shmget(_key,0,0);
      |                       ^~~~
SharedMemory.cpp: In member function 'void SharedMemory::EnsureCounter()':
SharedMemory.cpp:247:33: error: '_counterKey' was not declared in this scope; did you mean '_counterMem'?
  247 |         _sharedCounterID=shmget(_counterKey,0,0);
      |                                 ^~~~~~~~~~~
      |                                 _counterMem
SharedMemory.cpp:254:33: error: '_counterKey' was not declared in this scope; did you mean '_counterMem'?
  254 |         _sharedCounterID=shmget(_counterKey, 1, IPC_CREAT | IPC_EXCL | SHM_NORESERVE | 0666);
      |                                 ^~~~~~~~~~~
      |                                 _counterMem
make: *** [Makefile:100: SharedMemory.o] Error 1

could that help to a fix ? > :
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcd5ba73fe296ee35a11a3ee96a62a35afa4ac0a

from star.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.