Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build on Mac OS X 10.9 from command line #44

Closed
bunam opened this issue Jul 31, 2014 · 2 comments
Closed

Build on Mac OS X 10.9 from command line #44

bunam opened this issue Jul 31, 2014 · 2 comments

Comments

@bunam
Copy link

bunam commented Jul 31, 2014

Qt is installed on
/Users/Shared/Qt

corei7:cool-old-term ebt$ export PATH=/Users/Shared/Qt/5.3/clang_64/bin:$PATH
corei7:konsole-qml-plugin ebt$ qmake && make && make install
corei7:konsole-qml-plugin ebt$ qmake && make && make install
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DHAVE_POSIX_OPENPT -DHAVE_SYS_TIME_H -DHAVE_UPDWTMPX -DQ_WS_UBUNTU -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/Users/Shared/Qt/5.3/clang_64/mkspecs/macx-clang -I. -I/Users/Shared/Qt/5.3/clang_64/lib/QtQuick.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtQml.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtNetwork.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtGui.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtCore.framework/Versions/5/Headers -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers -F/Users/Shared/Qt/5.3/clang_64/lib -o .obj/kpty.o src/kpty.cpp
In file included from src/kpty.cpp:25:
In file included from src/kpty_p.h:26:
src/kpty.h:36:5: warning: class 'KPtyPrivate' was previously declared as a struct [-Wmismatched-tags]
Q_DECLARE_PRIVATE(KPty)
^
/Users/Shared/Qt/5.3/clang_64/lib/QtCore.framework/Headers/qglobal.h:946:12: note: expanded from macro 'Q_DECLARE_PRIVATE'
friend class Class##Private;
^
src/kpty.h:28:8: note: previous use is here
struct KPtyPrivate;
^
src/kpty.cpp:500:12: warning: 'utmp' is deprecated [-Wdeprecated-declarations]
struct utmp l_struct;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/utmp.h:96:8: note: 'utmp' declared here
struct utmp {
^
src/kpty.cpp:561:5: error: use of undeclared identifier 'utmpname'; did you mean 'tmpnam'?
utmpname(_PATH_UTMP);
^~~~~~~~
tmpnam
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/stdio.h:280:7: note: 'tmpnam' declared here
char *tmpnam(char *);
^
src/kpty.cpp:561:14: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings]
utmpname(_PATH_UTMP);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/utmp.h:82:20: note: expanded from macro '_PATH_UTMP'

define _PATH_UTMP "/var/run/utmp"

                    ^

src/kpty.cpp:562:5: error: use of undeclared identifier 'setutent'; did you mean 'setgrent'?
setutent();
^~~~~~~~
setgrent
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/grp.h:84:6: note: 'setgrent' declared here
void setgrent(void);
^
src/kpty.cpp:563:5: error: use of undeclared identifier 'pututline'
pututline(&l_struct);
^
src/kpty.cpp:564:5: error: use of undeclared identifier 'endutent'; did you mean 'endgrent'?
endutent();
^~~~~~~~
endgrent
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/grp.h:85:6: note: 'endgrent' declared here
void endgrent(void);
^
src/kpty.cpp:565:5: error: use of undeclared identifier 'updwtmp'
updwtmp(_PATH_WTMP, &l_struct);
^
src/kpty.cpp:602:12: warning: 'utmp' is deprecated [-Wdeprecated-declarations]
struct utmp l_struct, *ut;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/utmp.h:96:8: note: 'utmp' declared here
struct utmp {
^
src/kpty.cpp:602:12: warning: 'utmp' is deprecated [-Wdeprecated-declarations]
struct utmp l_struct, *ut;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/utmp.h:96:8: note: 'utmp' declared here
struct utmp {
^
src/kpty.cpp:613:5: error: use of undeclared identifier 'utmpname'; did you mean 'tmpnam'?
utmpname(_PATH_UTMP);
^~~~~~~~
tmpnam
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/stdio.h:280:7: note: 'tmpnam' declared here
char *tmpnam(char *);
^
src/kpty.cpp:613:14: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings]
utmpname(_PATH_UTMP);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/utmp.h:82:20: note: expanded from macro '_PATH_UTMP'

define _PATH_UTMP "/var/run/utmp"

                    ^

src/kpty.cpp:614:5: error: use of undeclared identifier 'setutent'; did you mean 'setgrent'?
setutent();
^~~~~~~~
setgrent
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/grp.h:84:6: note: 'setgrent' declared here
void setgrent(void);
^
src/kpty.cpp:615:15: error: use of undeclared identifier 'getutline'
if ((ut = getutline(&l_struct))) {
^
src/kpty.cpp:632:5: error: use of undeclared identifier 'pututline'
pututline(ut);
^
src/kpty.cpp:634:1: error: use of undeclared identifier 'endutent'; did you mean 'endgrent'?
endutent();
^~~~~~~~
endgrent
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/grp.h:85:6: note: 'endgrent' declared here
void endgrent(void);
^
6 warnings and 10 errors generated.
make: *** [.obj/kpty.o] Error 1
corei7:konsole-qml-plugin ebt$ cd pwd
corei7:konsole-qml-plugin ebt$ qmake && make && make install
Info: creating stash file /Volumes/DATA/Projets/cool-old-term/konsole-qml-plugin/.qmake.stash
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DHAVE_POSIX_OPENPT -DHAVE_SYS_TIME_H -DHAVE_UPDWTMPX -DQ_WS_UBUNTU -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/Users/Shared/Qt/5.3/clang_64/mkspecs/macx-clang -I. -I/Users/Shared/Qt/5.3/clang_64/lib/QtQuick.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtQml.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtNetwork.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtGui.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtCore.framework/Versions/5/Headers -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers -F/Users/Shared/Qt/5.3/clang_64/lib -o .obj/plugin.o src/plugin.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DHAVE_POSIX_OPENPT -DHAVE_SYS_TIME_H -DHAVE_UPDWTMPX -DQ_WS_UBUNTU -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/Users/Shared/Qt/5.3/clang_64/mkspecs/macx-clang -I. -I/Users/Shared/Qt/5.3/clang_64/lib/QtQuick.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtQml.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtNetwork.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtGui.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtCore.framework/Versions/5/Headers -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers -F/Users/Shared/Qt/5.3/clang_64/lib -o .obj/Pty.o src/Pty.cpp
In file included from src/Pty.cpp:30:
In file included from src/Pty.h:41:
In file included from src/kptyprocess.h:34:
In file included from src/kptydevice.h:32:
In file included from src/kpty_p.h:26:
src/kpty.h:36:5: warning: class 'KPtyPrivate' was previously declared as a struct [-Wmismatched-tags]
Q_DECLARE_PRIVATE(KPty)
^
/Users/Shared/Qt/5.3/clang_64/lib/QtCore.framework/Headers/qglobal.h:946:12: note: expanded from macro 'Q_DECLARE_PRIVATE'
friend class Class##Private;
^
src/kpty.h:28:8: note: previous use is here
struct KPtyPrivate;
^
In file included from src/Pty.cpp:30:
In file included from src/Pty.h:41:
In file included from src/kptyprocess.h:34:
src/kptydevice.h:50:5: warning: class 'KPtyDevicePrivate' was previously declared as a struct [-Wmismatched-tags]
Q_DECLARE_PRIVATE_MI(KPtyDevice, KPty)
^
src/kptydevice.h:43:12: note: expanded from macro 'Q_DECLARE_PRIVATE_MI'
friend class Class##Private;
^
src/kptydevice.h:38:8: note: previous use is here
struct KPtyDevicePrivate;
^
In file included from src/Pty.cpp:30:
In file included from src/Pty.h:41:
src/kptyprocess.h:60:5: warning: class 'KPtyProcessPrivate' was previously declared as a struct [-Wmismatched-tags]
Q_DECLARE_PRIVATE(KPtyProcess)
^
/Users/Shared/Qt/5.3/clang_64/lib/QtCore.framework/Headers/qglobal.h:946:12: note: expanded from macro 'Q_DECLARE_PRIVATE'
friend class Class##Private;
^
src/kptyprocess.h:40:8: note: previous use is here
struct KPtyProcessPrivate;
^
3 warnings generated.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DHAVE_POSIX_OPENPT -DHAVE_SYS_TIME_H -DHAVE_UPDWTMPX -DQ_WS_UBUNTU -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/Users/Shared/Qt/5.3/clang_64/mkspecs/macx-clang -I. -I/Users/Shared/Qt/5.3/clang_64/lib/QtQuick.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtQml.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtNetwork.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtGui.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtCore.framework/Versions/5/Headers -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers -F/Users/Shared/Qt/5.3/clang_64/lib -o .obj/kptyprocess.o src/kptyprocess.cpp
In file included from src/kptyprocess.cpp:31:
In file included from src/kptyprocess.h:34:
In file included from src/kptydevice.h:32:
In file included from src/kpty_p.h:26:
src/kpty.h:36:5: warning: class 'KPtyPrivate' was previously declared as a struct [-Wmismatched-tags]
Q_DECLARE_PRIVATE(KPty)
^
/Users/Shared/Qt/5.3/clang_64/lib/QtCore.framework/Headers/qglobal.h:946:12: note: expanded from macro 'Q_DECLARE_PRIVATE'
friend class Class##Private;
^
src/kpty.h:28:8: note: previous use is here
struct KPtyPrivate;
^
In file included from src/kptyprocess.cpp:31:
In file included from src/kptyprocess.h:34:
src/kptydevice.h:50:5: warning: class 'KPtyDevicePrivate' was previously declared as a struct [-Wmismatched-tags]
Q_DECLARE_PRIVATE_MI(KPtyDevice, KPty)
^
src/kptydevice.h:43:12: note: expanded from macro 'Q_DECLARE_PRIVATE_MI'
friend class Class##Private;
^
src/kptydevice.h:38:8: note: previous use is here
struct KPtyDevicePrivate;
^
In file included from src/kptyprocess.cpp:31:
src/kptyprocess.h:60:5: warning: class 'KPtyProcessPrivate' was previously declared as a struct [-Wmismatched-tags]
Q_DECLARE_PRIVATE(KPtyProcess)
^
/Users/Shared/Qt/5.3/clang_64/lib/QtCore.framework/Headers/qglobal.h:946:12: note: expanded from macro 'Q_DECLARE_PRIVATE'
friend class Class##Private;
^
src/kptyprocess.h:40:8: note: previous use is here
struct KPtyProcessPrivate;
^
3 warnings generated.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DHAVE_POSIX_OPENPT -DHAVE_SYS_TIME_H -DHAVE_UPDWTMPX -DQ_WS_UBUNTU -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/Users/Shared/Qt/5.3/clang_64/mkspecs/macx-clang -I. -I/Users/Shared/Qt/5.3/clang_64/lib/QtQuick.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtQml.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtNetwork.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtGui.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtCore.framework/Versions/5/Headers -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers -F/Users/Shared/Qt/5.3/clang_64/lib -o .obj/kptydevice.o src/kptydevice.cpp
In file included from src/kptydevice.cpp:32:
In file included from src/kptydevice.h:32:
In file included from src/kpty_p.h:26:
src/kpty.h:36:5: warning: class 'KPtyPrivate' was previously declared as a struct [-Wmismatched-tags]
Q_DECLARE_PRIVATE(KPty)
^
/Users/Shared/Qt/5.3/clang_64/lib/QtCore.framework/Headers/qglobal.h:946:12: note: expanded from macro 'Q_DECLARE_PRIVATE'
friend class Class##Private;
^
src/kpty.h:28:8: note: previous use is here
struct KPtyPrivate;
^
In file included from src/kptydevice.cpp:32:
src/kptydevice.h:50:5: warning: class 'KPtyDevicePrivate' was previously declared as a struct [-Wmismatched-tags]
Q_DECLARE_PRIVATE_MI(KPtyDevice, KPty)
^
src/kptydevice.h:43:12: note: expanded from macro 'Q_DECLARE_PRIVATE_MI'
friend class Class##Private;
^
src/kptydevice.h:38:8: note: previous use is here
struct KPtyDevicePrivate;
^
2 warnings generated.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DHAVE_POSIX_OPENPT -DHAVE_SYS_TIME_H -DHAVE_UPDWTMPX -DQ_WS_UBUNTU -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/Users/Shared/Qt/5.3/clang_64/mkspecs/macx-clang -I. -I/Users/Shared/Qt/5.3/clang_64/lib/QtQuick.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtQml.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtNetwork.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtGui.framework/Versions/5/Headers -I/Users/Shared/Qt/5.3/clang_64/lib/QtCore.framework/Versions/5/Headers -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers -F/Users/Shared/Qt/5.3/clang_64/lib -o .obj/kpty.o src/kpty.cpp
In file included from src/kpty.cpp:25:
In file included from src/kpty_p.h:26:
src/kpty.h:36:5: warning: class 'KPtyPrivate' was previously declared as a struct [-Wmismatched-tags]
Q_DECLARE_PRIVATE(KPty)
^
/Users/Shared/Qt/5.3/clang_64/lib/QtCore.framework/Headers/qglobal.h:946:12: note: expanded from macro 'Q_DECLARE_PRIVATE'
friend class Class##Private;
^
src/kpty.h:28:8: note: previous use is here
struct KPtyPrivate;
^
src/kpty.cpp:500:12: warning: 'utmp' is deprecated [-Wdeprecated-declarations]
struct utmp l_struct;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/utmp.h:96:8: note: 'utmp' declared here
struct utmp {
^
src/kpty.cpp:561:5: error: use of undeclared identifier 'utmpname'; did you mean 'tmpnam'?
utmpname(_PATH_UTMP);
^~~~~~~~
tmpnam
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/stdio.h:280:7: note: 'tmpnam' declared here
char *tmpnam(char *);
^
src/kpty.cpp:561:14: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings]
utmpname(_PATH_UTMP);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/utmp.h:82:20: note: expanded from macro '_PATH_UTMP'

define _PATH_UTMP "/var/run/utmp"

                    ^

src/kpty.cpp:562:5: error: use of undeclared identifier 'setutent'; did you mean 'setgrent'?
setutent();
^~~~~~~~
setgrent
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/grp.h:84:6: note: 'setgrent' declared here
void setgrent(void);
^
src/kpty.cpp:563:5: error: use of undeclared identifier 'pututline'
pututline(&l_struct);
^
src/kpty.cpp:564:5: error: use of undeclared identifier 'endutent'; did you mean 'endgrent'?
endutent();
^~~~~~~~
endgrent
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/grp.h:85:6: note: 'endgrent' declared here
void endgrent(void);
^
src/kpty.cpp:565:5: error: use of undeclared identifier 'updwtmp'
updwtmp(_PATH_WTMP, &l_struct);
^
src/kpty.cpp:602:12: warning: 'utmp' is deprecated [-Wdeprecated-declarations]
struct utmp l_struct, *ut;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/utmp.h:96:8: note: 'utmp' declared here
struct utmp {
^
src/kpty.cpp:602:12: warning: 'utmp' is deprecated [-Wdeprecated-declarations]
struct utmp l_struct, *ut;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/utmp.h:96:8: note: 'utmp' declared here
struct utmp {
^
src/kpty.cpp:613:5: error: use of undeclared identifier 'utmpname'; did you mean 'tmpnam'?
utmpname(_PATH_UTMP);
^~~~~~~~
tmpnam
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/stdio.h:280:7: note: 'tmpnam' declared here
char *tmpnam(char *);
^
src/kpty.cpp:613:14: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings]
utmpname(_PATH_UTMP);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/utmp.h:82:20: note: expanded from macro '_PATH_UTMP'

define _PATH_UTMP "/var/run/utmp"

                    ^

src/kpty.cpp:614:5: error: use of undeclared identifier 'setutent'; did you mean 'setgrent'?
setutent();
^~~~~~~~
setgrent
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/grp.h:84:6: note: 'setgrent' declared here
void setgrent(void);
^
src/kpty.cpp:615:15: error: use of undeclared identifier 'getutline'
if ((ut = getutline(&l_struct))) {
^
src/kpty.cpp:632:5: error: use of undeclared identifier 'pututline'
pututline(ut);
^
src/kpty.cpp:634:1: error: use of undeclared identifier 'endutent'; did you mean 'endgrent'?
endutent();
^~~~~~~~
endgrent
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/grp.h:85:6: note: 'endgrent' declared here
void endgrent(void);
^
6 warnings and 10 errors generated.
make: *** [.obj/kpty.o] Error 1

if someone have any clue ;)

thank's

@viccuad
Copy link

viccuad commented Jul 31, 2014

As said in issue #12 :

One of the problems is that setutent() is not supported on BSD platforms, such as OS X. So one must manually open _PATH_UTMP etc. instead of using setutent(), if I don't recall wrong.

For fixing it, as said in issue #12 :

Look at the getutent()/setutent() routines in this file for example: http://ftp.ics.uci.edu/pub/centos0/ics-custom-build/BUILD/rsyslog-3.19.8/tools/omusrmsg.c

In the current state in needs work to have it on MacOSX.

@Swordfish90
Copy link
Owner

I'm closing this since is a duplicate of #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants