trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: April 2012

Re: [trinity-devel] basket notepad failure (oh no!) - 'getuid' was not declared in this scope ??

From: /dev/ammo42 <mickeytintincolle@...>
Date: Tue, 10 Apr 2012 20:27:30 +0200
On Tue, 10 Apr 2012 13:11:20 -0500
"David C. Rankin" <drankinatty@...> wrote:

> All,
>
From 'man getuid': 
#include <unistd.h>
#include <sys/types.h>
>   This is my goto app that was building fine, now I get a "'getuid'
> was not declared in this scope" error? What is that? Full error:
> 
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I/opt/trinity/include
> -I/opt/tqt3/include -I. -include tqt.h -DQT_THREAD_SUPPORT
> -D_REENTRANT -D_LARGE_FILES=1 -Wno-long-long -Wundef -ansi
> -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts
> -Wall -W -Wpointer-arith -O2 -march=x86-64 -mtune=generic -O2 -pipe
> -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
> -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor
> -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt -MT
> password.lo -MD -MP -MF .deps/password.Tpo -c password.cpp  -fPIC
> -DPIC -o .libs/password.o kicondialog.cpp: In member function 'const
> TQString& KIconButton::customLocation() const':
> kicondialog.cpp:509:61: warning: returning reference to temporary
> [enabled by default]
> likeback.cpp: In member function 'void LikeBack::fetchUserEmail()':
> likeback.cpp:618:23: error: 'getuid' was not declared in this scope
> mv -f .deps/kiconcanvas.Tpo .deps/kiconcanvas.Plo
> /bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
> -I.. -I/opt/trinity/include -I/opt/tqt3/include -I. -include tqt.h
> -DQT_THREAD_SUPPORT  -D_REENTRANT -D_LARGE_FILES=1  -Wno-long-long
> -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
> -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -march=x86-64
> -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4
> -D_FORTIFY_SOURCE=2 -Wformat-security -Wmissing-format-attribute
> -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common
> -I/usr/include/tqt  -MT colorpicker.lo -MD -MP
> -MF .deps/colorpicker.Tpo -c -o colorpicker.lo colorpicker.cpp
> make[2]: *** [likeback.lo] Error 1 make[2]: *** Waiting for
> unfinished jobs.... libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I..
> -I/opt/trinity/include -I/opt/tqt3/include -I. -include tqt.h
> -DQT_THREAD_SUPPORT -D_REENTRANT -D_LARGE_FILES=1 -Wno-long-long
> -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
> -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -march=x86-64
> -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4
> -D_FORTIFY_SOURCE=2 -Wformat-security -Wmissing-format-attribute
> -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common
> -I/usr/include/tqt -MT colorpicker.lo -MD -MP
> -MF .deps/colorpicker.Tpo -c colorpicker.cpp  -fPIC -DPIC
> -o .libs/colorpicker.o mv
> -f .deps/kicondialog.Tpo .deps/kicondialog.Plo mv
> -f .deps/password.Tpo .deps/password.Plo mv
> -f .deps/colorpicker.Tpo .deps/colorpicker.Plo make[2]: Leaving
> directory `/build/src/basket/src' make[1]: *** [all-recursive] Error
> 1 make[1]: Leaving directory `/build/src/basket' make: *** [all]
> Error 2 ==> ERROR: A failure occurred in build().
>