[haiku-bugs] Re: [Haiku] #2593: Solaris does not define __progname

  • From: "andreasf" <trac@xxxxxxxxxxxx>
  • Date: Sun, 09 May 2010 18:13:54 -0000

#2593: Solaris does not define __progname
---------------------------+------------------------------------------------
  Reporter:  andreasf      |       Owner:  bonefish      
      Type:  enhancement   |      Status:  reopened      
  Priority:  normal        |   Milestone:  R1            
 Component:  Build System  |     Version:  R1/Development
Resolution:                |    Keywords:                
 Blockedby:                |    Platform:  All           
  Blocking:                |  
---------------------------+------------------------------------------------
Changes (by andreasf):

  * status:  closed => reopened
  * version:  R1/pre-alpha1 => R1/Development
  * resolution:  fixed =>


Comment:

 This issue has reappeared in `addattr` at r36782:
 {{{
 MkDir1 /export/home/andreas/Haiku/haiku/generated-
 ppc/objects/sunos/x86/release/tools/addattr
 C++ /export/home/andreas/Haiku/haiku/generated-
 ppc/objects/sunos/x86/release/tools/addattr/main.o
 /export/home/andreas/Haiku/haiku/src/bin/addattr/main.cpp:22:1: warning:
 "ERR" redefined
 In file included from /usr/include/sys/ucontext.h:39,
                  from /usr/include/sys/signal.h:258,
                  from /usr/include/sys/procset.h:42,
                  from /usr/include/sys/wait.h:43,
                  from /usr/include/stdlib.h:39,
                  from
 /export/home/andreas/Haiku/haiku/src/bin/addattr/main.cpp:12:
 /usr/include/sys/regset.h:105:1: warning: this is the location of the
 previous definition
 C++ /export/home/andreas/Haiku/haiku/generated-
 ppc/objects/sunos/x86/release/tools/addattr/addAttr.o
 Link /export/home/andreas/Haiku/haiku/generated-
 ppc/objects/sunos/x86/release/tools/addattr/addattr
 Undefiniertes                   erstmals referenziert
  Symbol                             in Datei
 __progname                          /export/home/andreas/Haiku/haiku
 /generated-ppc/objects/sunos/x86/release/tools/addattr/main.o
 ld: Schwerer Fehler: symbol referencing errors. No output written to
 /export/home/andreas/Haiku/haiku/generated-
 ppc/objects/sunos/x86/release/tools/addattr/addattr
 collect2: ld returned 1 exit status

 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/export/home/andreas/Haiku/haiku
 /generated-ppc/objects/sunos/lib ;
 /export/home/andreas/Haiku/haiku/build/scripts/rm_attrs
 /export/home/andreas/Haiku/haiku/generated-
 ppc/objects/sunos/x86/release/tools/rm_attrs -f
 "/export/home/andreas/Haiku/haiku/generated-
 ppc/objects/sunos/x86/release/tools/addattr/addattr"
 cc  -o "/export/home/andreas/Haiku/haiku/generated-
 ppc/objects/sunos/x86/release/tools/addattr/addattr"
 "/export/home/andreas/Haiku/haiku/generated-
 ppc/objects/sunos/x86/release/tools/addattr/main.o"
 "/export/home/andreas/Haiku/haiku/generated-
 ppc/objects/sunos/x86/release/tools/addattr/addAttr.o" \
 "/export/home/andreas/Haiku/haiku/generated-
 ppc/objects/sunos/lib/libroot_build.so" "/export/home/andreas/Haiku/haiku
 /generated-ppc/objects/sunos/lib/libbe_build.so" -lstdc++ -lsupc++  \


 ...failed Link /export/home/andreas/Haiku/haiku/generated-
 ppc/objects/sunos/x86/release/tools/addattr/addattr ...
 }}}
 Unfortunately the ticket doesn't mention how it was worked around
 previously...

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/2593#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: