Bug 68485 - KDesktop compile breaks on Solaris when compiling lock module - AF_LOCAL not defined
Summary: KDesktop compile breaks on Solaris when compiling lock module - AF_LOCAL not ...
Status: CLOSED WORKSFORME
Alias: None
Product: kdesktop
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-18 09:26 UTC by Olivier Palliere
Modified: 2009-01-02 20:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Palliere 2003-11-18 09:26:19 UTC
Version:           031113 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.3.1 
OS:          Solaris

When trying to compile KDEbase-031113 from sources, I Get the following error when building the lock module of the kdesktop application:

if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../kcheckpass -I../../kdm/kfrontend -I/opt/kdeb/include -I/usr/gnucal/qt/include    -DQT_THREAD_SUPPORT  -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -O2 -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE  -MT lockdlg.o -MD -MP -MF ".deps/lockdlg.Tpo" \
  -c -o lockdlg.o `test -f 'lockdlg.cc' || echo './'`lockdlg.cc; \
then mv -f ".deps/lockdlg.Tpo" ".deps/lockdlg.Po"; \
else rm -f ".deps/lockdlg.Tpo"; exit 1; \
fi
lockdlg.cc: In member function `virtual void PasswordDlg::gplugStart()':
lockdlg.cc:429: error: `AF_LOCAL' undeclared (first use this function)
lockdlg.cc:429: error: (Each undeclared identifier is reported only once for 
   each function it appears in.)
make: *** [lockdlg.o] Error 1


This is due to Solaris not defining the AF_LOCAL type socket. IT is called AF_UNIX. Adding this bit to the lockdlg.cc source file's definition part fixes the problem:

#ifndef AF_LOCAL
#define AF_LOCAL AF_UNIX
#endif

Hope this helps.
Comment 1 Olivier Palliere 2003-11-18 09:27:11 UTC
As I gave the resolution in the bug description, I'll mark the bug as resolved!
Comment 2 David Faure 2003-11-18 09:44:37 UTC
Subject: Re:  KDesktop compile breaks on Solaris when compiling lock module - AF_LOCAL not defined

> As I gave the resolution in the bug description, I'll mark the bug as resolved!
You shouldn't do that - it's resolved once the fix is in CVS :)
If you close the bug before we look at it, we might miss it.

Anyway this is a duplicate of 68258, and it was fixed 3 days ago in CVS.

Comment 3 FiNeX 2009-01-02 20:26:03 UTC
Bug closed. Kdesktop is no more mantained.