Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support (Russian)
  3. не собирается _без_ -O2

не собирается _без_ -O2

Scheduled Pinned Locked Moved Support (Russian)
1 Posts 1 Posters 3.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U
    U
    user318
    wrote on last edited by
    #1

    Почему-то у меня под gentoo с параметром CFLAGS/CXXFLAGS=-O2 собирается пакет. А если убрать -O2, то выдаёт такое:

    Making all in netxmsd
    make[4]: Entering directory `/var/tmp/portage/net-analyzer/netxms-1.1.6/work/netxms-1.1.6/src/server/netxmsd'
      CXX    netxmsd.o
    netxmsd.cpp: In function 'BOOL ParseCommandLine(int, char**)':
    netxmsd.cpp:206:29: warning: format not a string literal and no format arguments
    netxmsd.cpp:209:96: warning: use of 'h' length modifier with 's' type character
    netxmsd.cpp:231:84: warning: use of 'h' length modifier with 's' type character
    netxmsd.cpp: In function 'int main(int, char**)':
    netxmsd.cpp:417:77: warning: use of 'h' length modifier with 's' type character
      CXXLD  netxmsd
    ../core/.libs/libnxcore.so: undefined reference to `ServiceContainer::secondsInWeek'
    ../core/.libs/libnxcore.so: undefined reference to `ServiceContainer::secondsInDay'
    collect2: ld returned 1 exit status
    make[4]: *** [netxmsd] Error 1
    make[4]: Leaving directory `/var/tmp/portage/net-analyzer/netxms-1.1.6/work/netxms-1.1.6/src/server/netxmsd'
    

    Сейчас ещё проверил другие варианты:
    -O0 - не собирается (что и следовало ожидать)
    -O1 - собирается
    -Os - собирается
    -O3 - собирается
    Ну т.е. начиная с -O1 собирается.
    Пробовал просто включить флаги оптимизации, указанные в мане для -O1 - не собралось. Видимо -O1 ещё какую-то магию делает.

    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    Powered by NodeBB Contributors
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups