Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2009-01-06 02:07:49

  menteith - Użytkownik

menteith
Użytkownik
Zarejestrowany: 2008-03-31

Problem z kompilacja cdemu-daemon

Witam,
Udalo mi sie skompilowac i  zainstalowac wszystkie moduly niezbedne do cdemu: vhba-module-1.1.0 oraz libmirage-1.1.1. Ale przy próbie kompilacji samego cdemu-daemon dostaje cos takiego:

Kod:

michal@hapek:~/Desktop/cdemu-daemon-1.1.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 whether to enable maintainer-specific portions of Makefiles... no
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 ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for glib... yes
checking for gobject... yes
checking for gmodule... yes
checking for gthread... yes
checking for dbus... yes
checking for libao... yes
checking for libdaemon... yes
checking for libmirage... yes
checking for sysfs_open_device in -lsysfs... yes
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 sysfs/libsysfs.h usability... yes
checking sysfs/libsysfs.h presence... yes
checking for sysfs/libsysfs.h... yes
checking for more warnings... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating man/Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

cdemu-daemon 1.1.0 configure summary:

 Prefix:                    /usr/local
 dbus-1 system.d dir:       ${prefix}/etc/dbus-1/system.d
 C Compiler:                gcc -std=gnu99
 CFLAGS:                    -g -O2

michal@hapek:~/Desktop/cdemu-daemon-1.1.0$ sudo make && echo done
make  all-recursive
make[1]: Wejście do katalogu `/home/michal/Desktop/cdemu-daemon-1.1.0'
Making all in src
make[2]: Wejście do katalogu `/home/michal/Desktop/cdemu-daemon-1.1.0/src'
make  all-am
make[3]: Wejście do katalogu `/home/michal/Desktop/cdemu-daemon-1.1.0/src'
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -D_REENTRANT   -I/usr/local/include/libmirage-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include       -g -O2 -MT cdemud-daemon.o -MD -MP -MF ".deps/cdemud-daemon.Tpo" -c -o cdemud-daemon.o cdemud-daemon.c; \
        then mv -f ".deps/cdemud-daemon.Tpo" ".deps/cdemud-daemon.Po"; else rm -f ".deps/cdemud-daemon.Tpo"; exit 1; fi
In file included from cdemud.h:49,
                 from cdemud-daemon.c:20:
cdemud-mmc-features.h:26:1: warning: "LITTLE_ENDIAN_BITFIELD" redefined
In file included from /usr/local/include/libmirage-1.0/mirage.h:47,
                 from cdemud.h:44,
                 from cdemud-daemon.c:20:
/usr/local/include/libmirage-1.0/mirage-disc-structures.h:24:1: warning: this is the location of the previous definition
cdemud-daemon.c:33: error: expected specifier-qualifier-list before ‘__u32’
cdemud-daemon.c:43: error: expected specifier-qualifier-list before ‘__u32’
cdemud-daemon.c: In function ‘__cdemud_daemon_io_handler’:
cdemud-daemon.c:154: error: ‘struct vhba_request’ has no member named ‘cdb’
cdemud-daemon.c:154: error: ‘struct vhba_request’ has no member named ‘cdb_len’
cdemud-daemon.c:155: error: ‘struct vhba_request’ has no member named ‘cdb_len’
cdemud-daemon.c:156: error: ‘struct vhba_request’ has no member named ‘cdb_len’
cdemud-daemon.c:156: error: ‘struct vhba_request’ has no member named ‘cdb_len’
cdemud-daemon.c:160: error: ‘struct vhba_request’ has no member named ‘data_len’
cdemud-daemon.c:166: error: ‘struct vhba_response’ has no member named ‘tag’
cdemud-daemon.c:166: error: ‘struct vhba_request’ has no member named ‘tag’
cdemud-daemon.c:167: error: ‘struct vhba_response’ has no member named ‘status’
cdemud-daemon.c:169: error: ‘struct vhba_response’ has no member named ‘data_len’
make[3]: *** [cdemud-daemon.o] Błąd 1
make[3]: Opuszczenie katalogu `/home/michal/Desktop/cdemu-daemon-1.1.0/src'
make[2]: *** [all] Błąd 2
make[2]: Opuszczenie katalogu `/home/michal/Desktop/cdemu-daemon-1.1.0/src'
make[1]: *** [all-recursive] Błąd 1
make[1]: Opuszczenie katalogu `/home/michal/Desktop/cdemu-daemon-1.1.0'
make: *** [all] Błąd 2

EDIT: Moj blad: wystarczylo sciagnac patcha ze strony cdemu. Teraz kompilacja nie jest problemem. Ale przy probie wywolania cdemud otrzymuje:

Kod:

cdemud: error while loading shared libraries: libmirage.so.1: cannot open shared object file: No such file or directory

Dodajmy, ze find pokazuje:

Kod:

sudo find / -name libmirage.so*
/home/michal/Desktop/CDEmu/libmirage-1.1.1/src/libmirage/.libs/libmirage.so.1.0.1
/home/michal/Desktop/CDEmu/libmirage-1.1.1/src/libmirage/.libs/libmirage.so.1
/home/michal/Desktop/CDEmu/libmirage-1.1.1/src/libmirage/.libs/libmirage.so
/usr/local/lib/libmirage.so.1.0.1
/usr/local/lib/libmirage.so.1
/usr/local/lib/libmirage.so

Ostatnio edytowany przez menteith (2009-01-06 03:08:25)

Offline

 

#2  2009-01-06 06:38:38

  urug - Członek DUG

urug
Członek DUG
Skąd: Częstochowa
Zarejestrowany: 2008-04-22
Serwis

Re: Problem z kompilacja cdemu-daemon

Masz dopisane /usr/local/lib w /etc/ld.so.conf.d/ ?


Pozdrawiam, Tomek

Offline

 

#3  2009-01-06 14:44:19

  menteith - Użytkownik

menteith
Użytkownik
Zarejestrowany: 2008-03-31

Re: Problem z kompilacja cdemu-daemon

Po wejściu do podanego katalogu wykonuje:

Kod:

michal@hapek:/etc/ld.so.conf.d$ cat libc.conf
# libc default configuration
/usr/local/lib

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)

[ Generated in 0.008 seconds, 11 queries executed ]

Informacje debugowania

Time (s) Query
0.00015 SET CHARSET latin2
0.00004 SET NAMES latin2
0.00117 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.117.73.127' WHERE u.id=1
0.00076 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.117.73.127', 1727475858)
0.00055 SELECT * FROM punbb_online WHERE logged<1727475558
0.00045 SELECT topic_id FROM punbb_posts WHERE id=107352
0.00048 SELECT id FROM punbb_posts WHERE topic_id=13102 ORDER BY posted
0.00048 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=13102 AND t.moved_to IS NULL
0.00006 SELECT search_for, replace_with FROM punbb_censoring
0.00095 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=13102 ORDER BY p.id LIMIT 0,25
0.00099 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=13102
Total query time: 0.00608 s