[Fink-users] Problems compiling linuxdcpp

2008-11-30 Thread Florian Lindner
Hello,

I try to compile linuxdcpp from unstable on 10.5.5 but I get a linker  
error.

Who can help?

Thanks,

Florian


g++ -o linuxdcpp -L/sw/lib/system-openssl/lib -L/usr/lib -Wl,- 
framework,CoreServices -Wl,-framework,ApplicationServices build/client/ 
AdcCommand.o build/client/AdcHub.o build/client/ADLSearch.o build/ 
client/BufferedSocket.o build/client/BZUtils.o build/client/Client.o  
build/client/ClientManager.o build/client/ConnectionManager.o build/ 
client/CryptoManager.o build/client/DCPlusPlus.o build/client/ 
DirectoryListing.o build/client/DownloadManager.o build/client/ 
Encoder.o build/client/Exception.o build/client/FavoriteManager.o  
build/client/File.o build/client/FinishedManager.o build/client/ 
HashManager.o build/client/HttpConnection.o build/client/LogManager.o  
build/client/NmdcHub.o build/client/QueueManager.o build/client/ 
ResourceManager.o build/client/SearchManager.o build/client/ 
ServerSocket.o build/client/SettingsManager.o build/client/SFVReader.o  
build/client/ShareManager.o build/client/SimpleXML.o build/client/ 
Socket.o build/client/SSLSocket.o build/client/stdinc.o build/client/ 
StringDefs.o build/client/StringTokenizer.o build/client/Text.o build/ 
client/Thread.o build/client/TigerHash.o build/client/TimerManager.o  
build/client/UploadManager.o build/client/User.o build/client/ 
UserConnection.o build/client/Util.o build/client/ZUtils.o build/gui/ 
bookentry.o build/gui/dialogentry.o build/gui/downloadqueue.o build/ 
gui/eggtrayicon.o build/gui/entry.o build/gui/favoritehubs.o build/gui/ 
finishedtransfers.o build/gui/hashdialog.o build/gui/hub.o build/gui/ 
mainwindow.o build/gui/privatemessage.o build/gui/publichubs.o build/ 
gui/search.o build/gui/settingsdialog.o build/gui/settingsmanager.o  
build/gui/sharebrowser.o build/gui/treeview.o build/gui/ 
UserCommandMenu.o build/gui/wulfor.o build/gui/wulformanager.o build/ 
gui/WulforUtil.o -L/sw/lib/pango-ft219/lib -L/sw/lib/freetype219/lib - 
L/sw/lib -L/usr/X11/lib -lpthread -lbz2 -lcrypto -lssl -liconv - 
lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 - 
lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 - 
lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 - 
lglib-2.0 -lintl
Undefined symbols:
   _XFlush, referenced from:
   _egg_tray_icon_update_manager_window in eggtrayicon.o
   _XGetSelectionOwner, referenced from:
   _egg_tray_icon_update_manager_window in eggtrayicon.o
   _XInternAtom, referenced from:
   _egg_tray_icon_realize in eggtrayicon.o
   _egg_tray_icon_realize in eggtrayicon.o
   _egg_tray_icon_realize in eggtrayicon.o
   _egg_tray_icon_realize in eggtrayicon.o
   _egg_tray_icon_send_message in eggtrayicon.o
   _XGrabServer, referenced from:
   _egg_tray_icon_update_manager_window in eggtrayicon.o
   _XFree, referenced from:
   _egg_tray_icon_get_orientation_property in eggtrayicon.o
   _XSync, referenced from:
   _egg_tray_icon_send_manager_message in eggtrayicon.o
   _egg_tray_icon_send_message in eggtrayicon.o
   _XSelectInput, referenced from:
   _egg_tray_icon_update_manager_window in eggtrayicon.o
   _XGetWindowProperty, referenced from:
   _egg_tray_icon_get_orientation_property in eggtrayicon.o
   _XUngrabServer, referenced from:
   _egg_tray_icon_update_manager_window in eggtrayicon.o
   _XSendEvent, referenced from:
   _egg_tray_icon_send_manager_message in eggtrayicon.o
   _egg_tray_icon_send_message in eggtrayicon.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
scons: *** [linuxdcpp] Error 1
scons: building terminated because of errors.
### execution of /var/tmp/tmp.2.0muxPH failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-linuxdcpp-1.0.2-2
(Lese Datenbank ... 49647 Dateien und Verzeichnisse sind derzeit  
installiert.)
Entferne fink-buildlock-linuxdcpp-1.0.2-2 ...
Failed: phase compiling: linuxdcpp-1.0.2-2 failed


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Problems compiling linuxdcpp

2008-11-30 Thread Martin Costabel
Florian Lindner wrote:
 Hello,
 
 I try to compile linuxdcpp from unstable on 10.5.5 but I get a linker  
 error.
 
 Who can help?

I'd like to, but I get a much weirder error earlier on. After the 
configure phase, the first compiler line appears:

scons: Building targets ...
g++ -o build/client/AdcCommand.o -c -I. -D_GNU_SOURCE 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT - D _ D A T A D 
I R = '  / s w / s h a r e  ' client/AdcCommand.cpp

Upon which the build hangs, nothing more happens, until I hit Ctrl-C.

I guess the compiler doesn't like the spaced-out flag and waits for some 
more input. Maybe this scons thing does not work with python26; I'll 
test further.

-- 
Martin


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Problems compiling linuxdcpp

2008-11-30 Thread Martin Costabel
Martin Costabel wrote:
[]
 more input. Maybe this scons thing does not work with python26; I'll 
 test further.

This is now confirmed. The scons system has in 
/sw/lib/scons-1.0.1/SCons/Environment.py a horribly complicated Append() 
function for constructing compiler flags, and this does not work with 
python-2.6. Thus the package needs a

BuildConflicts: python

fink remove python let the build proceed until it crashed with the

 Undefined symbols:
_XFlush

error. This one is caused by the recent removal of x11 dependencies from 
the gdk-x11-2.0.pc script in the new version of gtk+2-dev. Other 
packages have been hit by this, but they used configure scripts, not 
scons. I don't know any scons (nor do I want to learn it), but it seems 
to me that replacing the line

 env.ParseConfig('pkg-config --libs libglade-2.0')

in SConstruct by

 env.ParseConfig('pkg-config --libs libglade-2.0 fontconfig x11 
xext xrender xinerama xrandr xcursor xfixes xcomposite xdamage')

will fix this bug. A patchscript line that does this would be

perl -pi -e 's|libs libglade-2.0|$ fontconfig x11 xext xrender xinerama 
xrandr xcursor xfixes xcomposite xdamage|' SConstruct

-- 
Martin









-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Problems compiling linuxdcpp

2008-11-30 Thread Hanspeter Niederstrasser
Martin Costabel wrote:
 Florian Lindner wrote:
 Hello,

 I try to compile linuxdcpp from unstable on 10.5.5 but I get a linker  
 error.

 Who can help?
  Undefined symbols:
 _XFlush, referenced from:
 _egg_tray_icon_update_manager_window in eggtrayicon.o

This is easy.  There's an -lX11 missing from the linker line.  I've 
fixed it in my local tree by adding it to SetLDFLAGS, but I'm trying to 
find the proper place to add it in the scons build system (it currently 
is affecting some of the configure tests).

 I'd like to, but I get a much weirder error earlier on. After the 
 configure phase, the first compiler line appears:
 
 scons: Building targets ...
 g++ -o build/client/AdcCommand.o -c -I. -D_GNU_SOURCE 
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT - D _ D A T A D 
 I R = '  / s w / s h a r e  ' client/AdcCommand.cpp
 
 Upon which the build hangs, nothing more happens, until I hit Ctrl-C.
 
 I guess the compiler doesn't like the spaced-out flag and waits for some 
 more input. Maybe this scons thing does not work with python26; I'll 
 test further.

I get

i686-apple-darwin9-g++-4.0.1: D: No such file or directory
i686-apple-darwin9-g++-4.0.1: _: No such file or directory
i686-apple-darwin9-g++-4.0.1: D: No such file or directory
... some more ...
build fail

with python=1:2.6-2.  python=1:2.5.2-1 doesn't cause conflicts.  I've 
added a BuildConflicts for now as well.

Hanspeter
-- 
Hanspeter Niederstrasser
hanspeter at snaggledworks.com

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Problems compiling linuxdcpp

2008-11-30 Thread Hanspeter Niederstrasser
Florian Lindner wrote:
 Hello,
 
 I try to compile linuxdcpp from unstable on 10.5.5 but I get a linker  
 error.

I've committed a fix for this.  Look for revision -4 after doing a 
selfupdate.

Hanspeter

-- 
Hanspeter Niederstrasser
hanspeter at snaggledworks.com

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Problems compiling linuxdcpp

2008-11-30 Thread Daniel E. Macks
Martin Costabel [EMAIL PROTECTED] said:
 Martin Costabel wrote:
 []
 more input. Maybe this scons thing does not work with python26; I'll 
 test further.

 This is now confirmed. The scons system has in 
 /sw/lib/scons-1.0.1/SCons/Environment.py a horribly complicated Append() 
 function for constructing compiler flags, and this does not work with 
 python-2.6. Thus the package needs a

 BuildConflicts: python

 fink remove python let the build proceed until it crashed with the

Sounds like problem is with scons (and likely to plague other packages
that use it). Could you check if patching first line of /sw/bin/scons:

-#! /usr/bin/env python
+#!/usr/bin/python

allows this thing to build with python (= 1:2.6) installed?

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Problems compiling linuxdcpp

2008-11-30 Thread Martin Costabel
Daniel E. Macks wrote:
 Martin Costabel [EMAIL PROTECTED] said:
 Martin Costabel wrote:
 []
 more input. Maybe this scons thing does not work with python26; I'll 
 test further.
 This is now confirmed. The scons system has in 
 /sw/lib/scons-1.0.1/SCons/Environment.py a horribly complicated Append() 
 function for constructing compiler flags, and this does not work with 
 python-2.6. Thus the package needs a

 BuildConflicts: python

 fink remove python let the build proceed until it crashed with the
 
 Sounds like problem is with scons (and likely to plague other packages
 that use it). Could you check if patching first line of /sw/bin/scons:
 
 -#! /usr/bin/env python
 +#!/usr/bin/python
 
 allows this thing to build with python (= 1:2.6) installed?

Works for me, yes.

-- 
Martin


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users