Re: Error running on amd64
"scientica (GMail)" <[email protected]> Sun, 17 Jul 2005 13:56:30 +0200
| Newsgroups | gmane.network.directoryadmin |
|---|---|
| Message-ID | <[email protected]> |
Dries Desmet wrote:
>Just used default ./configure, make and make install
>Don't know if you are familiar with gentoo, but these are my settings for it:
>
>System uname: 2.6.11-gentoo-r11 x86_64 AMD Opteron(tm) Processor 244
>CBUILD="x86_64-pc-linux-gnu"
>CFLAGS="-march=k8 -O2 -pipe"
>CHOST="x86_64-pc-linux-gnu"
>CXXFLAGS="-O2 -pipe"
>MAKEOPTS="-j3"
>
>GCC:
>Thread model: posix
>gcc version 3.4.3 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)
>
>This is the output of configure:
>adam diradmin-1.6.0 # ./configure
>checking for a BSD-compatible install... /usr/bin/install -c
>checking whether build environment is sane... yes
>checking for gawk... gawk
>checking whether make sets $(MAKE)... yes
>checking for gnome-config... /usr/bin/gnome-config
>checking if /usr/bin/gnome-config works... yes
>checking for orbit-config... /usr/bin/orbit-config
>checking for orbit-idl... /usr/bin/orbit-idl
>checking for working ORBit environment... yes
>checking for gnorba libraries... yes
>checking for style of include used by make... GNU
>checking for gcc... gcc
>checking for C compiler default output file name... a.out
>checking whether the C compiler works... yes
>checking whether we are cross compiling... no
>checking for suffix of executables...
>checking for suffix of object files... o
>checking whether we are using the GNU C compiler... yes
>checking whether gcc accepts -g... yes
>checking for gcc option to accept ANSI C... none needed
>checking dependency style of gcc... gcc3
>checking for strerror in -lcposix... no
>checking for gcc... (cached) gcc
>checking whether we are using the GNU C compiler... (cached) yes
>checking whether gcc accepts -g... (cached) yes
>checking for gcc option to accept ANSI C... (cached) none needed
>checking dependency style of gcc... (cached) gcc3
>checking for gcc option to accept ANSI C... none needed
>checking how to run the C preprocessor... gcc -E
>checking for egrep... grep -E
>checking for ANSI C header files... yes
>checking what warning flags to pass to the C compiler... -Wall -Wunused
>checking what language compliance flags to pass to the C compiler...
>checking for sys/types.h... yes
>checking for sys/stat.h... yes
>checking for stdlib.h... yes
>checking for string.h... yes
>checking for memory.h... yes
>checking for strings.h... yes
>checking for inttypes.h... yes
>checking for stdint.h... yes
>checking for unistd.h... yes
>checking for pthread_create in -lpthread... yes
>checking for gtk-config... /usr/bin/gtk-config
>checking for GTK - version >= 1.2.0... yes
>checking for SmcSaveYourselfDone in -lSM... yes
>checking X11/SM/SMlib.h usability... yes
>checking X11/SM/SMlib.h presence... yes
>checking for X11/SM/SMlib.h... yes
>checking for XpmFreeXpmImage in -lXpm... yes
>checking for ldap_start_tls_s in -lldap... yes
>checking for OpenSSL_add_all_digests in -lcrypto... yes
>checking for SSL_new in -lssl... yes
>configure: creating ./config.status
>config.status: creating Makefile
>config.status: creating macros/Makefile
>config.status: creating src/Makefile
>config.status: creating config.h
>config.status: config.h is unchanged
>config.status: executing depfiles commands
>
>The program fires up with the wizard, the test connection option is positive,
>but when I hit the connect button it crashes with gnome segmentation fault.
>
>If you want more debug information, tell me how to get it to you.
>
>DRie.s
>
>
>On Saturday 16 July 2005 21:23, scientica (GMail) wrote:
>
>
>>Dries Desmet wrote:
>>
>>
>>>Hi all,
>>>
>>>Directory administrator 1.6 is crashing on my gentoo amd64 machine.
>>>Did anybody manage to compile it for such a system?
>>>
>>>Any help or directorion appreciated.
>>>
>>>DRie.s
>>>
>>>The error:
>>><code>
>>>adam diradmin-1.6.0 # directory_administrator
>>>
>>>Icon list realized - setting up drag and drop
>>>Intentando conectar interactivamente
>>>Existe solo un perfil de conexion
>>>
>>>called: app_connect with profile name: Manager
>>>
>>>
>>>Se conecto con exito
>>>
>>>called: refresh_directory_data
>>></code>
>>>
>>>
>>yes, I've compiled it (many times) and it runs fine for me. Can you
>>describe the steps to reproduce the crash, from configure (what options
>>you passed etc), make to running it?
>>
>>Regards
>>Fredrik (aka Scientica)
>>
>>
>
>
>
[ot]first of all: gentoo? :P but of course stage 1 even \(^_^)/[/ot]
This is how I've compiled it (ignore the "--enable-debug" (I've been
working on implementing LDAPS (Secure LDAP) support for diradmin, I send
a very beta hack to make it work sometime ago to the dev-mailing list,
I'm soon getting ready to send a more cleaned up patchset (which also
includes adding a '--enable-debug' switch to ./configure (note@self: gnu
automake tools are messy at first sight...) )) -- you might want to
remove the "-std=c99" flag if you get errors during make (I don't
remember if I had to make some changes to get it to compile as ISO C99) ).
----------------------------------
CFLAGS="-march=k8 -std=c99" CPPFLAGS="-march=k8 -std=c99" ./configure
--prefix=/usr --with-gnome-libs --with-gnome-libs --with-gnome
--enable-debug
make -j2
----------------------------------
then I run it with: ./src/directory_administrator
so, in short, these 3 lines should be what should work for you
(excluding the black magic from above):
# CFLAGS="-march=k8" CPPFLAGS="-march=k8" ./configure --prefix=/usr
--with-gnome-libs --with-gnome-libs --with-gnome
# make -j2
# ./src/directory_administrator
I've managed to compile it with various -O options (and other
optimizations), I had one strange "semi-crash" once, it froze before the
GUI was to appear, however I never was able to reproduce it.
If it still crashes, try these 3 lines: (it will enable debug data and
run it with the debugger - you should see the source line where it crashes)
# CFLAGS="-march=k8 -g" CPPFLAGS="-march=k8 -g" ./configure
--prefix=/usr --with-gnome-libs --with-gnome-libs --with-gnome
# make -j2
# ddd src/directory_administrator
If you don't have "ddd" ("The Data Display Debugger") either emerge it
or just use "gdb" instead (I'd recomend emerging ddd, unless you're
better at gdb than me ;) (I don't like gdb really, but I'm afraid
there's nothign better atm...))
I've attached my output of "emerge --info", though, I don't use portage
for directory_administrator (since I'm using a modified version).
Btw, what connection method do you use? LDAP with or without TLS, do you
try to use the unix-socket or LDAPS (LDAPS isn't supported by 1.6.0 -
since it requires a different connection method (I'll leave out the
technical details here - I'll save it for the dev- list ;) )
Cheers
Fredrik
p.s. if you got lost in the text above just ask me to remove the
"irrelevant" part about LDAPS, which I don't think is connected to this
crash (unless that's the method you're using - for myself I'am not using
the (insecure) LDAP but only the LDAPS (Secure LDAP) method for my
OpenLDAP server).
--
After all, if you are in school to study computer science, then a
professor saying:
"use this proprietary software to learn computer science" is the
same as English professor handing you a copy of Shakespeare
and saying:
"use this book to learn Shakespeare without opening the book itself."
-- Bradley Kuhn
info.txt
(text/plain, 3.3 KB)
Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.12-ck3 x86_64) ================================================================= System uname: 2.6.12-ck3 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.12 ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.9 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O3 -ftracer -pipe -ffast-math" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O3 -ftracer -pipe -ffast-math" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv" GENTOO_MIRRORS="ftp://server http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ds.thn.htu.se/linux/gentoo http://ftp.du.se/pub/os/gentoo" LANG="sv_SE.utf8" LC_ALL="sv_SE.utf8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://server/gentoo-portage" USE="amd64 16bit 3ds S3TC X a52 aac aalib acpi acpi4linux alsa apache2 arts artworkextra async audiofile avi bcmath bdf beep berkdb bidi bindist bitmap-fonts blender-game bzlib calendar canna cap caps cdb cdparanoia cdr cdrom chroot cjk cnamefix codecs crypt cscope css ctype cups curl curlwrappers dga dio dnd droproot dts dv dvd dvdr dvdread edl eds emacs emacs-w3 emul-linux-x86 encode erandom escreen ethereal exif f2c faac faad fam fastcgi festival fftw flac flash fmod font-server fortran freetype freewnn ftp gcj gd gdbm gif gimp gimpprint ginac gkrellm glgd glut gnome gpm gps gs gstreamer gtk gtk2 hal iconv icq ieee1394 image imagemagick imlib imlib2 immqt inifile innodb ipv6 jack javascript jbig jikes joystick jp2 jpeg jpeg2k junit kde kdeenablefinal kerberos kig-scripting ladcca lcms ldap leim lesstif libcaca libedit libwww live ltsp lua lynxkeymap lzo lzw lzw-tiff m17n-lib mad mailbox maildir mbox mcal memlimit mikmod milter mime ming mmap mng monkey motif mozcalendar mozctl mozdevelop moznoirc mozp3p mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mplayer msession mule multi-tty mysql mysqli nas native ncurses network nls no-old-linux nocardbus nodrm nptl nptlonly nvidia offensive ogg oggvorbis openal opengl pam pcntl pcre pdflib perl php physfs pic pie png posix povray ppds prelude print private pthreads python qemu-fast qt readline recode rrdtool rtc ruby samba scanner sdl sharedmem skk slang snmp sockets speex spl sqlite ssl stencil-buffer subversion svg sysvipc tcltk tcpd tetex tga threads tidy tiff tokenizer truetype truetype-fonts type1-fonts ucs4 unicode usb userlocales vhosts videos vorbis wmf xanim xemacs xine xml xml2 xmlrpc xmms xosd xpm xprint xrandr xscreensaver xsl xv xvid xvmc yv12 zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS