Jump to content











Photo
- - - - -

[Gentoo] Static works - compiled doesn't


  • Please log in to reply
6 replies to this topic

#1 lordcris

lordcris
  • Members
  • 4 posts
  •  
    Italy

Posted 04 November 2009 - 12:55 PM

Hello,
I'm using gentoo-x64


emerge --infoPortage 2.2_rc46 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-tuxonice-r6 x86_64)=================================================================                                        System uname: Linux-2.6.30-tuxonice-r6-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.93GHz-with-gentoo-2.0.1    Timestamp of tree: Wed, 04 Nov 2009 11:15:03 +0000                                                       ccache version 2.4 [enabled]                                                                             app-shells/bash:     4.0_p28                                                                             dev-java/java-config: 2.1.9-r1                                                                           dev-lang/python:     2.6.3                                                                               dev-util/ccache:     2.4-r7                                                                              dev-util/cmake:      2.6.4-r3                                                                            sys-apps/baselayout: 2.0.1                                                                               sys-apps/openrc:     0.5.2-r1                                                                            sys-apps/sandbox:    1.6-r2                                                                              sys-devel/autoconf:  2.13, 2.63-r1                                                                       sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                sys-devel/binutils:  2.18-r3                                                                             sys-devel/gcc-config: 1.4.1                                                                              sys-devel/libtool:   2.2.6a                                                                              virtual/os-headers:  2.6.27-r2                                                                           ACCEPT_KEYWORDS="amd64"                                                                                  CBUILD="x86_64-pc-linux-gnu"                                                                             CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"                                                    CHOST="x86_64-pc-linux-gnu"                                                                              CONFIG_PROTECT="/etc /usr/share/config"                                                                  CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"DISTDIR="/usr/portage/distfiles"FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"GENTOO_MIRRORS="http://gentoo.tiscali.nl/ [url="http://gentoo.mirror.pw.edu.pl/"]http://gentoo.mirror.pw.edu.pl/[/url] [url="http://gentoo.virginmedia.com/"]http://gentoo.virginmedia.com/[/url] [url="http://gentoo.supp.name/""]http://gentoo.supp.name/"[/url]LANG="en_US.UTF-8"LDFLAGS="-Wl,-O1"MAKEOPTS="-j6 -l8"PKGDIR="/usr/portage/packages"PORTAGE_CONFIGROOT="/"PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"PORTAGE_TMPDIR="/var/tmp/portage/working"PORTDIR="/usr/portage"PORTDIR_OVERLAY="/usr/local/portage/layman/kde-testing /usr/local/portage/layman/dottout /usr/local/portage"SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"USE="X aac acl acpi alsa amd64 bash-completion berkdb bzip2 cdr cli cracklib crypt cups dbus dri dvd ffmpeg flac fortran gdbm gif gpm gtk hal iconv jpeg kde lm_sensors logrotate mmx modules mozdevelop mp3 mudflap multilib ncurses nls nptl nptlonly nvidia offensive opengl openmp pam pcre perl png pppd python qt4 quicktime readline reflection rtsp session spl sse sse2 sse3 ssl ssse3 startup-notification sysfs tcpd tiff truetype twolame unicode upnp vdpau virtualbox vorbis x264 xml xorg xscreensaver xulrunner xvmc zlib" ALSA_CARDS="intel-hda" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia nv"Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
but unetbootin does not work. I've tried to compile it myself ( no errors whatsoever ) but when i try and boot from the usb drive i get "this is not a bootable floppy ... " error.If i try the static executable from your home page, everything works ok.I've tried to compare the usb resulting from the two programs.The static executable creates one file called ldlinux.sys which the compiled version does not.
Any tips?

#2 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 04 November 2009 - 01:14 PM

ldlinux.sys is a file created by the Syslinux installer.
See my signature for getting Syslinux.

#3 lordcris

lordcris
  • Members
  • 4 posts
  •  
    Italy

Posted 04 November 2009 - 01:25 PM

ldlinux.sys is a file created by the Syslinux installer.
See my signature for getting Syslinux.


i have sys-boot/syslinux-3.83 installed.
Is it normal than one version ( the not working one ) does not create this file?
Can i run the program in a "debug" mode and compare the results?

#4 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 04 November 2009 - 01:48 PM

I never really used Netbootin, but I guess, I know where your problem is situated.

Do:
which syslinux

which extlinux
Change the syslinuxcommand and extlinuxcommand paths accordingly to that output (below #ifdef NOSTATIC) in file unetbootin.cpp:
blkidcommand = "/sbin/blkid";

	locatecommand("mtools", tr("USB Drive"), "mtools");

		syslinuxcommand = "/usr/bin/ubnsylnx";

		extlinuxcommand = "/usr/bin/ubnexlnx";

	#ifdef NOSTATIC

		syslinuxcommand = "/usr/bin/syslinux";

		extlinuxcommand = "/usr/bin/extlinux";

	#endif

If this is the problem, hopefully the Unetbootin developer fixes this.

#5 lordcris

lordcris
  • Members
  • 4 posts
  •  
    Italy

Posted 04 November 2009 - 03:31 PM

[codebox]which syslinux extlinux /usr/bin/syslinux /sbin/extlinux [/codebox] yes, there was a problem with the path of extlinux . i fixed it but unfortunately without result. it still does not create ldlinux.sys [codebox]cris@lordcris /media/disk $ ll -la total 9988 drwxrwxrwx 2 cris root 8192 1970-01-01 01:00 . -rwxr-xr-x 1 cris root 2339712 2009-11-04 16:20 ubnkern -rwxr-xr-x 1 cris root 156944 2009-11-04 16:20 vesamenu.c32-rwxr-xr-x 1 cris root 7692817 2009-11-04 16:20 ubninit-rwxr-xr-x 1 cris root 159 2009-11-04 16:20 syslinux.cfg drwxr-xr-x 3 root root 4096 2009-11-04 16:25 .. [/codebox] this is for kubuntu 8.10 netinstall_x64

#6 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 04 November 2009 - 03:38 PM

There are 2 versions of the SYSLINUX installer:
  • a standalone version (does need root rights): /linux/syslinux
  • a version that requires mtools (doesn't need root rights): /mtools/syslinux
If you have the standalone version, you need to run Unetbootin with root rights (or build the mtools version).

#7 lordcris

lordcris
  • Members
  • 4 posts
  •  
    Italy

Posted 04 November 2009 - 03:45 PM

There are 2 versions of the SYSLINUX installer:

  • a standalone version (does need root rights): /linux/syslinux
  • a version that requires mtools (doesn't need root rights): /mtools/syslinux
If you have the standalone version, you need to run Unetbootin with root rights (or build the mtools version).



i run the program as root.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users